The Pyramid Web Framework

Pyramid is a small, fast, down-to-earth Python web framework. It isdeveloped as part of thePylons Project.It is licensed under aBSD-like license.

Here is one of the simplestPyramid applications you can make:

fromwsgiref.simple_serverimportmake_serverfrompyramid.configimportConfiguratorfrompyramid.responseimportResponsedefhello_world(request):returnResponse('Hello World!')if__name__=='__main__':withConfigurator()asconfig: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()

After you installPyramid and run this application, when you visithttp://localhost:6543/ in a browser, you will see the textHelloWorld! SeeCreating Your First Pyramid Application for a full explanation of howthis application works.

Getting Started

If you are new to Pyramid, we have a few resources that can help you get up tospeed right away.

Tutorials

Official tutorials provide a quick overview ofPyramid's features in more depth than the Quick Tour and with working code, explain how to usePyramid to build various types of applications, and how to deployPyramid applications to various platforms.

Support and Development

ThePyramid website is the mainentry point toPyramid web framework resources for support anddevelopment information.

To report bugs, use theissue tracker.

If you've got questions that aren't answered by this documentation, contact thePylons-discuss maillist or join the#pyramid IRC channel.

Browse and check out tagged and trunk versions ofPyramid via thePyramid GitHub repository. To check outthe trunk viagit, use either command:

# If you have SSH keys configured on GitHub:git clone git@github.com:Pylons/pyramid.git# Otherwise, HTTPS will work, using your GitHub login:git clone https://github.com/Pylons/pyramid.git

To find out how to become a contributor toPyramid, please seeHow to Contribute Source Code and Documentation.

Narrative Documentation

Narrative documentation in chapter form explaining how to usePyramid.

API Documentation

Comprehensive reference material for every public API exposed byPyramid:

p* Scripts Documentation

p* scripts included withPyramid.

Change History

Design Documents

Copyright, Trademarks, and Attributions

Typographical Conventions and Style Guide

Index and Glossary