Spinning up new Python projects with cookiecutter

Posted on Jun 13, 2025

Batteries are, in fact, not included in a modern Python environment. The missing components include:

Enter cookiecutter, a tool for creating new projects from a template. A python project specific cookiecutter template allows me to quickly spin up a new project with these components included. To bring in my defaults and idiosyncrasies (e.g. emacs LSP configuration), I forked cookiecutter-uv. To use it the first time call:

cookiecutter https://github.com/jtmoulia/cookiecutter-qpy.git

This will fetch the template into ~/.cookiecutters and interactively prompt for the project description. With cookiecutter-qpy cached locally, future invocations only require:

cookiecutter cookiecutter-qpy

Give me feedback on the above