Team Ai
Datasetpublic

codekingpro/portable-devtools

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