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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| userv.async_server-0.3.4.tar.gz | 1.5 kB | Without provenance | Details for userv.async_server-0.3.4.tar.gz |
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
|
Security for userv.async-server 0.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.