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 ...

Get Modern Python Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.