Skip to main content

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 quick-start config
    
  • Add or write templates

    • Create a simple example template for generating CPP header and class pair
      cookiecutter-x quick-start example-template
      
  • See the list of available simple templates

    cookiecutter-x simple list
    
  • See the documentation of a template

    cookiecutter-x simple doc cpp
    
  • Generate files based on a template

    cookiecutter-x simple process cpp --class_name 'FilesUtils'
    

Read more at the documentation site - https://cookiecutter-x.shaon.dev

Metadata

Release files for cookiecutter-x 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cookiecutter-x 0.1.4
File Size Uploaded
cookiecutter-x-0.1.4.tar.gz 13.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cookiecutter-x 0.1.4
File Interpreter ABI Platform
cookiecutter_x-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 29.6 kB

Release files / cookiecutter-x-0.1.4.tar.gz

Download URL cookiecutter-x-0.1.4.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6e4962ec322439b6f9b42c13027b42549e45e28605e70f570aa6f77de04d66a6
BLAKE2b-256 checksum
How to use checksums
7ed1adcf9f6380b0b12d9099ba2a6ef985548301ab66d5b48aee225f01699d57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / cookiecutter_x-0.1.4-py3-none-any.whl

Download URL cookiecutter_x-0.1.4-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0abb9f1a9b39c67d0b51509999eceea2a81271c6c49c37ff5ad1d2e7a900197
BLAKE2b-256 checksum
How to use checksums
350328589ecde91bf106a183cbad01f5211685a5b7f0ead3bdf92fed06f239b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page