Python Package Template
Template of Python project wrapped as package that can be easily uploaded to PyPi
Getting Started
To use this template click "Use this template" and create a new repository or open the template in a codespace or use this template here
Usage
Create virtual environment and install dependencies:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
After that you would adapt the code and continue when the project is ready to be published. Build the package using:
python setup.py sdist bdist_wheel
Test compiled package locally using:
pip install dist/package-xx.whl
Before publishing to PyPi create account and get API key. Save API key in your session using:
export TWINE_USERNAME=__token__
export TWINE_PASSWORD=$actual_token
Publish the package to PyPi:
twine upload dist/*
Metadata
Release files for python-package-template-mldxo 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_package_template_mldxo-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for python_package_template_mldxo-0.1.0-py3-none-any.whl |
Release files / python_package_template_mldxo-0.1.0-py3-none-any.whl
| Download URL | python_package_template_mldxo-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbef940f7878cbef6bf9585a5a0bef7c8e5fda9cbc24919c76e50ddcb5950135
|
|
BLAKE2b-256 checksum How to use checksums |
8eebb2b59db682290c5e7645b387746cac8ac61683353b170ae29997a029097f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.2
|
Security for python-package-template-mldxo 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.