Skip to main content

Modern cookiecutter template for creating Python packages with complete CI/CD setup and automatic PyPI publishing.

Project description

Python Package Template

Cookiecutter Tests passed License Tox Pytest Ruff Documentation

Cookiecutter template for creating Python packages with complete CI/CD setup and automatic PyPI publishing.

Features

  • Modern tools: Hatchling, uv, Ruff, MyPy, Pytest
  • CI/CD out of the box: GitHub Actions with automatic PyPI publishing
  • Release management: Release Please + Conventional Commits
  • Code quality: linting, typing, tests, security checks
  • Ready commands: Makefile for all development tasks

Quick Start

Using cookiecutter directly

# Install cookiecutter
pip install cookiecutter

# Create project
cookiecutter https://github.com/serafinovsky/cookiecutter-uv-package

# Setup development environment
cd your-project-name
make dev-setup

Using CLI tool

# Install the CLI tool
pip install cookiecutter-uv-package

# Get help with available arguments
cookiecutter-uv-package --help

# Create project with CLI
cookiecutter-uv-package

# Or with custom options
cookiecutter-uv-package --output-dir /path/to/projects --no-input

# Setup development environment
cd your-project-name
make dev-setup

Configuration Options

When creating a project, you'll be asked to configure:

  • project_name: Display name for your package (e.g., "My Awesome Package")
  • project_short_description: Brief description of what your package does
  • author_name: Your name
  • author_email: Your email address
  • github_username: Your GitHub username
  • python_versions: Supported Python versions (default: "3.11, 3.12, 3.13")
  • use_docker: Whether to include Docker support (yes/no)
  • deployment_setup: Choose deployment setup (none/github-ci/github-ci-pypi)
  • license: Choose license (MIT/Apache-2.0/BSD-3-Clause/GPL-3.0/ISC/none)

Main Commands

make dev-setup     # Setup development environment
make test          # Run tests
make check         # Check code
make format        # Format code
make build         # Build package

What You Get

  • Ready Python package with proper structure
  • CI/CD pipeline with GitHub Actions
  • Automatic PyPI publishing
  • Version management via Release Please

Example Project

See a real example of this template in action: demo-example-package

Documentation

License

MIT License

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_uv_package-1.0.8.tar.gz (118.3 kB view details)

Uploaded Source

Built Distribution

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

cookiecutter_uv_package-1.0.8-py3-none-any.whl (40.2 kB view details)

Uploaded Python 3

File details

Details for the file cookiecutter_uv_package-1.0.8.tar.gz.

File metadata

  • Download URL: cookiecutter_uv_package-1.0.8.tar.gz
  • Upload date:
  • Size: 118.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cookiecutter_uv_package-1.0.8.tar.gz
Algorithm Hash digest
SHA256 9a440bccfb86c753eb7f2bb90550a49df53393782fd95310b753e44ee40ac4bd
MD5 38ed2712bc9c4411ae7f86ffa11dfdca
BLAKE2b-256 f35d660a387205bb3e436b2def433cc81667e8c73634e27ac23c3a0bc2e7881b

See more details on using hashes here.

File details

Details for the file cookiecutter_uv_package-1.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for cookiecutter_uv_package-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 387479fae4f2edb970e29330905c17dcf6d81af5af97428b1fe484a183e5a4f7
MD5 acee2aa47b17c2129f000f8b47b34c5a
BLAKE2b-256 aa25a631ff8411a28b4de10a1b73edcb39323c0054bf434187624a4f22d83b6d

See more details on using hashes here.

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