Pyramid is a minimalistic, flexible, and open-source Python web framework that prioritizes simplicity, scalability, and ease of use. It is part of the Pylons Project and is currently at version 2.1, with releases typically following a maintenance and deprecation policy where deprecated features are kept for at least three minor releases before removal. [1, 2, 12, 16]
pip install "pyramid==2.1"Verified import paths — ran on the pinned version, not inferred.
This minimal 'hello world' application demonstrates the core components of a Pyramid web application: `Configurator` for application setup, `add_route` to define a URL pattern, `add_view` to link a view callable to a route, and `Response` to return content. It uses `wsgiref.simple_server` to serve the application directly. [2, 5, 12]
Ensure your project runs on Python 3.10 or newer, as required by Pyramid 2.1. [1, 14]
Migrate to the new single security policy using `pyramid.config.Configurator.set_security_policy()` and update session data to be JSON-serializable. Refer to the 'Upgrading Authentication/Authorization' and 'Upgrading Session Serialization' sections in the Pyramid 2.0 documentation for detailed migration steps. [14]
Import equivalent ACL-related objects from the `pyramid.authorization` namespace instead. For example, `pyramid.security.Everyone` should now be `pyramid.authorization.Everyone`. [15]
Always follow the official 'Quick Tutorial' and 'Application Configuration with .ini Files' documentation. Use cookiecutters for project generation to set up a correct initial structure. Pay close attention to environment variables vs. `.ini` file settings. [3, 6, 13]
No dependency data recorded yet.