Skip to main content

The Pyramid Web Framework, a Pylons project

Project description

Pyramid

2.0-branch Travis CI Status 2.0-branch Documentation Status IRC Libera.Chat

Pyramid is a small, fast, down-to-earth, open source Python web framework. It makes real-world web application development and deployment more fun, more predictable, and more productive. Try Pyramid, browse its add-ons and documentation, and get an overview.

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!')

if __name__ == '__main__':
    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()

Pyramid is a project of the Pylons Project.

Support and Documentation

See Pyramid Support and Development for documentation, reporting bugs, and getting support.

Developing and Contributing

See HACKING.txt and contributing.md for guidelines on running tests, adding features, coding style, and updating documentation when developing in or contributing to Pyramid.

License

Pyramid is offered under the BSD-derived Repoze Public License.

Authors

Pyramid is made available by Agendaless Consulting and a team of contributors.

2.0.2 (2023-08-25)

Bug Fixes

  • Removed support for null-bytes in the path when making a request for a file against a static_view. Whille null-bytes are allowed by the HTTP specification, due to the handling of null-bytes potentially leading to security vulnerabilities it is no longer supported.

    This fixes a security vulnerability that is present due to a bug in Python 3.11.0 through 3.11.4, thereby allowing the unintended disclosure of an index.html one directory up from the static views path.

    Thanks to Masashi Yamane of LAC Co., Ltd for reporting this issue.

Backward Incompatibilities

  • Requests to a static_view are no longer allowed to contain a null-byte in any part of the path segment.

2.0.1 (2023-01-29)

2.0 (2021-02-28)

  • No changes from 2.0b1.

2.0b1 (2021-02-20)

2.0b0 (2020-12-15)

2.0a0 (2020-11-29)

Features

Deprecations

Backward Incompatibilities

Documentation Changes

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyramid-2.0.2.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

pyramid-2.0.2-py3-none-any.whl (247.3 kB view details)

Uploaded Python 3

File details

Details for the file pyramid-2.0.2.tar.gz.

File metadata

  • Download URL: pyramid-2.0.2.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pyramid-2.0.2.tar.gz
Algorithm Hash digest
SHA256 372138a738e4216535cc76dcce6eddd5a1aaca95130f2354fb834264c06f18de
MD5 1b670b74c2f7262dbcc1dbea9e91816d
BLAKE2b-256 47c35d5736e692fc7ff052577f03136b5edfdf1e2e177eff2f4b91206acae11d

See more details on using hashes here.

File details

Details for the file pyramid-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyramid-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 247.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pyramid-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2e6585ac55c147f0a51bc00dadf72075b3bdd9a871b332ff9e5e04117ccd76fa
MD5 9d8f6e0b56d88b5f7f4a6fc1b7466987
BLAKE2b-256 db41a2114b8dd2187ae007e022a2baabdc7937cc78211cefc0c01fc5452193af

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page