templify¶
Fill document templates with data, from the command line.
Point templify at a template (Word, text, Markdown, HTML or JSON) and a data
source: an Excel sheet, a JSON file, or a JSON Schema that templify asks you to fill
in. You get one file per row, one file with every row in it, or one file from a single
record. Before rendering you can order, filter and group the rows.

Why templify¶
-
Five template formats
.docx,.txt,.md,.htmland.json. The format comes from the template's extension, and every format uses the same Jinja syntax. -
Excel, JSON, or typed in
Read the active sheet of a workbook, a JSON list, or answer questions built from a JSON Schema.
-
Order, filter, group
Sort by any columns, keep rows with 47 filter rules, and group rows into one file per department, city or customer.
-
Record stores
Keep typed-in records in SQLite, Excel, JSON or JSON Lines. List, search, fix and re-render them by id.
-
Type filters, Arabic included
str.zfill,decimal.quantize,date.strftime, and Arabic number words (ar.to_words), dates and digits in every template. -
Safe by default
Nothing is ever overwritten, templates run in Jinja's sandbox, and a JSON template that renders broken JSON is rejected.
A taste¶
Where to go next¶
- New here? Install it, then follow the user guide, starting with your first files.
- Have a job to do? See the recipes: offer letters, mail-merge emails, department reports, Arabic salary certificates, Excel to JSON, and more.
- Looking up an option? The reference lists every command, option, filter rule, type filter and error.