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
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 yamlify_me-0.1.1.dev2.tar.gz.
File metadata
- Download URL: yamlify_me-0.1.1.dev2.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80acdd0e655ae9b070410f8e5d37e70a6a720e5dad764ccbd5c8ded0a8e54762
|
|
| MD5 |
193bc41d2bb220ff7bc0c43fb93abea5
|
|
| BLAKE2b-256 |
bdcb8b64eeef93408213d373d13005132b60b2364407d0e9c9ceda4516743ac0
|
File details
Details for the file yamlify_me-0.1.1.dev2-py3-none-any.whl.
File metadata
- Download URL: yamlify_me-0.1.1.dev2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ea99c1c2db95168d9a29287b9efcf6f00febc6625ee13dfa51df5abe1b4d394
|
|
| MD5 |
f04fe75a042894919a1524a911935cd7
|
|
| BLAKE2b-256 |
384abd78bfca0d17eedacb6da19d6a67e862efc62eee010dd01e722370f40642
|