Skip to main content

Pyramid Asyncio Glue

Project description

A lib that override pyramid to build asyncio web application.

Basically, it change views to asyncio coroutine.

Getting Started

pyramid_asyncio add two directives to treat views as coroutine.

  • config.add_coroutine_view()

This is a coroutine version of the config.add_view. pyramid_asyncio provide also a decorator coroutine_view_config which is the view_config version for coroutine view.

  • config.make_asyncio_app()

This create the wsgi app that work with the aiohttp gunicorn worker. aiohttp.worker.AsyncGunicornWorker

config.make_wsgi_app() could not be used because the pyramid router must be changed.

The simple way to create the pyramid app with asyncio is to use the scaffold.

pyramid_asyncio comme with a scaffold that create a “hello world” application, check it

pcreate -s aio_jinja2 helloworld

Changelog

0.2 Released on 2017-05-07

  • Pin version of Pyramid 1.5

    The ViewDeriver has evolved and is now an interface IViewDeriver. Unfortunately, this make things harder for replacing the default ViewDeriver installed.

  • Pin version of aiohttp.

    WSGI/Gunicorn support has been dropped in version 2.

0.1 Released on 2015-03-30

  • Initial Release

Project details


Download files

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

Source Distribution

pyramid-asyncio-0.2.tar.gz (21.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page