Web Analytics Made Easy -
StatCounter
Main Glossary Pyramid

Pyramid

Pyramid

What is Pyramid?

It makes it easy to write web applications. You can start small with this "hello world" minimal request/response web app. This may take you far, especially while learning. As your application grows, it offers many features that make writing complex software take LESS effort.

Quick Start

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 works in all supported versions of Python. Our installation instructions will help you get Pyramid up and running. Pyramid's quick tutorial will take you step by step through writing a single file application, forms, database integration, and authentication. Developers may dive in to Pyramid's narrative documentation, or browse the extensive API reference. Pyramid has a rich pool of helpful resources from which to draw. Extending Pyramid is a curated and filterable list of add-ons, packages, and applications built to work with Pyramid.

Start Small

Getting started quickly and simply is a key attraction of lightweight frameworks. Equally, you get to choose what approaches to use for templating, database, security, and more, or use a convenient starting point with a scaffold. Pyramid excels at scaling down to the first hour of learning, while avoiding the pitfalls of framework magic.

  • Start as a single-file module with little first-hour complexity
  • Use a convenient scaffold to generate a sample project with your combination of subsystems
  • Choose from a variety of templating, database, security solutions and more using the quality and convenience of Pyramid's add-on system
  • Tap into a variety of high-quality documentation for evaluating, trying out, or doing advanced development with Pyramid
  • Ask the growing Pyramid community for tips and successes

official trypyramid.com
src stackshare.io/pyramid