Try Pyramid

Start small

Finish big

Stay finished

Pyramid is easy to set up and use.

Let's create a minimal web application in 5 minutes using Python 3.

Install Python

Install the latest Python 3 from

Install Pyramid

Issue the following commands in a terminal.

pyvenv myproject
cd myproject
bin/pip install pyramid waitress

Create your first app

Using your editor, put the following code into a new file named

from pyramid.config import Configurator
from pyramid.response import Response
from waitress import serve

def hello_world(request):
    return Response('Hello world!')

def create_app():
    config = Configurator()
    config.add_route('hello_world', '/')
    config.add_view(hello_world, route_name='hello_world')

    app = config.make_wsgi_app()
    return app

if __name__ == '__main__':
    app = create_app()

Run your app


Open your app

Visit the URL in a web browser.