| 1 |
Metadata-Version: 2.1 |
| 2 |
Name: cookiecutter |
| 3 |
Version: 2.6.0 |
| 4 |
Summary: A command-line utility that creates projects from project templates, e.g. creating a Python package project from a Python package project template. |
| 5 |
Home-page: https://github.com/cookiecutter/cookiecutter |
| 6 |
Author: Audrey Feldroy |
| 7 |
Author-email: [email protected] |
| 8 |
License: BSD |
| 9 |
Project-URL: Documentation, https://cookiecutter.readthedocs.io |
| 10 |
Project-URL: Issues, https://github.com/cookiecutter/cookiecutter/issues |
| 11 |
Project-URL: Discord, https://discord.gg/9BrxzPKuEW |
| 12 |
Keywords: cookiecutter,Python,projects,project templates,Jinja2,skeleton,scaffolding,project directory,package,packaging |
| 13 |
Classifier: Development Status :: 5 - Production/Stable |
| 14 |
Classifier: Environment :: Console |
| 15 |
Classifier: Intended Audience :: Developers |
| 16 |
Classifier: Natural Language :: English |
| 17 |
Classifier: License :: OSI Approved :: BSD License |
| 18 |
Classifier: Programming Language :: Python :: 3 :: Only |
| 19 |
Classifier: Programming Language :: Python :: 3 |
| 20 |
Classifier: Programming Language :: Python :: 3.7 |
| 21 |
Classifier: Programming Language :: Python :: 3.8 |
| 22 |
Classifier: Programming Language :: Python :: 3.9 |
| 23 |
Classifier: Programming Language :: Python :: 3.10 |
| 24 |
Classifier: Programming Language :: Python :: 3.11 |
| 25 |
Classifier: Programming Language :: Python :: 3.12 |
| 26 |
Classifier: Programming Language :: Python :: Implementation :: CPython |
| 27 |
Classifier: Programming Language :: Python :: Implementation :: PyPy |
| 28 |
Classifier: Programming Language :: Python |
| 29 |
Classifier: Topic :: Software Development |
| 30 |
Requires-Python: >=3.7 |
| 31 |
Description-Content-Type: text/markdown |
| 32 |
License-File: LICENSE |
| 33 |
License-File: AUTHORS.md |
| 34 |
Requires-Dist: binaryornot >=0.4.4 |
| 35 |
Requires-Dist: Jinja2 <4.0.0,>=2.7 |
| 36 |
Requires-Dist: click <9.0.0,>=7.0 |
| 37 |
Requires-Dist: pyyaml >=5.3.1 |
| 38 |
Requires-Dist: python-slugify >=4.0.0 |
| 39 |
Requires-Dist: requests >=2.23.0 |
| 40 |
Requires-Dist: arrow |
| 41 |
Requires-Dist: rich |
| 42 |
|
| 43 |
<h1 align="center"> |
| 44 |
<img alt="cookiecutter Logo" width="200px" src="https://raw.githubusercontent.com/cookiecutter/cookiecutter/3ac078356adf5a1a72042dfe72ebfa4a9cd5ef38/logo/cookiecutter_medium.png"> |
| 45 |
</h1> |
| 46 |
|
| 47 |
<div align="center"> |
| 48 |
|
| 49 |
[](https://pypi.org/project/cookiecutter/) |
| 50 |
[](https://pypi.org/project/cookiecutter/) |
| 51 |
[](https://github.com/cookiecutter/cookiecutter/actions) |
| 52 |
[](https://codecov.io/github/cookiecutter/cookiecutter?branch=master) |
| 53 |
[](https://discord.gg/9BrxzPKuEW) |
| 54 |
[](https://readthedocs.org/projects/cookiecutter/?badge=latest) |
| 55 |
[](https://scrutinizer-ci.com/g/cookiecutter/cookiecutter/?branch=master) |
| 56 |
|
| 57 |
</div> |
| 58 |
|
| 59 |
# Cookiecutter |
| 60 |
|
| 61 |
Create projects swiftly from **cookiecutters** (project templates) with this command-line utility. Ideal for generating Python package projects and more. |
| 62 |
|
| 63 |
- [Documentation](https://cookiecutter.readthedocs.io) |
| 64 |
- [GitHub](https://github.com/cookiecutter/cookiecutter) |
| 65 |
- [PyPI](https://pypi.org/project/cookiecutter/) |
| 66 |
- [License (BSD)](https://github.com/cookiecutter/cookiecutter/blob/main/LICENSE) |
| 67 |
|
| 68 |
## Installation |
| 69 |
|
| 70 |
Install cookiecutter using pip package manager: |
| 71 |
``` |
| 72 |
# pipx is strongly recommended. |
| 73 |
pipx install cookiecutter |
| 74 |
|
| 75 |
# If pipx is not an option, |
| 76 |
# you can install cookiecutter in your Python user directory. |
| 77 |
python -m pip install --user cookiecutter |
| 78 |
``` |
| 79 |
|
| 80 |
## Features |
| 81 |
|
| 82 |
- **Cross-Platform:** Supports Windows, Mac, and Linux. |
| 83 |
- **User-Friendly:** No Python knowledge required. |
| 84 |
- **Versatile:** Compatible with Python 3.7 to 3.12. |
| 85 |
- **Multi-Language Support:** Use templates in any language or markup format. |
| 86 |
|
| 87 |
### For Users |
| 88 |
|
| 89 |
#### Quick Start |
| 90 |
|
| 91 |
The recommended way to use Cookiecutter as a command line utility is to run it with [`pipx`](https://pypa.github.io/pipx/), which can be installed with `pip install pipx`, but if you plan to use Cookiecutter programmatically, please run `pip install cookiecutter`. |
| 92 |
|
| 93 |
**Use a GitHub template** |
| 94 |
|
| 95 |
```bash |
| 96 |
# You'll be prompted to enter values. |
| 97 |
# Then it'll create your Python package in the current working directory, |
| 98 |
# based on those values. |
| 99 |
# For the sake of brevity, repos on GitHub can just use the 'gh' prefix |
| 100 |
$ pipx run cookiecutter gh:audreyfeldroy/cookiecutter-pypackage |
| 101 |
``` |
| 102 |
|
| 103 |
**Use a local template** |
| 104 |
|
| 105 |
```bash |
| 106 |
$ pipx run cookiecutter cookiecutter-pypackage/ |
| 107 |
``` |
| 108 |
|
| 109 |
**Use it from Python** |
| 110 |
|
| 111 |
```py |
| 112 |
from cookiecutter.main import cookiecutter |
| 113 |
|
| 114 |
# Create project from the cookiecutter-pypackage/ template |
| 115 |
cookiecutter('cookiecutter-pypackage/') |
| 116 |
|
| 117 |
# Create project from the cookiecutter-pypackage.git repo template |
| 118 |
cookiecutter('gh:audreyfeldroy//cookiecutter-pypackage.git') |
| 119 |
``` |
| 120 |
|
| 121 |
#### Detailed Usage |
| 122 |
|
| 123 |
- Generate projects from local or remote templates. |
| 124 |
- Customize projects with `cookiecutter.json` prompts. |
| 125 |
- Utilize pre-prompt, pre- and post-generate hooks. |
| 126 |
|
| 127 |
[Learn More](https://cookiecutter.readthedocs.io/en/latest/usage.html) |
| 128 |
|
| 129 |
### For Template Creators |
| 130 |
|
| 131 |
- Utilize unlimited directory nesting. |
| 132 |
- Employ Jinja2 for all templating needs. |
| 133 |
- Define template variables easily with `cookiecutter.json`. |
| 134 |
|
| 135 |
[Learn More](https://cookiecutter.readthedocs.io/en/latest/tutorials/) |
| 136 |
|
| 137 |
## Available Templates |
| 138 |
|
| 139 |
Discover a variety of ready-to-use templates on [GitHub](https://github.com/search?q=cookiecutter&type=Repositories). |
| 140 |
|
| 141 |
### Special Templates |
| 142 |
|
| 143 |
- [cookiecutter-pypackage](https://github.com/audreyfeldroy/cookiecutter-pypackage) |
| 144 |
- [cookiecutter-django](https://github.com/pydanny/cookiecutter-django) |
| 145 |
- [cookiecutter-pytest-plugin](https://github.com/pytest-dev/cookiecutter-pytest-plugin) |
| 146 |
- [cookiecutter-plone-starter](https://github.com/collective/cookiecutter-plone-starter) |
| 147 |
|
| 148 |
## Community |
| 149 |
|
| 150 |
Join the community, contribute, or seek assistance. |
| 151 |
|
| 152 |
- [Troubleshooting Guide](https://cookiecutter.readthedocs.io/en/latest/troubleshooting.html) |
| 153 |
- [Stack Overflow](https://stackoverflow.com/questions/tagged/cookiecutter) |
| 154 |
- [Discord](https://discord.gg/9BrxzPKuEW) |
| 155 |
- [File an Issue](https://github.com/cookiecutter/cookiecutter/issues?q=is%3Aopen) |
| 156 |
- [Contributors](AUTHORS.md) |
| 157 |
- [Contribution Guide](CONTRIBUTING.md) |
| 158 |
|
| 159 |
### Support |
| 160 |
|
| 161 |
- Star us on [GitHub](https://github.com/cookiecutter/cookiecutter). |
| 162 |
- Stay tuned for upcoming support options. |
| 163 |
|
| 164 |
### Feedback |
| 165 |
|
| 166 |
We value your feedback. Share your criticisms or complaints constructively to help us improve. |
| 167 |
|
| 168 |
- [File an Issue](https://github.com/cookiecutter/cookiecutter/issues?q=is%3Aopen) |
| 169 |
|
| 170 |
### Waiting for a Response? |
| 171 |
|
| 172 |
- Be patient and consider reaching out to the community for assistance. |
| 173 |
- For urgent matters, contact [@audreyfeldroy](https://github.com/audreyfeldroy) for consultation or custom development. |
| 174 |
|
| 175 |
## Code of Conduct |
| 176 |
|
| 177 |
Adhere to the [PyPA Code of Conduct](https://www.pypa.io/en/latest/code-of-conduct/) during all interactions in the project's ecosystem. |
| 178 |
|
| 179 |
## Acknowledgements |
| 180 |
|
| 181 |
Created and led by [Audrey Roy Greenfeld](https://github.com/audreyfeldroy), supported by a dedicated team of maintainers and contributors. |