Async server for userv
Simple async webserver
First we need to add routes to a router. After this we can add a task to the async loop with:
from userv.routing import Router from userv.async_server import run_server router = Router() run_server(router)
Now we have added the current app to the event loop and we still have to run the event loop.
from uasyncio import get_event_loop loop = get_event_loop() loop.run_forever()
Now the server will run and serve your data.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size userv.async_server-0.3.0.tar.gz (1.4 kB)||File type Source||Python version None||Upload date||Hashes View hashes|