Building web applications
Web applications involve a great deal of processing, which is best described as boilerplate. The essential handling of the HTTP protocol, for example, is often standardized, with libraries that handle it gracefully. The details of parsing request headers and mapping a URL path to a specific resource don't need to be reinvented.
There is, however, a profound distinction between simply handling the HTTP protocol and mapping a URL to an application-specific resource. These two layers drive the definition of the
Web Services Gateway Interface (WSGI) design and the wsgi
module is in the standard library. For more information, see
Python Enhancement Proposal (PEP) 3333, https://www.python.org/dev/peps/pep-3333/.
The idea
Get Python Essentials 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.