Skip to main content

A sample Python project.

Project description

Python Project Template

# Note: Install Python 3

# Note: install Poetry for Linux
$: curl -sSL | python

# Note: install Poetry for Windows
$: (Invoke-WebRequest -Uri -UseBasicParsing).Content | python

$: python --uninstall
$: poetry install  # install all dependencies


$: poetry shell
$: cd docs
# Note: review source/ and source/index.rst
$: make html
# Note: see docs in docs/build/apidocs/index.html


$: poetry run python ./poetry_template/


$: poetry run pytest
$: poetry run pytest --cov=poetry_template --cov-report=html tests
#: Note: see coverage report in htmlcov/index.html


Dependencies, Python version and the virtual environment are managed by Poetry.

$: poetry search Package-Name
$: poetry add Package-Name[==Package-Version]


Define project entry point and metadata.


Configure Python libraries.


$: poetry run black .

Build and publish

$: poetry config pypi-token.pypi PyPI-API-Access-Token

$: poetry publish --build

Project details

Download files

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

Files for poetry-template, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size poetry_template-0.1.2-py3-none-any.whl (4.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size poetry-template-0.1.2.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page