Technology

QoTD

Art only begins when you are full.
மனிதன் நிறை பெற்ற பிறகுதான் அவனுக்குள் கலை ஆரம்பிக்கிறது.

A simple WSGI Python utility library


Udayakumar Nalinasekaren
Apr 11, 2017

Werkzeug

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.


About This Site

This site is the personal website of Udayakumar Nalinasekaren. It is a pleasure to have you around. Thank you for visiting .

Terms of Use
Privacy Policy
FAQ
Sitemap

Credits

This site uses Python and Django. Uday is the developer.

Site uses Twitter Bootstrap for its responsive UI.

The free theme of this website is courtesy HTML5 Templates Dreamweaver

Get in Touch