jinja2-simple-tags
Base classes for quick-and-easy template tag development
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no dependencies beyond Jinja2, carries a permissive license, and solves a real problem for anyone building Jinja2 applications. The API is straightforward and well-documented. Install it if you need to write custom template tags and want to avoid boilerplate.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with a single runtime dependency (Jinja2 >= 2.10).
- Maintained actively with recent commits; last release was in 2024.
License · maintenance · safety
BSD license (permissive) — BSD license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2024-03-06 (891 days) · last repo commit 2026-04-13 · 39 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,090,115 downloads/mo, #2,759 on PyPI
Alternatives
Verify before relying
pip install jinja2-simple-tags
from jinja2_simple_tags import StandaloneTag
from datetime import datetime
class NowExtension(StandaloneTag):
tags = {"now"}
def render(self, format="%Y-%m-%d %H:%I:%S"):
return datetime.now().strftime(format)- Whether the package is actively maintained beyond the last 2024 release (last commit is dated 2026-04-13 but days_since_release is 891, creating a timeline gap that needs clarification).
What it is and what it does
jinja2-simple-tags is a lightweight library that reduces boilerplate when writing custom Jinja2 template tags. Instead of implementing the full Jinja2 Extension API, you subclass one of three provided tag types—StandaloneTag (for simple output tags), ContainerTag (for tags with opening and closing markers), or InclusionTag (for template inclusion)—and implement a render method. The library handles registration, argument parsing, context access, and output escaping.
It's designed for developers building Jinja2-based applications (web frameworks, static site generators, templating systems) who need to extend templates with custom logic without wrestling with Jinja2's lower-level extension machinery. The package supports Python 3.6 and later, depends only on Jinja2, and has no known security vulnerabilities.
Use it for
- Add a custom {% now %} tag to templates that outputs the current date and time in a specified format.
- Create a {% hmac %} container tag that signs template content with a secret key and returns the digest.
- Build an {% include_header %} tag that includes a template fragment with injected context variables like logo paths.
- Implement a {% username %} tag that accesses the current request context to render the logged-in user's name.
- Define tags that assign their output to template variables using the 'as' keyword for later reuse.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no dependencies beyond Jinja2, carries a permissive license, and solves a real problem for anyone building Jinja2 applications. The API is straightforward and well-documented. Install it if you need to write custom template tags and want to avoid boilerplate.
Install
jinja2-simple-tags on PyPI
Before you install
Low friction: pure Python wheel with a single runtime dependency (Jinja2 >= 2.10). Maintained actively with recent commits; last release was in 2024.
License in practice
BSD license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install jinja2-simple-tags
from jinja2_simple_tags import StandaloneTag
from datetime import datetime
class NowExtension(StandaloneTag):
tags = {"now"}
def render(self, format="%Y-%m-%d %H:%I:%S"):
return datetime.now().strftime(format)
Verify before relying
- Whether the package is actively maintained beyond the last 2024 release (last commit is dated 2026-04-13 but days_since_release is 891, creating a timeline gap that needs clarification).
Package facts
| License | BSD license permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageJinja2 |
| Maintenance | Actively maintained 891 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,090,115 / month, #2,759 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules |
Evidence: jinja2_simple_tags-0.6.1-py2.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 › “jinja2 custom tags”
- jinja2-simple-tagsProvides base classes to create custom Jinja2 template tags…
- jinja2-timeJinja2 extension that adds template tags for working with dates and…
- docxtplGenerates Word documents (.docx) from templates by embedding Jinja2…
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 Jinja2 · html5tagger · jinja2-fragments · jinja2-time · docxtpl · django-render-block · Flask-Moment · jinja_partials · jinjanator · django-bootstrap5