Skip to main content

Reference ASGI adapters and channel layers

Project description

https://api.travis-ci.org/django/asgiref.svg https://img.shields.io/pypi/v/asgiref.svg

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.

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


Download files

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

Source Distribution

asgiref-1.0.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

asgiref-1.0.0-py2.py3-none-any.whl (13.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file asgiref-1.0.0.tar.gz.

File metadata

  • Download URL: asgiref-1.0.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for asgiref-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f13c68118e7623938db2def36eea29d66b5381691d9c30da26cc1eab65b7e4c9
MD5 82a269dba15c1a95383b249abcfe4822
BLAKE2b-256 51e92cf275a4145e7feef53d5370e7e7fe738f7120d61cc0a5f9b11f606f34e4

See more details on using hashes here.

File details

Details for the file asgiref-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for asgiref-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b7d118253c23545707a540a9e9f54f99dc75df4df8ddd62eac6415da0a306581
MD5 13819815930d2916dc4bfd5cc1e28624
BLAKE2b-256 52843404065fdd4c834ab4b8a3533822672a608c6ad73226cfec9d90265b94ec

See more details on using hashes here.

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