Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tornadoweb/tornado
Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
https://github.com/tornadoweb/tornado
asynchronous python
Last synced: 3 days ago
JSON representation
Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
- Host: GitHub
- URL: https://github.com/tornadoweb/tornado
- Owner: tornadoweb
- License: apache-2.0
- Created: 2009-09-09T04:55:16.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T14:19:06.000Z (about 2 months ago)
- Last Synced: 2024-10-29T15:45:36.664Z (about 1 month ago)
- Topics: asynchronous, python
- Language: Python
- Homepage: http://www.tornadoweb.org/
- Size: 9.94 MB
- Stars: 21,725
- Watchers: 982
- Forks: 5,504
- Open Issues: 219
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
- awesome - tornado - Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. (Python)
- best-of-web-python - GitHub - 12% open · ⏱️ 04.06.2024): (Web Frameworks)
- awesome-repositories - tornadoweb/tornado - Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. (Python)
- awesome-go - tornado - Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. - ★ 16773 (Authentication and OAuth)
- awesome-websocket-security - Tornado
- starred-awesome - tornado - Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. (Python)
- awesome-hacking-lists - tornadoweb/tornado - Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. (Python)
- jimsghstars - tornadoweb/tornado - Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. (Python)
README
Tornado Web Server
==================.. image:: https://badges.gitter.im/Join%20Chat.svg
:alt: Join the chat at https://gitter.im/tornadoweb/tornado
:target: https://gitter.im/tornadoweb/tornado?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge`Tornado `_ is a Python web framework and
asynchronous networking library, originally developed at `FriendFeed
`_. By using non-blocking network I/O, Tornado
can scale to tens of thousands of open connections, making it ideal for
`long polling `_,
`WebSockets `_, and other
applications that require a long-lived connection to each user.Hello, world
------------Here is a simple "Hello, world" example web app for Tornado:
.. code-block:: python
import asyncio
import tornadoclass MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hello, world")def make_app():
return tornado.web.Application([
(r"/", MainHandler),
])async def main():
app = make_app()
app.listen(8888)
await asyncio.Event().wait()if __name__ == "__main__":
asyncio.run(main())This example does not use any of Tornado's asynchronous features; for
that see this `simple chat room
`_.Documentation
-------------Documentation and links to additional resources are available at
https://www.tornadoweb.org