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 | Reset |
|---|---|---|---|---|
| python_package_template_mldxo-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|