Pygnata
Description
Pygnata is a command-line application for creating a project tree from a template file (.pyg file).
Features
- Create a project tree from a .pyg file.
- Generate a .pyg file from an existing path.
- Use YAML and Jinja2 for the template file.
Setup
To install Pygnata, just clone the repository and make a python setup:
git clone https://github.com/joviaux/pygnata.git
cd pygnata
python setup.py install
or with pip:
pip install pygnata
Usage
Create project tree from a .pyg file
pygnata <my_pyg_file_name>
Create a .pyg file from a existing path
pygnata create [options] <source_path> <destination_pyg_file_path>
Show the content of a .pyg file
pygnata show <my_pyg_file_name>
Save a .pyg file in the ~/.pygnata folder
pygnata save <source_pyg_file_path>
Examples
The .pyg file
Pre-defined templates
You can find pre-defined templates at https://github.com/joviaux/pygnata-templates
Feel free to contribute!