Skip to main content

This decorator validates the file extension and file size of an in memory file object.

Project description

Python Package Boilerplate

Making it easy to create a reusable python package hosted on our internal package manager Nexus.

Alt_Text


Steps

1. Create your python code inside of src > your_package_name > name_me.py

2. Update setup.cfg in the project root.

3. When you are ready to package your code, generate your distribution archives

4. Upload to a package manager


Generating Distribution Archives

  1. python3 -m pip install --upgrade build
  2. python3 -m build

This command should output a lot of text and once completed should generate two files in the dist directory:

    dist/
      example_package_YOUR_USERNAME_HERE-0.0.1-py3-none-any.whl
      example_package_YOUR_USERNAME_HERE-0.0.1.tar.gz

Upload To Nexus

Instructions coming soon...


Upload To PyPi

You will need a registered account.

  1. python3 -m pip install --upgrade twine
  2. python3 -m twine upload --repository testpypi dist/*
  3. The terminal will promp you to enter your username and password

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

file_validation_decorator-0.0.2.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page