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. Atm creating json or text responses is part of the webserver but will be generalised to the core in future.

First we add a server task to the event loop Example:

from userv.routing import Router
from userv.async_server import App
router = Router()

web_server = App(router)
web_server.run_task()

Now we have added the current app to the event loop and stll work on other tasks. It will be run when we trigger the loop.run as all async tasks should.

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.1.1
Filename, size File type Python version Upload date Hashes
Filename, size userv.async_server-0.1.1.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page