pyramid-tm
A package which allows Pyramid requests to join the active transaction
Decision gist · record as of 2026-08-14
Yes. pyramid_tm is a mature, actively maintained package (last release November 2024) with no known vulnerabilities, low install friction, and a permissive license. It solves a common problem in Pyramid applications—declarative transaction management per request—cleanly and with minimal configuration. Install it if you are building a Pyramid web application that uses a database.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; pyramid_tm must be included in the Configurator to activate transaction management for requests.
- Low friction install with only two runtime dependencies (pyramid and transaction).
- Actively maintained with recent releases supporting Python 3.9–3.13; last commit in 2026.
License · maintenance · safety
BSD-derived (Repoze) (permissive) — Licensed under a permissive BSD-derived (Repoze) license, allowing commercial and private use without restriction.
last release 2024-11-14 (638 days) · last repo commit 2026-08-02 · 36 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 437,936 downloads/mo, #6,662 on PyPI
Alternatives
Verify before relying
pip install pyramid-tm
from pyramid.config import Configurator
config = Configurator()
config.include('pyramid_tm')
app = config.make_wsgi_app()- Whether pyramid_retry is required or optional for retry behavior after version 2.0.
- Performance impact of transaction annotation when tm.annotate_user is enabled.
- Compatibility details with specific versions of pyramid and transaction beyond the stated support range.
What it is and what it does
pyramid_tm is a Pyramid web framework extension that automatically binds each HTTP request to a transaction managed by the transaction package. When you include it in your Pyramid application, every request gets its own transaction context that commits on success or aborts on exception, eliminating manual transaction boilerplate in request handlers.
The package runs as a Pyramid tween (middleware layer) positioned to wrap exception views, meaning the transaction remains active even when handling errors. It supports customization through hooks like commit_veto to override commit/abort decisions, and tm.annotate_user to track authenticated users in transaction logs. It integrates with pyramid_retry for automatic transaction retry on transient errors.
Use it for
- Automatically commit database changes at the end of a successful HTTP request without explicit transaction calls in view code.
- Abort database transactions when an exception occurs, rolling back partial changes and returning an error response.
- Track which user performed a transaction by annotating the transaction log with authenticated user identity.
- Implement custom commit/abort logic via commit_veto hooks to decide whether to persist changes based on response status or headers.
- Coordinate multi-step database operations across a single request lifecycle with automatic rollback on failure.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
pyramid_tm is a mature, actively maintained package (last release November 2024) with no known vulnerabilities, low install friction, and a permissive license. It solves a common problem in Pyramid applications—declarative transaction management per request—cleanly and with minimal configuration. Install it if you are building a Pyramid web application that uses a database.
Install
pyramid-tm on PyPI
Before you install
Low friction install with only two runtime dependencies (pyramid and transaction). Actively maintained with recent releases supporting Python 3.9–3.13; last commit in 2026.
Requires Python 3.9 or later; pyramid_tm must be included in the Configurator to activate transaction management for requests.
License in practice
Licensed under a permissive BSD-derived (Repoze) license, allowing commercial and private use without restriction.
Quickstart
pip install pyramid-tm
from pyramid.config import Configurator
config = Configurator()
config.include('pyramid_tm')
app = config.make_wsgi_app()
Verify before relying
- Whether pyramid_retry is required or optional for retry behavior after version 2.0.
- Performance impact of transaction annotation when tm.annotate_user is enabled.
- Compatibility details with specific versions of pyramid and transaction beyond the stated support range.
Package facts
| License | BSD-derived (Repoze) permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespyramidtransaction |
| Maintenance | Actively maintained 638 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 437,936 / month, #6,662 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 6 - MatureFramework :: PyramidIntended Audience :: DevelopersLicense :: Repoze Public LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: pyramid_tm-2.6-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 › “pyramid transaction management”
- pyramid-tmIntegrates Pyramid web requests with the transaction package to…
- zope.sqlalchemyIntegrates SQLAlchemy sessions with Zope's transaction manager,…
- pyramid-debugtoolbarPyramid_debugtoolbar injects an interactive HTML debug toolbar into…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.
Install it if you're developing CLI tools, dashboards, or interactive terminal applications.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.
Install it if you need to build or connect to servers.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
See also pyramid-retry · transaction · pyramid · zope.sqlalchemy · pyramid-debugtoolbar · pyramid-jinja2 · repoze-sendmail · pyramid-mako · paytmchecksum · eth-account