Simple python web server to demonstrate GET/POST handling and support for embedded Python- round 2

I created a simple python based web server to demonstrate how to use SimpleHTTPServer.SimpleHTTPRequestHandler for handling GET/POST requests. It also demonstrates how to build a system that supports embedded python, templates, create custom URLs, execute local scripts and a number of other things.

It is a single script that acts like a web server, a web server gateway interface and server code so the solution is completely self contained.

It is not replacement for production systems. It is more of a demonstration project that shows how all of the pieces fit together.

You can use it as a starting point to create a custom web server for handling specific requests or for improving your understanding of how web servers work but don’t try to use it for any production work unless it is for a simple, low traffic site.

It is very easy to use, simply run it and it will start serving content from the current directory. To get a feeling for the
features available point it to the www directory that is included in the repository.

One important feature of this webserver is that it allows you to embed python in your web pages to create dynamic content. For more information about how that works please see the documentation on the github site.

You can access the project on github:

You can clone the project and start using it like this git clone

I hope that you find it useful.

Leave a Reply