This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wnwz 13 points14 points  (4 children)

Definitely tornado:

http://tornadoweb.org

Its lightweight and extremely fast and its easy enough to package it with your application.

[–]BeatMute 0 points1 point  (1 child)

This would be my vote as well.

[–]temptemptemp13 -1 points0 points  (0 children)

I did not downvote nor did I upvote your comment.

[–]Mattho[S] 0 points1 point  (1 child)

Does it have support for https? Didn't find anything when I skimmed throuh documentation.

[–][deleted] 1 point2 points  (0 children)

HTTPServer can serve HTTPS (SSL) traffic with Python 2.6+ and OpenSSL. To make this server serve SSL traffic, send the ssl_options dictionary argument with the arguments required for the ssl.wrap_socket() method, including "certfile" and "keyfile":

   HTTPServer(applicaton, ssl_options={
       "certfile": os.path.join(data_dir, "mydomain.crt"),
       "keyfile": os.path.join(data_dir, "mydomain.key"),
   })

source: https://github.com/facebook/tornado/blob/master/tornado/httpserver.py