Skip to main content

Generating Python projects using best practices

Project description

python whiteprint

Python Whiteprint, generate easily Python projects with (opinionated) best practices.

PyPI PyPI pypi pypi pypi pypi pypi pypi


Documentation: https://python-whiteprint.readthedocs.io/en/latest/

Source Code: https://github.com/RomainBrault/python-whiteprint


Installation

Ensure that you have git and python3 installed.

Then install the required Python tools:

$ python3 -m pip install --user --upgrade pipx
$ pipx install poetry
$ pipx install nox
$ pipx inject nox nox-poetry rich

Eventually install Python Whiteprint:

$ pipx install python-whiteprint

Example

Create a local project

$ whiteprint init <my_project>

Create a GitHub project

$ whiteprint init <my_project> --github-token <my_github_token>

Note that the GitHub token must have repository, workflows and packages permissions.

Yet another Python Project scaffold/cookiecutter/generator?

Yes.

This project build upon the excellents cookiecutter-hypermodern-python by @cjolowicz as well as python-blueprint by @johnthagen.

You might want to check these projects as they might be more suited to your needs.

The documentation of this project is heavily inspired from @cjolowicz's work. We also recommend readings @cjolowicz's guide on modern Python tooling.

Differences compared to cookiecutter-hypermodern-python

  • Use copier instead of the cookiecutter project,
  • tweaks in the generated project (non exhaustively: CLI with Typer instead of Click, dynamic type checking with beartype, auto-API documentation),
  • manage licenses with Reuse,
  • more Github Actions and Community Standards and Community Standards,
  • Ruff instead of Flake8 to auto-fix a maximum of code smells,
  • strict linting with pylint,
  • OCI Container images,
  • localization with Babel.

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

python_whiteprint-0.9.2.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

python_whiteprint-0.9.2-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

Details for the file python_whiteprint-0.9.2.tar.gz.

File metadata

  • Download URL: python_whiteprint-0.9.2.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for python_whiteprint-0.9.2.tar.gz
Algorithm Hash digest
SHA256 471bcbd73014c78bee1ef95a04555d281018fa4068b6a4922cf61a9ea9c22421
MD5 b2772b3ce10af398e5aa5e7366816e68
BLAKE2b-256 e1ee74a0d83d9d3e77f59507989c9697ead540907484c19f09ea7a77791b2840

See more details on using hashes here.

File details

Details for the file python_whiteprint-0.9.2-py3-none-any.whl.

File metadata

File hashes

Hashes for python_whiteprint-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2afd7d810649b35dbbfbe5a4bc37e5d1520ea2e38672e2a5632cfc3c3d74454b
MD5 812d4c489d41b14bfe53a606b2b1e5e8
BLAKE2b-256 de4ca48e6c48f39a90f5f0cfbe0902c77eb8aa86895f44c5daa3f4278b7a83cc

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