aiowerkzeug
Library to make werkzeug working with asyncio.
Changelog
Version 0.2.0
Use Python 3.5 async syntax.
New ~keep_context_factory. It works like ~context_coroutine, but simple code.
Async version of Local, LocalStack and LocalManager. They implement __release_local__ method.
Features
Async versions of Local, LocalStack and LocalManager.
Locals work on asyncio Tasks. werkzeug.local.Local or werkzeug.local.LocalStack must be patched with aiowerkzeug.local.patch_local
Patched werkzeug.local.Local or werkzeug.local.LocalStack use current asyncio.tasks.Task to determine context.
Decorator factory to mark coroutines to run in a context. Useful for Flask. It allows to run corountines in new asyncio.tasks.Task inside a specific context.
For example, in Flask to run coroutines in Application context it is possible to create a decorator like that:
def _get_app_context(): return current_app.app_context() app_coroutine = partial(context_coroutine, ctx=_get_app_context) @app_coroutine def foo_bar(): print(current_app.debug) @flask_app.route('/') def caller(): asyncio.ensure_future(foo_bar())Asyncio HTTP server runner with reload
$ python aiowerkzeug/serving.py --reload app_test.app
TODO
Form parser
Debug middleware
Static files middleware
Metadata
Release files for aiowerkzeug 0.2.0
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 | |
|---|---|---|---|---|
| aiowerkzeug-0.2.0.tar.gz | 7.9 kB | Without provenance | Details |
Release files / aiowerkzeug-0.2.0.tar.gz
| Download URL | aiowerkzeug-0.2.0.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad4fb4f8c21cefc79f33f64623d424ceec002f923f261160fc9b255ee192c7dc
|
|
BLAKE2b-256 checksum How to use checksums |
c2d3a8511bc9161490f25fd3bbfe926f70b4e18a3958832059c11a43a7d7e365
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for aiowerkzeug 0.2.0
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.