empy
A templating system for Python.
Decision gist · record as of 2026-08-14
Yes, if you need lightweight inline templating without framework overhead and accept that maintenance is stable but not active. The permissive BSD license, zero runtime dependencies, and broad Python support make it low-risk for stable use cases. High install friction and aging status suggest it's best for established projects or one-off scripts rather than new, evolving applications.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=2.4; no external runtime dependencies, but template processing depends on Python's eval/exec semantics.
- Installation friction is high; the package is aging (186 days since last release) with mature status but no recent repository activity signals available.
- Suitable for stable, long-term use cases where active maintenance is not a priority.
License · maintenance · safety
BSD (permissive) — BSD license is permissive, allowing commercial and private use with minimal restrictions. You may use, modify, and distribute EmPy freely provided you retain the license notice.
last release 2026-02-09 (186 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 691,099 downloads/mo, #5,328 on PyPI
Alternatives
Verify before relying
pip install empy
import empy
empy.expand('@(2 + 2)', output=open('out.txt', 'w'))- Whether the package runs reliably on modern Python 3 versions despite aging maintenance status.
- Performance characteristics and scalability limits for large template files or complex embedded code.
- Availability of comprehensive documentation or examples beyond the homepage.
What it is and what it does
EmPy is a mature templating engine that lets you write Python code directly into template text using a customizable prefix (typically `@`) to mark where Python should execute. It processes a source document containing mixed text and Python markup, evaluates the Python portions, and outputs the results combined with the surrounding text. This turns Python into a markup language for code generation, document preprocessing, and text transformation.
The package has no runtime dependencies and supports a wide range of Python implementations (CPython, PyPy, Jython, IronPython, Stackless). It's designed for developers who want lightweight, inline code generation without the overhead of a full templating framework. The aging maintenance status (last release 186 days ago) reflects a stable, mature tool rather than an actively developed one.
Use it for
- Generate configuration files or source code by embedding Python logic in template text.
- Preprocess documentation or markup files where dynamic content is computed from Python expressions.
- Build simple code generators or boilerplate factories that mix static text with programmatic output.
- Create custom report or document templates that evaluate Python at render time.
- Automate repetitive text generation tasks in build pipelines or CI workflows.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need lightweight inline templating without framework overhead and accept that maintenance is stable but not active.
The permissive BSD license, zero runtime dependencies, and broad Python support make it low-risk for stable use cases. High install friction and aging status suggest it's best for established projects or one-off scripts rather than new, evolving applications.
Install
empy on PyPI
Before you install
Installation friction is high; the package is aging (186 days since last release) with mature status but no recent repository activity signals available. Suitable for stable, long-term use cases where active maintenance is not a priority.
Requires Python >=2.4; no external runtime dependencies, but template processing depends on Python's eval/exec semantics.
License in practice
BSD license is permissive, allowing commercial and private use with minimal restrictions. You may use, modify, and distribute EmPy freely provided you retain the license notice.
Quickstart
pip install empy
import empy
empy.expand('@(2 + 2)', output=open('out.txt', 'w'))
Verify before relying
- Whether the package runs reliably on modern Python 3 versions despite aging maintenance status.
- Performance characteristics and scalability limits for large template files or complex embedded code.
- Availability of comprehensive documentation or examples beyond the homepage.
Package facts
| License | BSD permissive |
| Python support | Supports the current Python release >=2.4 |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Aging 186 days since the last release |
| First released | |
| Downloads | 691,099 / month, #5,328 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 6 - MatureEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Other AudienceLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 3Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: IronPythonProgramming Language :: Python :: Implementation :: JythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: Python :: Implementation :: StacklessTopic :: Software Development :: InterpretersTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Pre-processorsTopic :: Text Editors :: Text ProcessingTopic :: Text Processing :: FiltersTopic :: Text Processing :: GeneralTopic :: Text Processing :: MarkupTopic :: Utilities |
Evidence: empy-4.2.1.tar.gz
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 › “template preprocessing”
- empyEmPy is a templating system that embeds Python code directly into…
- ruamel.yaml.jinja2Enables Jinja2 templating within YAML files by preprocessing…
- yteYTE is a YAML template engine that embeds Python expressions directly…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also DocumentTemplate · Genshi · jsonnet · hyperscript · adaptive-cards-templating-py · Plim · Jinja2 · Mako · MarkupPy · pyyml