I am a big fan and user of python. one of the most popular ways to create quick web aps in python is via using mod wsgi.
Generally, when I am in a middle of prototyping a concept or in a need of quickly executing Ajax requests or using browser features which would need the page to be hosted on a web server, I use Python's SimpleHTTPServer module.
Here I demonstrate the process of Basic Authentication in web.py python web framework. There is a proof of concept article provided in the main site,however I just thought doing the same via an attribute might be a cleaner solution. HTTP Basic authentication implementation is one of the easiest ways to secure web pages because it doesn't require cookies, session handling, or the development of login pages. Rather, HTTP Basic authentication uses static headers which means that no handshakes have to be done in anticipation,however the n the credentials are passed as plain-text and could be intercepted.
Web.py has been one of my favorite web frameworks as its pretty easy to get cracking on it.
Its super easy to install and one can come up with prototype and quick web services in a matter of minutes.
If one has been using python, then installing various libraries and modules is basically a breeze using easy_install utility, however for folks using windows, easy_install utility has to be setup properly before using it.
Once done lets quickly setup a PYTHON_HOME environment variable which points to the python directory which contains python exe in my case its c:/Python27, to set up environment variable right click "My Computer " select "properties", "Advanced Tab" "Environment Variables" Button, add new environment variable and call it “PYTHON_HOME” and set path to whatever is in your case, to make sure every thing is proper ,open NEW dos prompt and type echo %PYTHON_HOME% and you should see the path you have entered.
After reading an excellent article by Kazi Manzur Rashid on setting up a development environment for Iron Ruby using Notepad++ , I was immediately struck with an idea of using the same excellent tool with Python 2.6.