Reference ASGI adapters and channel layers
Project description
Contains various reference ASGI implementations, including:
A base channel layer, asgiref.base_layer
An in-memory channel layer, asgiref.inmemory
WSGI-to-ASGI and ASGI-to-WSGI adapters, in asgiref.wsgi
Base Channel Layer
Provides 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.
In-memory Channel Layer
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).
WSGI-ASGI Adapters
These are not yet complete and should not be used.
Dependencies
All Channels projects currently support Python 2.7, 3.4 and 3.5.
Contributing
Please refer to the main Channels contributing docs. That also contains advice on how to set up the development environment and run the tests.
Maintenance and Security
To report security issues, please contact security@djangoproject.com. 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file asgiref-1.1.2.tar.gz
.
File metadata
- Download URL: asgiref-1.1.2.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b46c3d6e2ad354d9da3cfb9873f9bd46fe1b768fbc11065275ba5430a46700c |
|
MD5 | 323b849cb9a73f770ed96f3d5d46e43b |
|
BLAKE2b-256 | e11b48e71f2a8b874a0dbd33b587827ee320cfb9dcbfaf1ed92a028be81bb86a |
Provenance
File details
Details for the file asgiref-1.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: asgiref-1.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d69847e3164957f4e6da51d2f1192b920c6c7d626bd3fc55f47aa1295702a0ed |
|
MD5 | 16411e2d9c2f7b617f427b3ba5190b69 |
|
BLAKE2b-256 | ee6d67f79a9567de5ba4419c3e8d39622bed0d974d704075d09df765b5ddb5ce |