Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Most HTTP servers are written in C or C++, so they cannot execute Python code directly – a bridge is needed between the server and the program.

Are there any HTTP servers written in Python (rather than modules)? I'm struggling to think of any.



Here's a newer one, from the pylons team:

http://pypi.python.org/pypi/waitress/


Yes, the HTTP server which is part of the Python stdlib: SimpleHTTPServer in 2.x and http.server in 3.x.


CherryPy, Tornado, maybe others...


Ah, I thought Tornado was a framework. Will investigate a bit more.


It's both. The server and the framework are to some degree usable independently from one another (via the tornado.wsgi module), but the most interesting features (i.e. all the asynchronous stuff) only work when both are used together.

A couple of other pure-python (I think) HTTP servers that haven't come up in this thread yet are twisted and paster.


Aspen, Rocket, Tornado - granted a lot of these have C modules for speed, but they are Python. There are several others.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: