home ¦ Archives ¦ Atom ¦ RSS

Python Package Cookiecutter

Link parkin’: python-package-cookiecutter

There are many cookiecutter templates, but this one is mine and I’m sharing it with you. With it, you can quickly create a full-featured Python package designed to be managed with uv, a default typer command-line interface, optional settings using pydantic-settings and logging using my favorite logger, loguru. Best of all, testing, code quality checks, and publishing to PyPI are all baked in and ready to go.

I’ve been locked on to Simon Willison’s click-app cookiecutter, mainly due to inertia, but this new one hits all my recent developer buttons: uv, loguru, and typer. Also, TIL: Poe the Poet and pydantic-settings

© 2008-2024 C. Ross Jam. Built using Pelican. Theme based upon Giulio Fidente’s original svbhack, and slightly modified by crossjam.