METADATA 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Metadata-Version: 2.4
  2. Name: tornado
  3. Version: 6.5.5
  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: Apache-2.0
  9. Project-URL: Source, https://github.com/tornadoweb/tornado
  10. Classifier: License :: OSI Approved :: Apache Software License
  11. Classifier: Programming Language :: Python :: 3
  12. Classifier: Programming Language :: Python :: 3.9
  13. Classifier: Programming Language :: Python :: 3.10
  14. Classifier: Programming Language :: Python :: 3.11
  15. Classifier: Programming Language :: Python :: 3.12
  16. Classifier: Programming Language :: Python :: 3.13
  17. Classifier: Programming Language :: Python :: Implementation :: CPython
  18. Classifier: Programming Language :: Python :: Implementation :: PyPy
  19. Requires-Python: >= 3.9
  20. Description-Content-Type: text/x-rst
  21. License-File: LICENSE
  22. Dynamic: author
  23. Dynamic: author-email
  24. Dynamic: classifier
  25. Dynamic: description
  26. Dynamic: description-content-type
  27. Dynamic: home-page
  28. Dynamic: license
  29. Dynamic: license-file
  30. Dynamic: project-url
  31. Dynamic: requires-python
  32. Dynamic: summary
  33. Tornado Web Server
  34. ==================
  35. .. image:: https://badges.gitter.im/Join%20Chat.svg
  36. :alt: Join the chat at https://gitter.im/tornadoweb/tornado
  37. :target: https://gitter.im/tornadoweb/tornado?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
  38. `Tornado <http://www.tornadoweb.org>`_ is a Python web framework and
  39. asynchronous networking library, originally developed at `FriendFeed
  40. <http://friendfeed.com>`_. By using non-blocking network I/O, Tornado
  41. can scale to tens of thousands of open connections, making it ideal for
  42. `long polling <http://en.wikipedia.org/wiki/Push_technology#Long_Polling>`_,
  43. `WebSockets <http://en.wikipedia.org/wiki/WebSocket>`_, and other
  44. applications that require a long-lived connection to each user.
  45. Hello, world
  46. ------------
  47. Here is a simple "Hello, world" example web app for Tornado:
  48. .. code-block:: python
  49. import asyncio
  50. import tornado
  51. class MainHandler(tornado.web.RequestHandler):
  52. def get(self):
  53. self.write("Hello, world")
  54. def make_app():
  55. return tornado.web.Application([
  56. (r"/", MainHandler),
  57. ])
  58. async def main():
  59. app = make_app()
  60. app.listen(8888)
  61. await asyncio.Event().wait()
  62. if __name__ == "__main__":
  63. asyncio.run(main())
  64. This example does not use any of Tornado's asynchronous features; for
  65. that see this `simple chat room
  66. <https://github.com/tornadoweb/tornado/tree/stable/demos/chat>`_.
  67. Documentation
  68. -------------
  69. Documentation and links to additional resources are available at
  70. https://www.tornadoweb.org