Skip to main content

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.

Metadata

Release files for userv.async-server 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for userv.async-server 0.3.4
File Size Uploaded
userv.async_server-0.3.4.tar.gz 1.5 kB Details

Release files / userv.async_server-0.3.4.tar.gz

Download URL userv.async_server-0.3.4.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f71716e99ffb07c9d3c14c620da01d8571e85d5af8916b36290c6284df3fce73
BLAKE2b-256 checksum
How to use checksums
f4e16328ec782ab619f104713cf6acdc7aa6155b8773bcc39e773c3f5cb540fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

Release history Release notifications | RSS feed

This release

0.3.4 This release

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.1.3

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page