A generic generator framework using Jinja2 and user-defined parsers.
Project description
pytemplify
Text file generator framework using parsed dictionary data and Jinja2 templates.
How to create your generator using pytemplify
Install poetry:
curl -sSL https://install.python-poetry.org | python3 -
Install pytemplify:
pip install pytemplify
Generate the first skeleton of your generator using mygen-init:
cd <your-repo-path>
mygen-init
Complete the TODOs in modules; main implementation module is parser_<your-generator-name>.py.
Try to run:
poetry install
poetry run <your-generator-name>
poetry run nox
TIPs
Activate poetry virtual environment:
source $(poetry env info --path)/bin/activate
Deactivate poetry virtual environment:
deactivate
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytemplify-0.1.4.tar.gz.
File metadata
- Download URL: pytemplify-0.1.4.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.12.7 Linux/6.11.0-19-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f6a6dfc716beb44ccaf386644dbd5cee946b620101ebe951dc9883e0d5c7f8f
|
|
| MD5 |
bf1f606168d295130daa0dd24bc07c93
|
|
| BLAKE2b-256 |
81220b254809116bed0690a2504e8df1c81ed6bbb74d2460b6505d0ded527207
|
File details
Details for the file pytemplify-0.1.4-py3-none-any.whl.
File metadata
- Download URL: pytemplify-0.1.4-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.12.7 Linux/6.11.0-19-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa8862d92253b3020638ebb46dd98dcac3331f9a6581ac9b071c7f948e981770
|
|
| MD5 |
628e25f4e804764804116244d9d4ca64
|
|
| BLAKE2b-256 |
22fc48625c7cc129b56cb2b17bcc09fe0476671cc0a06472982e33a93e4cb294
|