Skip to main content

An example Python package

Project description

Python Example Package

Tests Codecov PyPI

Clone of cjolowicz/hypermodern-python

Making an example package using modern Python toolchain. To quick start with a Cookiecutter template, refer to https://github.com/cjolowicz/cookiecutter-hypermodern-python.

Topics covered:

  • Create a package in src layout
  • Manage dependency with Poetry
  • Command-line interfaces with click
  • Consume a REST API with requests
  • Unit testing with pytest
  • Code coverage with Coverage.py
  • Test automation with Nox
  • Mocking with pytest-mock
  • End-to-end testing
  • Linting with flake8
  • Code formatting with black
  • Checking import with flake8-import-order
  • Finding more bugs with flake8-bugbear
  • Identifying security issues with bandit
  • Finding security vulnerabilities in dependencies with Safety
  • Managing dependencies in Nox sessions with Poetry
  • Managing Git hooks with pre-commit

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

example-package-lth-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

example_package_lth-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file example-package-lth-0.1.0.tar.gz.

File metadata

  • Download URL: example-package-lth-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.12 Linux/5.13.0-1021-azure

File hashes

Hashes for example-package-lth-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1e4a8fc4f0b5224509c70add72e51a92ff60deb77043533e4525650ae6ea0a49
MD5 94db4b577ec21094383acee848c1433e
BLAKE2b-256 4f91b6bfedebdbfdf1254df19c3d5337a20d6d4e7cbb52b29f22bc83d4342e28

See more details on using hashes here.

File details

Details for the file example_package_lth-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for example_package_lth-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63396ccd9ed6388a8031ce4a2968755870291a05241bdc782dcb7e4ed3df9298
MD5 5a99c667bd159cb4625a48fdd59a5d07
BLAKE2b-256 46fd941a77ba0391f0c3339cdb7dbc69c1b215a3abeb4fd2aa471e8224808bac

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