Cookiecutter eXtended
Project description
Cookiecutter-X
Cookiecutter eXtended is a code generator based on Jinja and Cookiecutter with some extra features. Such as single file generation, local template management, template documentation, provide template input using arguments instead of interactive prompts.
Installation
Like every other python package, you can install cookiecutter-x
with
pip install cookiecutter-x
It will create the executable console script cookiecutter-x
in the bin directory.
Templates
Cookiecutter-X supports two types of templates.
- Simple template, optimized for generating standalone script(s), e.g. a bash script.
- Cookiecutter template, optimized for starting a new project, e.g., a python project
Getting started quickly
-
Generate configurations (stored at
$HOME/.cookiecutter-x/ccx-config.yml
)cookiecutter-x generate-config
-
Add or write templates
- Add sample template
cookiecutter-x add-samples
- Add sample template
-
See a list of available simple templates
cookiecutter-x sample list
-
See the documentation of a template
cookiecutter-x sample doc cpp
-
Generate files based on a template
cookiecutter-x sample process cpp --class_name 'FilesUtils'
Read more at the documentation site - https://cookiecutter-x.shaon.dev
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cookiecutter_x-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00d1ba2ff402f5e53b6af8744811aa597e67620a3df68613ea84684182109a25 |
|
MD5 | 2135b5e90114d85b2b2e22d7e1d6f9de |
|
BLAKE2b-256 | 7195822a96be3f4e96bc97de8de00ff1fb7e3c00c0dd408474ab4f81f42cb788 |