The WSGI standard
What strikes most web developers who start with Python is how easy it is to get a web application up and running.
The Python web community has created a standard (inspired by the Common Gateway Interface or CGI) called Web Server Gateway Interface (WSGI). It simplifies a lot how you can write a Python application in order to serve HTTP requests.
When your code uses that standard, your project can be executed by standard web servers like Apache or nginx, using WSGI extensions like uwsgi or mod_wsgi.
Your application just has to deal with incoming requests and send back JSON responses, and Python includes all that goodness in its standard library.
You can create a fully functional microservice that returns the server's local ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access