Browse Source

updates to asgi examples

pull/221/head
Miguel Grinberg 6 years ago
parent
commit
1768e251b9
No known key found for this signature in database GPG Key ID: 36848B262DF5F06C
  1. 7
      examples/asgi/README.rst
  2. 0
      examples/asgi/app.html
  3. 1
      examples/asgi/app.py
  4. 0
      examples/asgi/latency.html
  5. 1
      examples/asgi/latency.py
  6. 17
      examples/asgi/requirements.txt

7
examples/asgi/README.rst

@ -1,9 +1,8 @@
Socket.IO aiohttp Examples
Socket.IO ASGI Examples
==========================
This directory contains example Socket.IO applications that are compatible with
asyncio and the aiohttp framework. These applications require Python 3.5 or
later.
asyncio and the ASGI specification.
app.py
------
@ -36,4 +35,4 @@ or::
$ python latency.py
You can then access the application from your web browser at
``http://localhost:8080``.
``http://localhost:5000``.

0
examples/asgi/app.html

1
examples/asgi/app.py

@ -1,3 +1,4 @@
#!/usr/bin/env python
import asyncio
import uvicorn

0
examples/asgi/latency.html

1
examples/asgi/latency.py

@ -1,3 +1,4 @@
#!/usr/bin/env python
import uvicorn
import socketio

17
examples/asgi/requirements.txt

@ -1,8 +1,9 @@
aiohttp==1.3.1
async-timeout==1.1.0
chardet==2.3.0
multidict==2.1.4
python-engineio
python_socketio
six==1.10.0
yarl==0.9.2
Click==7.0
h11==0.8.1
httptools==0.0.11
python-engineio==3.0.0
-e [email protected]:miguelgrinberg/python-socketio@b214380d056dbbfb08273ac482633254176cb847#egg=python_socketio
six==1.11.0
uvicorn==0.3.21
uvloop==0.11.3
websockets==7.0

Loading…
Cancel
Save