Skip to main content

Cookiecutter template for a Python package

Project description

Cookiecutter PyPackage

PyPI version PyPI downloads

Cookiecutter template for a Python package.

Features

  • Testing setup with pytest
  • GitHub Actions testing: Setup to easily test for Python 3.10, 3.11, 3.12, and 3.13
  • Auto-release to PyPI when you push a new tag to main (optional)
  • Command line interface using Typer

Quickstart

Install the latest Cookiecutter if you haven't installed it yet:

pip install -U cookiecutter

Generate a Python package project:

cookiecutter https://github.com/audreyfeldroy/cookiecutter-pypackage.git

Then:

  • Create a repo and put it there.
  • Register your project with PyPI.
  • Add the repo to your Read the Docs account + turn on the Read the Docs service hook.
  • Release your package by pushing a new tag to main.

Not Exactly What You Want?

Don't worry, you have options:

Fork This / Create Your Own

If you have differences in your preferred setup, I encourage you to fork this to create your own version. Or create your own; it doesn't strictly have to be a fork.

Similar Cookiecutter Templates

Explore other forks to get ideas. See the network and family tree for this repo.

Or Submit a Pull Request

I also accept pull requests on this, if they're small, atomic, and if they make my own packaging experience better.

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

cookiecutter_pypackage-0.3.0.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cookiecutter_pypackage-0.3.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file cookiecutter_pypackage-0.3.0.tar.gz.

File metadata

  • Download URL: cookiecutter_pypackage-0.3.0.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cookiecutter_pypackage-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5ac57d00429c0685d6f7293ee2791b2a06ef6454ba7e154ce006212db04b46c0
MD5 8c2c75a11f7c84a8190ed22e32f65da5
BLAKE2b-256 d72bdb5441becb2f15dc27abd4dd68430d146fb422311adc499f770173452b53

See more details on using hashes here.

Provenance

The following attestation bundles were made for cookiecutter_pypackage-0.3.0.tar.gz:

Publisher: publish.yml on audreyfeldroy/cookiecutter-pypackage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cookiecutter_pypackage-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cookiecutter_pypackage-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d35320de04b78c3ea6b5d4fd9cbda2eec7781a883810acbb04a9ff4176952932
MD5 2e62a9f09cc5a4e79d521d9a6f11bd6e
BLAKE2b-256 20848a05caebcea12a1cecdfddcdac9c82dea6b236deddb3a48db39ca3b524de

See more details on using hashes here.

Provenance

The following attestation bundles were made for cookiecutter_pypackage-0.3.0-py3-none-any.whl:

Publisher: publish.yml on audreyfeldroy/cookiecutter-pypackage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page