Tempita
A very small text templating language
What it is and what it does
Tempita is a minimal templating engine designed for cases where Python's % formatting or string.Template are insufficient but a full-featured templating system is overkill. It was created to replace Cheetah in Paste Script, avoiding the installation friction of C extensions while providing control flow (if/elif/else, for loops) and template inheritance. The language uses {{...}} delimiters for variable substitution, filters, and directives; templates can inherit from other templates and define reusable blocks.
The package has no runtime dependencies and installs as a pure Python wheel. It executes arbitrary Python code within templates, so templates must be trusted. The codebase has been stable since 2007 and is no longer actively developed—it is maintained in a dormant state, suitable for projects that have already adopted it but not recommended for new projects seeking active support.
Use it for:
- Generate HTML or text output from templates in web frameworks or WSGI applications without heavyweight dependencies
- Create configuration files or code generation templates with conditional sections and loops
- Render email templates or reports with variable substitution and simple control flow
- Build reusable template hierarchies where child templates override or extend parent templates
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Tempita is a lightweight templating engine that processes text templates with variable substitution, conditionals, loops, and template inheritance using a simple {{...}} syntax.
Yes, if you are already using Tempita or need a zero-dependency templating solution for a stable, mature codebase. No, if you are starting a new project—consider Jinja2 or another actively maintained alternative instead. The package is reliable but dormant; install only when its specific lightweight design and lack of dependencies outweigh the lack of active maintenance.
Install
tempita on PyPI
pip
pip install tempitauv
uv add tempitapoetry
poetry add tempitaInstalling Tempita
Before you install
Installation is straightforward with no runtime dependencies. The package is dormant (last release 2024-11-12, no commits since), so expect no active maintenance or bug fixes, though the stable codebase has been in use since 2007.
License in practice
MIT license is permissive; you can use Tempita in commercial and proprietary projects with minimal restrictions, provided you include the license notice.
Quickstart
import tempita
tmpl = tempita.Template("Hello {{name}}")
result = tmpl.substitute(name='World')
print(result) # Output: Hello World
Verify before relying
- Whether the package works reliably with modern Python versions (requires_python is unspecified in metadata)
- Current state of the GitHub repository and whether it accepts contributions or pull requests
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 640 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 135,357/month — #11,437 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: Tempita-0.6.0-py3-none-any.whl
Keywords: templating, template, language, html
Tags
More Text Processing packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyparsingpyparsing provides a library for building text…
permissive · top 1,000 on PyPI
docutilsDocutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
RapidFuzzRapidFuzz provides fast fuzzy string matching…
permissive · top 1,000 on PyPI
tinycss2tinycss2 parses CSS strings into token and…
permissive · top 1,000 on PyPI
llama-parseLlamaParse parses complex documents (PDFs,…
permissive · top 1,000 on PyPI
Jinja2Jinja2 is a templating engine that renders…
permissive · top 100 on PyPI
ct3Cheetah3 is a template engine and code…
permissive · top 5,000 on PyPI
Cheetah3Cheetah3 is a template engine and code…
permissive · top 15,000 on PyPI
MakoMako compiles Python-embedded templates into…
permissive · top 1,000 on PyPI
sphinxcontrib.datatemplatesA Sphinx extension that renders…
permissive · top 15,000 on PyPI
yteYTE is a YAML template engine that embeds…
permissive · top 15,000 on PyPI
htbuilderhtbuilder lets you construct HTML strings using…
permissive · top 15,000 on PyPI
envtplRenders Jinja2 templates on the command line,…
copyleft · top 15,000 on PyPI
py3o.templateMerges data into LibreOffice/OpenOffice…
permissive · top 15,000 on PyPI
jsonnetJsonnet is a data templating language that…
permissive · top 5,000 on PyPI