asgiref
Reference ASGI adapters and channel layers
Reference ASGI adapters and channel layers
To install this package, run one of the following:
.. image:: https://api.travis-ci.org/django/asgiref.svg :target: https://travis-ci.org/django/asgiref
.. image:: https://img.shields.io/pypi/v/asgiref.svg :target: https://pypi.python.org/pypi/asgiref
Contains various reference ASGI implementations, including:
asgiref.base_layerasgiref.inmemoryasgiref.wsgiProvides an optional template to start ASGI channel layers from with the two exceptions you need provided and all API functions stubbed out.
Also comes with logic for doing per-channel capacities using channel names and
globbing; use self.get_capacity and pass the arguments through to the base
__init__ if you want to use it.
Simply instantiate asgiref.inmemory.ChannelLayer, or use the pre-made
asgiref.inmemory.channel_layer for easy use. Implements the group
extension, and is designed to support running multiple ASGI programs
in separate threads within one process (the channel layer is threadsafe).
These are not yet complete and should not be used.
All Channels projects currently support Python 2.7, 3.4 and 3.5.
Please refer to the
main Channels contributing docs <https://github.com/django/channels/blob/master/CONTRIBUTING.rst>_.
That also contains advice on how to set up the development environment and run the tests.
To report security issues, please contact [email protected]. For GPG signatures and more security process information, see https://docs.djangoproject.com/en/dev/internals/security/.
To report bugs or request new features, please open a new GitHub issue.
This repository is part of the Channels project. For the shepherd and maintenance team, please see the
main Channels readme <https://github.com/django/channels/blob/master/README.rst>_.
Summary
Reference ASGI adapters and channel layers
Last Updated
Sep 26, 2017 at 00:07
License
BSD 3-clause
Total Downloads
94
Version Downloads
94
Supported Platforms
GitHub Repository
http://github.com/django/asgiref/Documentation
https://channels.readthedocs.io/en/stable/