Skip to main content

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)

Table of built distributions (wheels) for python-package-template-mldxo 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page