Pythie
CategoriesTrending
An open index of Python tools.Pythie’s IndexLegal noticePrivacyData: PyPI (package metadata; download statistics under CC BY 4.0, via ClickHouse), deps.dev (CC BY 4.0), GitHub, OSV.

Jinja2

3.1.6MaintainedPythie’s Index: 32

A very fast and expressive template engine.

Low maintenance activity. Last release 21 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.

Consider insteadMakoPythie’s Index: 66242.7M downloads/moCompare →

Docs & TemplatingWeb Frameworks
$pip install jinja2
pallets/jinjaHomepagePyPI

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

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

Donate

The Pallets organization develops and supports Jinja and other popular packages. In order to grow the community of contributors and users, and allow the maintainers to devote more time to the projects, please donate today.

Contributing

See our detailed contributing documentation for many ways to contribute, including reporting issues, requesting features, asking or answering questions, and making PRs.

Popularity

Downloads / month
720.2M
GitHub stars
11.8K
Downloads, last 7 days
154.7M-7%
Stars, last 7 days
–
Direct dependents
16.7K
All dependents
93.7K

Pythie’s Index

How it works
32

Low activity

Maintenance, out of 100

  • Recent release

    last release 633 days ago

  • Commit activity

    0/26 weeks with commits

  • Release cadence

    0 releases in 12 months

  • Issues & PRs handled

    82% closed in the past year

  • Contributor spread

    28 authors in last 100 commits

  • OpenSSF Scorecard

    5.9/10

Commits, last 26 weeks0

Releases

Latest
3.1.6
Released
Mar 5, 2025
Releases, 12 months
0
First release
Jun 9, 2008

Compatibility

Requires Python
>=3.7
License
non-standard (Other)

Keywords

pythontemplate-enginejinjajinja2templatespallets

Alternatives

Use instead of Jinja2: tools that do the same job, closest first.

Compare with minijinja →Compare with Chameleon →Compare with Mako →Compare all 4 →

  • minijinja3.1.0ActivePythie’s Index: 93

    An experimental Python binding of the Rust MiniJinja template engine.

    Docs & Templating2.8K762.8K/moReleased Nov 7, 2026
  • Chameleon4.6.1ActivePythie’s Index: 55

    Fast HTML/XML Template Compiler.

    Docs & TemplatingWeb Frameworks190257.6K/moReleased Nov 13, 2026
  • Mako1.4.3ActivePythie’s Index: 66

    A super-fast templating language that borrows the best ideas from the existing templating languages.

    Docs & TemplatingWeb Frameworks464242.7M/moReleased Sep 22, 2026
  • Genshi0.7.12ActivePythie’s Index: 58

    A toolkit for generation of output for the web

    Docs & TemplatingWeb Frameworks99202.6K/moReleased Oct 26, 2026
  • pystache0.6.8MaintainedPythie’s Index: 30

    Mustache for Python

    Docs & Templating193.7M/moReleased Mar 18, 2025
  • airspeed-ext0.6.9MaintainedPythie’s Index: 31

    Airspeed is a powerful and easy-to-use templating engine for Python that aims for a high level of compatibility with Velocity templates in AWS cloud services.

    Docs & TemplatingCloud SDKs & Services4243.7K/moReleased May 30, 2025

Works well with

Use together with Jinja2: extensions, drivers, servers and companion tools.

  • FlaskPythie’s Index: 57A simple framework for building complex web applications.198.6M downloads/mo
  • SphinxPythie’s Index: 74Python documentation generator20.4M downloads/mo
  • pdfkitPythie’s Index: 22Wkhtmltopdf python wrapper to convert html to pdf using the webkit rendering engine and qt5.1M downloads/mo
  • QuartPythie’s Index: 69A Python ASGI web framework with the same API as Flask2.9M downloads/mo
  • pyramidPythie’s Index: 81The Pyramid Web Framework, a Pylons project1.6M downloads/mo
  • copierPythie’s Index: 80A library for rendering project templates.2.6M downloads/mo