Skip to main content

Async server for userv

Project description

The catch

Simple async webserver

Webserver

First we need to add routes to a router. After this we can add a task to the async loop with:

Example:

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.

Example:

from uasyncio import get_event_loop
loop = get_event_loop()
loop.run_forever()

Now the server will run and serve your data.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for userv.async-server, version 0.3.4
Filename, size File type Python version Upload date Hashes
Filename, size userv.async_server-0.3.4.tar.gz (1.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page