pyramid
The Pyramid Web Framework, a Pylons project
What it is and what it does
Pyramid is a small, down-to-earth Python web framework built on WSGI for constructing real-world web applications. It provides core routing, view configuration, and request/response handling through a Configurator API, letting developers define routes and map them to view functions with minimal ceremony. The framework depends on webob for HTTP abstractions, venusian for decorator-driven configuration, plaster for configuration file parsing, and zope.interface for component architecture—a focused set of dependencies that keeps the core lightweight while enabling extensibility through add-ons.
The framework is mature and actively maintained, supporting modern Python versions including 3.10 through 3.14 and PyPy. It is positioned as an alternative to larger frameworks, emphasizing predictability and productivity for developers who want control over their application structure without excessive convention-driven magic.
Use it for:
- Build small to medium-sized web applications where explicit routing and view configuration are preferred over convention-heavy frameworks.
- Create RESTful APIs using WSGI-compatible deployment with fine-grained control over request handling and response serialization.
- Develop web services that integrate with existing WSGI middleware and deployment infrastructure.
- Prototype web applications quickly using Pyramid's minimal boilerplate and straightforward Configurator API.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Pyramid is a Python web framework for building WSGI applications, handling HTTP routing, request/response handling, and view configuration with minimal boilerplate.
Yes. Pyramid is a mature, actively maintained framework with low install friction, permissive licensing, and no known vulnerabilities. It is suitable for developers building WSGI applications who value explicit configuration and a focused dependency set. Choose it if you prefer clarity and control over convention-driven frameworks.
Install
pyramid on PyPI
pip
pip install pyramiduv
uv add pyramidpoetry
poetry add pyramidInstalling pyramid
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with recent commits and a mature codebase; supports current Python versions (3.10–3.14) and PyPy.
License in practice
Licensed under a permissive Repoze BSD-derived license, allowing commercial and private use with minimal restrictions.
Quickstart
pip install pyramid
from wsgiref.simple_server import make_server
from pyramid.config import Configurator
from pyramid.response import Response
def hello_world(request):
return Response('Hello World!')
with Configurator() as config:
config.add_route('hello', '/')
config.add_view(hello_world, route_name='hello')
app = config.make_wsgi_app()
server = make_server('0.0.0.0', 6543, app)
server.serve_forever()
Requires Python 3.10 or later.
Verify before relying
- Specific performance characteristics or scalability limits compared to other frameworks.
- Ecosystem maturity and availability of third-party add-ons beyond what is documented.
Package facts
| License | LicenseRef-Repoze-BSD-derived (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 9 — hupper, plaster, plaster_pastedeploy, setuptools, translationstring, venusian, webob, zope.deprecation, zope.interface |
| Maintenance | actively maintained — 156 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,502,957/month — #3,036 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyramid-2.1-py3-none-any.whl
Keywords: web, wsgi, pylons, pyramid
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
corniceCornice provides decorators and utilities to…
copyleft · top 15,000 on PyPI
pyramid-jinja2Integrates the Jinja2 templating engine with…
permissive · top 5,000 on PyPI
pyramid-retrypyramid_retry wraps Pyramid requests with…
permissive · top 15,000 on PyPI
pyramid-makoIntegrates the Mako templating engine with the…
permissive · top 5,000 on PyPI
pyramid-tmIntegrates Pyramid web requests with the…
permissive · top 15,000 on PyPI
pyramid-debugtoolbarPyramid_debugtoolbar injects an interactive…
permissive · top 5,000 on PyPI
appierAppier is a lightweight Python web framework…
permissive · top 5,000 on PyPI
bottleBottle is a lightweight WSGI microframework for…
permissive · top 5,000 on PyPI
serverless-wsgiBridges Python WSGI applications (Flask,…
permissive · top 15,000 on PyPI
WebObWebOb provides request and response objects…
permissive · top 5,000 on PyPI