O'Reilly logo

Modern Python Cookbook by Steven F. Lott

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting ready

The WSGI standard defines an overall framework for composable web applications. The idea behind this is to define each application so that it stands alone and can be trivially connected to other applications. The overall website is built from a collection of shells or wrappers.

This is a bare-bones approach to web server development. WSGI isn't a sophisticated framework; it's a minimal standard. We'll look at some ways to simplify the design using a better framework in the Using the Flask framework for RESTful APIs recipe.

The essence of web services are the HTTP request and response. A server receives requests and creates responses. The HTTP request includes several pieces of data:

  • The URL for the resource. A URL can be as ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required