Metadata-Version: 2.1
Name: pytemplify
Version: 0.1.4
Summary: A generic generator framework using Jinja2 and user-defined parsers.
License: MIT
Author: robinbreast
Author-email: kihoa.nam@gmail.com
Requires-Python: >=3.8.1
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: dataclasses-jsonschema (>=2.16.0,<3.0.0)
Requires-Dist: jinja2 (>=3.1.2,<4.0.0)
Description-Content-Type: text/markdown

# pytemplify
Text file generator framework using parsed dictionary data and Jinja2 templates.

## How to create your generator using `pytemplify`
Install poetry:
```shell
curl -sSL https://install.python-poetry.org | python3 -
```
Install `pytemplify`:
```shell
pip install pytemplify
```
Generate the first skeleton of your generator using `mygen-init`:
```shell
cd <your-repo-path>
mygen-init
```
Complete the `TODO`s in modules; main implementation module is `parser_<your-generator-name>.py`.

Try to run:
```shell
poetry install
poetry run <your-generator-name>
```
```shell
poetry run nox
```

## TIPs
Activate poetry virtual environment:
```shell
source $(poetry env info --path)/bin/activate
```
Deactivate poetry virtual environment:
```shell
deactivate
```
