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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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