skillfed

Jinja2

A very fast and expressive template engine.

jinja2 Permissive license AGING 11,735 v3.1.6 released

Install

jinja2 on PyPI

pip

pip install jinja2

uv

uv add jinja2

poetry

poetry add jinja2

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 1 — MarkupSafe
Maintenance aging — 526 days since the last release
Last repo commit
First released
Popularity one of the 100 most-downloaded packages on PyPI (30-day window, as of 2026-08-13)
Known vulnerabilities none known (OSV.dev, checked 2026-08-13)

Evidence: jinja2-3.1.6-py3-none-any.whl

Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonTopic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Text Processing :: Markup :: HTMLTyping :: Typed

About Jinja2

from the package's own PyPI description — quoted content, verbatim

Jinja

Jinja is a fast, expressive, extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. Then the template is passed data to render the final document.

It includes:

  • Template inheritance and inclusion.
  • Define and import macros within templates.
  • HTML templates can use autoescaping to prevent XSS from untrusted user input.
  • A sandboxed environment can safely render untrusted templates.
  • AsyncIO support for generating templates and calling async functions.
  • I18N support with Babel.
  • Templates are compiled to optimized Python code just-in-time and cached, or can be compiled ahead-of-time.
  • Exceptions point to the correct line in templates to make debugging easier.
  • Extensible filters, tests, functions, and even syntax.

Jinja's philosophy is that while application logic belongs in Python if possible, it shouldn't make the template designer's job difficult by restricting functionality too much.

In A Nutshell

```jinja {% extends "base.html" %} {% block title %}Members{% endblock %} {% block content %} <ul> {% for user in users %} <li><a href="{{ user.url }}">{{...

Read as markdown · JSON record · Source repository · Docs

AI interpretation — verify before relying

AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page

Jinja2 is a fast, expressive templating engine that renders templates with Python-like syntax, supporting inheritance, macros, autoescaping for XSS prevention, sandboxed execution, and async rendering.

Installation is straightforward with low friction; the package has one lightweight runtime dependency (MarkupSafe) and ships as a pure-Python wheel. Maintenance status is aging—the latest release was 526 days ago—but the repository remains active with recent commits.

Jinja2 is distributed under a permissive BSD license, allowing commercial and private use with minimal restrictions, making it suitable for most projects without legal concerns.

Usage

pip install jinja2
from jinja2 import Template
template = Template('Hello {{ name }}!')
print(template.render(name='World'))

Requires Python 3.7 or later.

Verdict: Jinja2 is a mature, production-ready templating engine in the top 100 PyPI packages with no known vulnerabilities, permissive licensing, and minimal install friction. Its aging maintenance status is offset by active repository commits and established adoption; it remains a solid choice for template rendering.

Needs verification

  • Whether the 526-day gap since version 3.1.6 reflects a stable maintenance cadence or signals reduced development velocity.
  • Performance characteristics and scalability limits for high-volume template rendering scenarios.
  • Community size and ecosystem health beyond repository activity metrics.
template engine pythonjinja templatinghtml template renderingxss prevention templatespython template inheritancesandboxed template executionasync template rendering

Similar packages