Technology
QoTD
A simple WSGI Python utility library
Udayakumar Nalinasekaren
Apr 11, 2017

There exists a Python Web Server Gateway Interface (WSGI) utility library called Werkzeug.
If you have Python installed on your machine, you just need to do the following to install werkzeug.
sudo pip install werkzeug
Once the WSGI utility library is installed, try the following python program:
from werkzeug.wrappers import Request, Response
@Request.application
def application(request):
return Response('Hello World!')
if __name__ == '__main__':
from werkzeug.serving import run_simple
run_simple('localhost', 4000, application)
You can find more information here.
My Artwork
Coming soon...Latest Blog Posts
Coming Soon
Archives
Search


