Skip to main content

Python Package Template Description

Project description

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/*

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

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