Skip to main content

Mako bindings for Pyramid

These are bindings for the Mako templating system for the Pyramid web framework.

Documentation for pyramid_mako.

1.2 (2026-11-23)

  • Drop support for Python 2.7 and 3.4 through 3.10.

  • Add support for Python 3.11, 3.12, 3.13, 3.14, and 3.15.

  • Require pyramid >= 1.3, the first release with pyramid.path.AssetResolver.

  • Add support for setting cache arguments as well as the cache implementation to use in the configuration passed to pyramid_mako

  • Stop using the deprecated pkg_resources api in the docs.

  • Switch packaging metadata from setup.cfg to pyproject.toml and use an SPDX license expression. The testing and docs extras are replaced by dependency groups.

1.1.0 (2019-08-18)

  • Add support for Python 3.5, 3.6, 3.7.

  • Require mako >= 1.1.0.

  • Add a config option for preprocessor_wants_settings. If set to true, the preprocessor will be wrapped in a function that invokes the preprocessor with pyramid’s config settings as the second argument.

1.0.2 (2014-04-22)

1.0.1 (2014-04-16)

  • Bump the required version of Mako to 0.8 or newer for issue #22 (add future_imports). If you would like to use an older version of Mako, please pin your dependency to version 0.3.1 of pyramid_mako.

1.0 (2014-04-15)

  • Add new configuration variable for future_imports. See issue #22 (https://github.com/Pylons/pyramid_mako/issues/22)

  • Fix issue #19, whereby pyramid.reload_templates stopped functioning due to changes in pyramid_mako. The lookup is now completed at template render, instead of when the factory returns the renderer. See: (https://github.com/Pylons/pyramid_mako/issues/19)

  • Tuple return values in the form of (‘defname’, {}) are no longer supported, and will result in a ValueError being raised.

  • Fix an packaging issue whereby *.foo files were not included in the MANIFEST.

  • Caller-relative template lookup is now supported. Any template that fails to be found in the default search paths will be searched relative to the caller package.

  • Allow overriding the pyramid.reload_templates using mako.reload_templates.

  • Change the way that custom user values passed to the renderer are merged with the system provided variables. This allows the user to pass in a variable named ‘context’ and have it correctly override the system provided context, and THEN get correctly renamed so that Mako doesn’t complain about a variable being passed in that isn’t allowed due to it being reserved.

  • Drop testing dependency on nose-selecttests.

0.3.1 (2013-10-22)

  • Re-enable lazy loading of the mako renderer, allowing the settings to be configured after pyramid_mako has been included, as long as everything happens in the same commit.

0.3 (2013-10-20)

  • Add a new Configurator directive, config.add_mako_renderer which can be used to add a new mako renderer for a given extension. This directive accepts an optional settings_prefix to load settings and configuration differently per-renderer as well.

  • Removed the private APIs, IMakoLookup, MakoRendererFactoryHelper, and renderer_factory. See the new config.add_mako_renderer API for updating offending code.

  • Remove dependency on pyramid.interfaces.ITemplateRenderer from Pyramid 1.5.

0.2 (2013-09-07)

  • Docs up-to-date

  • Latest changes pulled from Pyramid

  • Latest tests pulled from Pyramid

  • All tests updated to refer to fixtures in pyramid_mako

0.1 (2012-03-12)

  • First release. Extracted from Pyramid core.

Metadata

Release files for pyramid-mako 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyramid-mako 1.2
File Size Uploaded Provenance Actions
pyramid_mako-1.2.tar.gz 35.3 kB With provenance Details for pyramid_mako-1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyramid-mako 1.2
File Interpreter ABI Platform Actions
pyramid_mako-1.2-py3-none-any.whl Python 3 none any Details for pyramid_mako-1.2-py3-none-any.whl

Total release size: 43.5 kB

Release files / pyramid_mako-1.2.tar.gz

Download URL pyramid_mako-1.2.tar.gz
Size 35.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e9c8da55a2235d0acd85c49301b1c9ddde225d0bf53afcf880a08d844125ec1e
BLAKE2b-256 checksum
How to use checksums
d03374541e1f6a2aeebd957bf210a10f0e7913bbe9f59acf9bd548c23624a856
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / pyramid_mako-1.2-py3-none-any.whl

Download URL pyramid_mako-1.2-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4521247c39bd1e1d41cd18ac1726697a3327d16c974778aa3ccb9bf72bd1efa3
BLAKE2b-256 checksum
How to use checksums
e6c291bb092ea275a6c3cd680588d345d818c38deab55e4a54b208692e4470cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for pyramid-mako 1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyramid_mako-1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page