Skip to main content

Yamlify Me is a Python package that generate documents from yaml data and jinja templates.

Project description

Yamlify

Yamlify is a document generation tool and python library, which combines yaml and Jinja2.

It includes:

  • Read data from multiple files in a folder.
  • Read data recursively from subfolders.
  • Manipulate data after reading and before rendering.
  • Render data with a jinja template file to generate a document.
  • Render data with multiple jinja template files to generate multiple documents

Usage

> datify --help

I a nutshell

Define data in a file data/cars/00001.yaml:

make: Toyota
model: Corolla
year: 2020
owner: persons/john

Define a template file templates/template_multi.j2:

{{ make }} {{ model }} {{ year }} {{ filename }}

The command datify data/cars/ templates/template_multi.j2 -f {make}.txt generates the file Toyota.txt:

Toyota Corolla 2020 00001.yaml

If you define more that one data files, multiple output files are generated accordingly (see tests).

License

MIT - see LICENSE file

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

yamlify_me-0.1.1.dev1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

yamlify_me-0.1.1.dev1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file yamlify_me-0.1.1.dev1.tar.gz.

File metadata

  • Download URL: yamlify_me-0.1.1.dev1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for yamlify_me-0.1.1.dev1.tar.gz
Algorithm Hash digest
SHA256 ab2ffb983ad8548f8bdcda0413955b7720de7da7f01d77f66da8ae6a2ddc741c
MD5 71a15b7cb99e21f42241f529c4c3d9ac
BLAKE2b-256 d83459874892538dcefd716fc1950c7dad0ee59661e2724895b92924e974f5a2

See more details on using hashes here.

File details

Details for the file yamlify_me-0.1.1.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for yamlify_me-0.1.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 e12c308d75165a31ee8ae7d874cdd4f3f693689aa9163adf6ff8118aa5145fd9
MD5 d76ae68b58174ced77483d6737294552
BLAKE2b-256 e3caee21536544371fa17f20d619451538d92872901a173133b61f4689c368ee

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