Skip to main content

Cookiecutter PyPackage

PyPI version PyPI downloads

Cookiecutter template for a Python package with production-ready CI and automated PyPI publishing.

uvx cookiecutter-pypackage

What you get

Tooling

Tool
Package manager uv Fast, handles venvs automatically
Task runner just just qa formats, lints, type-checks, and tests
Linting ruff Format + lint in one tool
Type checking ty All rules enabled, watch mode with just type-check-watch
Testing pytest Python 3.12, 3.13, 3.14
CLI framework Typer Entry point + __main__.py included
Docs Zensical + mkdocstrings Auto-deployed to GitHub Pages, API docs from docstrings

CI/CD (GitHub Actions, security-hardened)

Workflow Trigger What happens
CI Push, PRs Lint, type check, test across 3 Python versions
Publish v* tag Build, Sigstore attestation, PyPI via Trusted Publishers (no tokens)
Docs Push to main Build and deploy to GitHub Pages
Dependabot Weekly PRs to update SHA-pinned actions

All actions pinned by SHA, minimal permissions, no persisted credentials.

Quickstart

Install uv, then:

uvx cookiecutter-pypackage

You'll be prompted for your package name, GitHub username, and a few other values (full list). Then push to GitHub and follow the tutorial to enable Pages and set up PyPI publishing.

Without uvx
uv venv
source .venv/bin/activate
uv pip install cookiecutter
cookiecutter gh:audreyfeldroy/cookiecutter-pypackage

Documentation

audreyfeldroy.github.io/cookiecutter-pypackage

Alternatives

This template is opinionated. If it doesn't fit:

Pull requests welcome if they're small, atomic, and improve the template.


Discord | MIT license

Release files for cookiecutter-pypackage 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cookiecutter-pypackage 0.5.0
File Size Uploaded
cookiecutter_pypackage-0.5.0.tar.gz 20.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cookiecutter-pypackage 0.5.0
File Interpreter ABI Platform
cookiecutter_pypackage-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 54.1 kB

Release files / cookiecutter_pypackage-0.5.0.tar.gz

Download URL cookiecutter_pypackage-0.5.0.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6584e025abdc458a93ec1d62f165f7300e0b141927e39afa07b9fc21048d216b
BLAKE2b-256 checksum
How to use checksums
4f1884e6fe50940cc04644c8c646da218c5df5794acc8c0b711aaaace8e2d9e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 17, 2026.

Transparency log

Release files / cookiecutter_pypackage-0.5.0-py3-none-any.whl

Download URL cookiecutter_pypackage-0.5.0-py3-none-any.whl
Size 33.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9dd3318a6667cea75dd8e0eb9feb8e99830e8ebcb751509915d5da6281c82a42
BLAKE2b-256 checksum
How to use checksums
7d25327d3e31b0f6cfc15f52eeb066491d77dca3e17a3d8370f594d085338589
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page