Skip to main content

Perfect Python Package

Project description

Perfect Python Package

PyPI Status Python Version License

Tests Codecov

GitHub Pages Docs Read the documentation at https://perf-py-pkg.readthedocs.io/

pre-commit Black

Python package template with all the bells and whistles. An adaptation of cookiecutter hypermodern pypackage with some additional features.

Features

  • Packaging and dependency management with Poetry
  • Test automation with Nox
  • Pre-commit hooks:
    • Linting with Flake8
    • Code formatting with Black and Prettier
    • Import sorting with isort
    • Doc string linting with Darglint
    • Automated Python syntax upgrades with pyupgrade
  • Continuous integration with GitHub Actions
  • Documentation with Sphinx & MyST using the furo theme
  • Automated documentation deployment to Read the Docs and GitHub Pages
  • Automated uploads to PyPI and TestPyPI
  • Automated release notes with Release Drafter
  • Automated dependency updates with Dependabot
  • Testing with pytest
  • Code coverage with Coverage.py
  • Coverage reporting with Codecov
  • Static type-checking with mypy
  • Runtime type-checking with Typeguard
  • Security audit with Bandit and Safety
  • Check documentation examples with xdoctest
  • Generate API documentation with autodoc and napoleon
  • Manage project labels with GitHub Labeler

Requirements

NOTE: pipx is recommended to install the following tools.

Poetry

$ pipx install poetry

Nox

$ pipx install nox

nox-poetry

$ pipx inject nox nox-poetry

Installation

You can install Perfect Python Package via pip from PyPI:

$ pip install perf-py-pkg

Usage

Documentation is available at Read the Docs and GitHub Pages.

Example

from perf_py_pkg import core as c

c.add_one(1)
#> 2

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

Issues

If you encounter any problems, please file an issue along with a detailed description.

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

perf_py_pkg-0.0.3.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

perf_py_pkg-0.0.3-py3-none-any.whl (5.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