METADATA 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Metadata-Version: 2.0
  2. Name: tornado
  3. Version: 5.1.1
  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. Platform: UNKNOWN
  10. Classifier: License :: OSI Approved :: Apache Software License
  11. Classifier: Programming Language :: Python :: 2
  12. Classifier: Programming Language :: Python :: 2.7
  13. Classifier: Programming Language :: Python :: 3
  14. Classifier: Programming Language :: Python :: 3.4
  15. Classifier: Programming Language :: Python :: 3.5
  16. Classifier: Programming Language :: Python :: 3.6
  17. Classifier: Programming Language :: Python :: 3.7
  18. Classifier: Programming Language :: Python :: Implementation :: CPython
  19. Classifier: Programming Language :: Python :: Implementation :: PyPy
  20. Requires-Python: >= 2.7, !=3.0.*, !=3.1.*, !=3.2.*, != 3.3.*
  21. Requires-Dist: backports-abc (>=0.4)
  22. Requires-Dist: futures
  23. Requires-Dist: singledispatch
  24. Tornado Web Server
  25. ==================
  26. .. image:: https://badges.gitter.im/Join%20Chat.svg
  27. :alt: Join the chat at https://gitter.im/tornadoweb/tornado
  28. :target: https://gitter.im/tornadoweb/tornado?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
  29. `Tornado <http://www.tornadoweb.org>`_ is a Python web framework and
  30. asynchronous networking library, originally developed at `FriendFeed
  31. <http://friendfeed.com>`_. By using non-blocking network I/O, Tornado
  32. can scale to tens of thousands of open connections, making it ideal for
  33. `long polling <http://en.wikipedia.org/wiki/Push_technology#Long_Polling>`_,
  34. `WebSockets <http://en.wikipedia.org/wiki/WebSocket>`_, and other
  35. applications that require a long-lived connection to each user.
  36. Hello, world
  37. ------------
  38. Here is a simple "Hello, world" example web app for Tornado:
  39. .. code-block:: python
  40. import tornado.ioloop
  41. import tornado.web
  42. class MainHandler(tornado.web.RequestHandler):
  43. def get(self):
  44. self.write("Hello, world")
  45. def make_app():
  46. return tornado.web.Application([
  47. (r"/", MainHandler),
  48. ])
  49. if __name__ == "__main__":
  50. app = make_app()
  51. app.listen(8888)
  52. tornado.ioloop.IOLoop.current().start()
  53. This example does not use any of Tornado's asynchronous features; for
  54. that see this `simple chat room
  55. <https://github.com/tornadoweb/tornado/tree/stable/demos/chat>`_.
  56. Documentation
  57. -------------
  58. Documentation and links to additional resources are available at
  59. http://www.tornadoweb.org