Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytemplify-0.1.4.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytemplify-0.1.4-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

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

Hashes for pytemplify-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4f6a6dfc716beb44ccaf386644dbd5cee946b620101ebe951dc9883e0d5c7f8f
MD5 bf1f606168d295130daa0dd24bc07c93
BLAKE2b-256 81220b254809116bed0690a2504e8df1c81ed6bbb74d2460b6505d0ded527207

See more details on using hashes here.

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

Hashes for pytemplify-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fa8862d92253b3020638ebb46dd98dcac3331f9a6581ac9b071c7f948e981770
MD5 628e25f4e804764804116244d9d4ca64
BLAKE2b-256 22fc48625c7cc129b56cb2b17bcc09fe0476671cc0a06472982e33a93e4cb294

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page