python3-cookiecutter
Author: Jared W. Cook
Version: 0.1.0
Overview
Python3 cookiecutter template project + Github docs template generation + Sphinx docs template generation.
Utilizes:
The python3-cookiecutter depends on the following repositories for its documentation and sub-features.
- cookiecutter-cookiecutter is the the parent repository for python3-cookiecutter. Updates from
cookiecutter_project_upgraderare pulled from this repository. - Github docs cookiecutter template generation for Github Pages (Jekyll).
- Sphinx docs cookiecutter template generation for Python Sphinx Documentation.
- Nutri-Matic cookiecutter utilities for streamlining development and utilization of Cookiecutter templates.
Maintains:
The python3-cookiecutter is used to maintain the build and ci/cd structure for the following projects.
- Nutri-Matic cookiecutter utilities for streamlining development and utilization of Cookiecutter templates.
🛠️ CI/CD Check List:
Note: Unless you are using a newer version of cookiecutter >= 2, --no-input is necessary for template generation without error.
Usage Examples
Example: Pull from main branch.
Note: Nutri-Matic is needed in active python environment.
- Pull Project with cookiecutter command:
$ cookiecutter git@github.com:cookscodeinc/python3-cookiecutter.git \
--no-input \
project_name="test-project"
Example: Pull from develop branch.
- Pull code from development branch while testing updates.
$ cookiecutter git@github.com:cookscodeinc/python3-cookiecutter.git \
--checkout develop \
--no-input \
project_name="test-project"
replace test-project or any of the other variables with real context configuration variables:
Note: replace test-project or any of the other variables with real context configuration variables.
🌱 Getting Started
📚 Documentation
The python3-cookiecutter documentation is available at docs.
🤝 Contributing
If you’re interested in contributing to the python3-cookiecutter project:
- Start by reading the contributing guide.
- Learn how to setup your local environment, in our developer guide.
- Look through our style guide.
🍹 Authors Notes
- This code currently works with cookiecutter (V2.6) from PyPi’s repositories.
⚖️ License
Copyright (c) 2025-2026, Jared W. Cook
This project is licensed under the AGPL-3.0-or-later License.
See the LICENSE file for the full license text.
SPDX-License-Identifier: AGPL-3.0-or-later
Local development
With Docker and the Compose plugin installed, run from the repository root:
make -C docs/jekyll run
Open http://localhost:4000/python3-cookiecutter/. The preview uses Ruby 3.3 in a container, mounts the site source read-only, and reloads the browser when files change. No host Ruby is required. The container uses your local user and group IDs to read private checkouts without changing file permissions. The first image build installs the gems; the pinned remote theme requires network access. Existing Gemfile.lock dependencies are preserved. For a new site without a lockfile, gems are resolved inside the image.
Press Ctrl+C to stop the server, or use make -C docs/jekyll stop to remove its container and network. Stop one preview before starting another on the same ports. For native development with Ruby 3.3, use make -C docs/jekyll ruby-install and make -C docs/jekyll jekyll-serve.
Reviewed release preparation
New Python projects include the shared package verification tools and a read-only Release Preparation workflow. A production candidate contains the wheel, source distribution, complete release manifest and SHA-256 checksums; the workflow never publishes to a registry.
From a clean checkout with the development dependencies installed:
RELEASE_OUTPUT="$(mktemp -d)/candidate" make package-python
To propose a version change on a numbered feature branch, provide the verified published commit and version, then export a patch:
export RELEASE_BASELINE="<verified published commit>"
export PUBLISHED_VERSION="<verified published version>"
make release-plan
RELEASE_OUTPUT="$(mktemp -d)/prepared" make release-prepare
The version selectors cover package metadata and the documentation that was generated. Direct publication, upload, tagging and version-bump commands are disabled in generated projects. Publication requires separate configuration and approval. The current build dependencies are not locked.
Generator source release preparation
The generator itself has a separate read-only source package workflow. Use make release-plan, make release-prepare and make package-source at the generator root. See docs/release-cycle.md in the generator repository for the exact baseline, output directory and checksum checks. This does not publish packages or modify a generated project’s version.
☕ Support Me
If you enjoy this project, please consider buying me a coffee or making a code contribution.