pystache
Mustache for Python
Decision gist · record as of 2026-08-14
Yes, if you need a simple, logic-free templating system. Pystache is stable, permissively licensed, and has no known vulnerabilities. The aging maintenance status (514 days since last release) is not a blocker for a mature, spec-compliant library, but consider it if you need active development or frequent updates. Low install friction and broad Python version support make it a practical choice for projects prioritizing template simplicity over feature richness.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later.
- Low install friction with a single runtime dependency (importlib-metadata).
- Maintenance status is aging—last release was 514 days ago—but the repository remains active and the package is marked Production/Stable.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive). You can use, modify, and distribute this package freely in commercial or private projects with minimal restrictions, provided you include the original copyright notice.
last release 2025-03-18 (514 days) · last repo commit 2025-03-18 · 19 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,179,011 downloads/mo, #2,366 on PyPI
Alternatives
Verify before relying
pip install pystache
import pystache
print(pystache.render('Hi {{person}}!', {'person': 'Mom'}))
# Output: Hi Mom!- Whether the aging maintenance status (514 days since last release) affects practical usability for new projects.
- Performance characteristics compared to other Python templating engines for high-volume rendering.
What it is and what it does
Pystache is a Python implementation of Mustache, a framework-agnostic templating language designed to enforce separation of logic from presentation. It renders templates by interpolating values from Python dictionaries or objects into template strings, supporting sections, conditionals, and iteration through a simple, readable syntax. The package passes the full Mustache specification (version 1.1.3) and handles both simple string rendering and more complex view-based templates through its Renderer class.
The package is designed for scenarios where you want to keep templates free of application logic—Mustache makes it impossible to embed conditional or looping code in templates themselves. It supports Unicode internally and provides configurable encoding handling for file and string inputs. Pystache works across Linux, macOS, and Windows, with tested support for Python 3.8 through 3.13.
Use it for
- Render email templates or HTML documents with variable substitution from Python data structures.
- Generate configuration files or code from templates without embedding logic in the template itself.
- Build view classes that provide data to templates while keeping presentation logic separate from business logic.
- Pre-parse templates once and render them multiple times with different context data.
- Command-line template rendering when JSON or YAML context files are available.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a simple, logic-free templating system.
Pystache is stable, permissively licensed, and has no known vulnerabilities. The aging maintenance status (514 days since last release) is not a blocker for a mature, spec-compliant library, but consider it if you need active development or frequent updates. Low install friction and broad Python version support make it a practical choice for projects prioritizing template simplicity over feature richness.
Install
pystache on PyPI
Before you install
Low install friction with a single runtime dependency (importlib-metadata). Maintenance status is aging—last release was 514 days ago—but the repository remains active and the package is marked Production/Stable. Tested across Python 3.8 through 3.13.
Requires Python 3.8 or later.
License in practice
MIT license (permissive). You can use, modify, and distribute this package freely in commercial or private projects with minimal restrictions, provided you include the original copyright notice.
Quickstart
pip install pystache
import pystache
print(pystache.render('Hi {{person}}!', {'person': 'Mom'}))
# Output: Hi Mom!
Verify before relying
- Whether the aging maintenance status (514 days since last release) affects practical usability for new projects.
- Performance characteristics compared to other Python templating engines for high-volume rendering.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageimportlib-metadata |
| Maintenance | Aging 514 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,179,011 / month, #2,366 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries |
Evidence: pystache-0.6.8-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “mustache template rendering python”
- pystachePystache renders Mustache templates—a logic-free templating system…
- chevronChevron renders Mustache templates in Python, converting template…
- types-chevronProvides type hints for the chevron Mustache template library,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also chevron · pyramid-mako · pybars3 · pybars4 · rich-text-renderer · mistletoe · django-jinja · zope.pagetemplate · pyramid-jinja2 · types-chevron