Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Werkzeug for asyncio

Project Description


Library to make werkzeug working with asyncio.


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.


  • 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)
    def foo_bar():
    def caller():
  • Asyncio HTTP server runner with reload

    $ python aiowerkzeug/ --reload


  • Form parser
  • Debug middleware
  • Static files middleware

Release History

This version
History Node


History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(7.9 kB) Copy SHA256 Hash SHA256
Source None Jul 5, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers