skillfed

pyramid

The Pyramid Web Framework, a Pylons project

pyramid v2.1 2.5M downloads/30d#3,036 on PyPI4,091
Permissive license LicenseRef-Repoze-BSD-derived Active released

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 pyramid

uv

uv add pyramid

poetry

poetry add pyramid

Installing 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

Development Status :: 6 - MatureFramework :: PyramidIntended Audience :: DevelopersOperating 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.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: WSGI

Tags

python web frameworkwsgi application frameworklightweight web developmenthttp routing and viewspyramid web frameworkrequest response handlingweb application routing
web-frameworkwsgi

More WWW/HTTP packages