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.
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
4a. Nexus - Private Packages: ACV use.
4b. PyPi - Public Packages: For personal projects only.
Generating Distribution Archives
python3 -m pip install --upgrade build
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.
python3 -m pip install --upgrade twine
python3 -m twine upload --repository testpypi dist/*
- 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
Built Distribution
Close
Hashes for file_validation_decorator-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07927847f9f4dd743b4bfe3aff399db8c3994a24e68f2800081e7f7511d29b2e |
|
MD5 | afdb598e85425b3144af54a2b42f1593 |
|
BLAKE2b-256 | 95700dc4642f24a48111480eb0cc381bf9f56f02fd61abe2260ef862a7eb1218 |
Close
Hashes for file_validation_decorator-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 820ff3ed01c22789947998cf73f7d14d37b6109d3a61fb311bd136adc601ea11 |
|
MD5 | b4d59170a15a2893405e2934ccade124 |
|
BLAKE2b-256 | d3b6fec9d8ae4af848e30f0695a87281dedcd6647c95e84812772d11b1cd8320 |