Skip to main content

A sample Python project.

Project description

Python Project Template

# Note: Install Python 3

# Note: install Poetry for Linux
$: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python

# Note: install Poetry for Windows
$: (Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python

$: python get-poetry.py --uninstall
$: poetry install  # install all dependencies

docs

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

poetry_template

$: poetry run python ./poetry_template/runner.py

tests

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

poetry.lock

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

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

pyproject.toml

Define project entry point and metadata.

setup.cfg

Configure Python libraries.

Linters

$: 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.

Source Distribution

poetry-template-0.1.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

poetry_template-0.1.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file poetry-template-0.1.2.tar.gz.

File metadata

  • Download URL: poetry-template-0.1.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.8.0 Windows/10

File hashes

Hashes for poetry-template-0.1.2.tar.gz
Algorithm Hash digest
SHA256 481fea6ec4cbfe3d4d9de2f864319c195859cdddb2b58241a5344aa9428c456e
MD5 90292c830eee23e3da6502c1ec05fcd2
BLAKE2b-256 21056cca754ff932ac22ab76dbedcaf6b719d1a643983e4341286900188dc32f

See more details on using hashes here.

File details

Details for the file poetry_template-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for poetry_template-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b341f7f32d0c6870764f4e8f2a92b3678258ec7d497a80ed9e0e9ce15f81a289
MD5 7110a11226f0570aff97659c7a93dd8c
BLAKE2b-256 c2bfb84f325d6725256bae5719bb97539daa40fde8b4f5ca492bad90fb778da7

See more details on using hashes here.

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