METADATA 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. Metadata-Version: 2.4
  2. Name: tornado
  3. Version: 4.3
  4. Summary: Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
  5. Home-page: http://www.tornadoweb.org/
  6. Author: Facebook
  7. Author-email: python-tornado@googlegroups.com
  8. License: http://www.apache.org/licenses/LICENSE-2.0
  9. Classifier: License :: OSI Approved :: Apache Software License
  10. Classifier: Programming Language :: Python :: 2
  11. Classifier: Programming Language :: Python :: 2.6
  12. Classifier: Programming Language :: Python :: 2.7
  13. Classifier: Programming Language :: Python :: 3
  14. Classifier: Programming Language :: Python :: 3.2
  15. Classifier: Programming Language :: Python :: 3.3
  16. Classifier: Programming Language :: Python :: 3.4
  17. Classifier: Programming Language :: Python :: Implementation :: CPython
  18. Classifier: Programming Language :: Python :: Implementation :: PyPy
  19. Dynamic: author
  20. Dynamic: author-email
  21. Dynamic: classifier
  22. Dynamic: description
  23. Dynamic: home-page
  24. Dynamic: license
  25. Dynamic: summary
  26. Tornado Web Server
  27. ==================
  28. `Tornado <http://www.tornadoweb.org>`_ is a Python web framework and
  29. asynchronous networking library, originally developed at `FriendFeed
  30. <http://friendfeed.com>`_. By using non-blocking network I/O, Tornado
  31. can scale to tens of thousands of open connections, making it ideal for
  32. `long polling <http://en.wikipedia.org/wiki/Push_technology#Long_polling>`_,
  33. `WebSockets <http://en.wikipedia.org/wiki/WebSocket>`_, and other
  34. applications that require a long-lived connection to each user.
  35. Hello, world
  36. ------------
  37. Here is a simple "Hello, world" example web app for Tornado:
  38. .. code-block:: python
  39. import tornado.ioloop
  40. import tornado.web
  41. class MainHandler(tornado.web.RequestHandler):
  42. def get(self):
  43. self.write("Hello, world")
  44. def make_app():
  45. return tornado.web.Application([
  46. (r"/", MainHandler),
  47. ])
  48. if __name__ == "__main__":
  49. app = make_app()
  50. app.listen(8888)
  51. tornado.ioloop.IOLoop.current().start()
  52. This example does not use any of Tornado's asynchronous features; for
  53. that see this `simple chat room
  54. <https://github.com/tornadoweb/tornado/tree/stable/demos/chat>`_.
  55. Documentation
  56. -------------
  57. Documentation and links to additional resources are available at
  58. http://www.tornadoweb.org