3 ms·
> 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
by RossM 14y ago
> 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.
- seanwoods 14y agoCherryPy, Tornado, maybe others...
- RossM 14y agoAh, I thought Tornado was a framework. Will investigate a bit more.
- bdarnell 14y agoIt'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.
- SpiderX 14y agoAspen, Rocket, Tornado - granted a lot of these have C modules for speed, but they are Python. There are several others.
- lost-theory 14y agoHere's a newer one, from the pylons team: http://pypi.python.org/pypi/waitress/ http://pypi.python.org/pypi/waitress/
- LeonidasXIV 14y agoYes, the HTTP server which is part of the Python stdlib: SimpleHTTPServer in 2.x and http.server in 3.x.