What is Cookiecutter?
A command-line utility that creates projects from cookiecutters (project templates), e.g. creating a Python package project from a Python package project template.
Cross-platform: Windows, Mac, and Linux are officially supported.
You don’t have to know/write Python code to use Cookiecutter
Works with Python 2.7, 3.5, 3.6, 3.7, 3.8 ,PyPy and PyPy3.
Project templates can be in any programming language or markup format:
You can use multiple languages in the same project template.
Simple command line usage:
pip install --user cookiecutter
or you can use any package manager
First, clone a Cookiecutter project template:
$ git clone email@example.com:audreyr/cookiecutter-pypackage.git
Make your changes
Modify the variables defined in cookiecutter.json.
Open up the skeleton project. If you need to change it around a bit, do so.
You probably also want to create a repo, name it differently, and push it as your own new Cookiecutter project template, for handy future use.
Generate your project
Then generate your project from the project template:
$ cookiecutter cookiecutter-pypackage/
and thats is it, your are ready to go.
Top comments (1)
Great tool indeed. Copier is also really nice.
Lately I'm playing with both 🚀🚀