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.

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


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.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

asgiref-1.0.1-py2.py3-none-any.whl (13.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for asgiref-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0979f2bb6294ab0b55f19882bd85defb279349a2e538ce351b14eaa6d8e28fff
MD5 8665d245233e033f90126c7a3544f1ff
BLAKE2b-256 e894ef3fd720c5913a4e038829fb3435efea9314731b11484764a9df64e48a20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for asgiref-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dac4b6782ae55a5e7bb03cfc51e76e71e6cc7a4deb3bd1303c6b6cdc510387e8
MD5 acc9dbe91b529089948776a1f6a7b717
BLAKE2b-256 d61e9c954831e1c0f297980984b0506fdb05eec76e08ce5efe492b23456c1e9b

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