skillfed

pyramid-jinja2

Jinja2 template bindings for the Pyramid web framework

pyramid-jinja2 v2.10.1 2.0M downloads/30d#3,388 on PyPI72
Permissive license BSD-derived (Repoze) Active released

What it is and what it does

pyramid-jinja2 bridges the Jinja2 templating system and the Pyramid web framework. It registers Jinja2 as a template renderer in Pyramid, letting you write application templates in Jinja2 syntax and have Pyramid automatically render them. The package handles template discovery, search path configuration, context passing, and integration with Pyramid's configuration system.

The package is mature (Development Status 6) and actively maintained. It supports modern Python versions (3.7 through 3.12) and has been in development since 2010. You configure it by including it in your Pyramid Configurator, then use Pyramid's standard rendering APIs with .jinja2 template files. It manages multiple renderers, custom search paths, extensions, and Jinja2-specific settings like finalization functions and i18n configuration.

Use it for:

  • Render HTML templates in a Pyramid web application using Jinja2 syntax and features.
  • Configure multiple Jinja2 renderers with different settings and extensions for different parts of an application.
  • Set up custom template search paths and override template loading behavior in Pyramid projects.
  • Integrate Jinja2 i18n (internationalization) and gettext functions into Pyramid template rendering.
  • Use Jinja2 filters and extensions (like custom context filters) within Pyramid's template rendering pipeline.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Integrates the Jinja2 templating engine with the Pyramid web framework, allowing you to use Jinja2 templates as renderers in Pyramid applications.

Yes. This is a mature, actively maintained integration package with no known vulnerabilities, low install friction, and permissive licensing. Install it if you are building a Pyramid application and want to use Jinja2 templates—it is the standard way to do so. The only caveat is that it requires Python 3.7+ and assumes you are already using Pyramid as your web framework.

Install

pyramid-jinja2 on PyPI

pip

pip install pyramid-jinja2

uv

uv add pyramid-jinja2

poetry

poetry add pyramid-jinja2

Installing pyramid-jinja2

Before you install

Low friction install with a stable, actively maintained codebase. The package has 4 runtime dependencies (jinja2, markupsafe, pyramid, zope.deprecation) and is distributed as a pure Python wheel. Last commit was recent (2026-08-02) and the repository is not archived.

License in practice

Licensed under a BSD-derived Repoze license (permissive), which allows commercial and private use with minimal restrictions. No SPDX identifier is assigned, but the permissive treatment means you can use this in most projects without legal friction.

Quickstart

pip install pyramid-jinja2

from pyramid.config import Configurator

config = Configurator()
config.include('pyramid_jinja2')
config.add_route('hello', '/')
config.scan()

Requires Python 3.7 or later. Pyramid must be installed and configured as the web framework.

Verify before relying

  • Whether the package supports Jinja2 versions beyond 3.0 or has upper-bound constraints.
  • Performance characteristics when rendering large numbers of templates or complex template hierarchies.
  • Whether all Jinja2 extensions are automatically available or require explicit configuration.

Package facts

License BSD-derived (Repoze) (permissive)
Python support supports the current Python release (>=3.7.0)
Install friction low — pure-Python wheel
Runtime dependencies 4 — jinja2, markupsafe, pyramid, zope.deprecation
Maintenance actively maintained — 918 days since the last release
Last repo commit
First released
Downloads 1,978,679/month — #3,388 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pyramid_jinja2-2.10.1-py3-none-any.whl

Keywords: web, wsgi, pylons, pyramid, jinja2

Development Status :: 6 - MatureFramework :: PyramidIntended Audience :: DevelopersLicense :: Repoze Public LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

jinja2 pyramid integrationpyramid template rendererjinja2 web framework bindingpyramid jinja2 templatestemplate engine pyramidjinja2 wsgi framework
template-enginepyramid-frameworkweb-development

More Dynamic Content packages