Goldziher/prompt-template
Flexible and lightweight library for creating prompt templates
Supports nested braces and complex JSON structures with automatic serialization of Python types (UUID, Decimal, datetime), plus incremental population with default values and deep copying for mutable types. Built as a zero-dependency extension of `string.Template` with strong validation, detailed error messages for missing or invalid keys, and optional custom serialization through subclassing.
23 stars and 9,026 monthly downloads. Available on PyPI.
Stars
23
Forks
2
Language
Python
License
MIT
Category
Last pushed
Dec 12, 2025
Monthly downloads
9,026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/Goldziher/prompt-template"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
promptslab/Promptify
Prompt Engineering | Prompt Versioning | Use GPT or other prompt based models to get structured...
character-ai/prompt-poet
Streamlines and simplifies prompt design for both developers and non-technical users with a low...
masci/banks
LLM prompt language based on Jinja. Banks provides tools and functions to build prompts text and...
promplate/partial-json-parser
Parse partial JSON generated by LLM
Hunyuan-PromptEnhancer/PromptEnhancer
PromptEnhancer is a prompt-rewriting tool, refining prompts into clearer, structured versions...