Skip to main content

AMQP-backed ASGI channel layer implementation

Project description

An ASGI channel layer that uses AMQP as its backing store with group support.

Settings

The asgi_amqp channel layer looks for settings in ASGI_AMQP and has the following configuration options. URL and connection settings are configured through CHANNEL_LAYER same as any channel layer.

MODEL Set a custom ChannelGroup model to use. See more about this in the ChannelGroup Model section of this README.

Usage:

ASGI_AMQP = {'MODEL': 'awx.main.models.channels.ChannelGroup'}

INIT_FUNC A function that you want run when the channel layer is first instantiated.

Usage:

ASGI_AMQP = {'INIT_FUNC': 'awx.prepare_env'}

ChannelGroup Model

This channel layer requires a database model called ChannelGroup. You can use the model and migation provided by adding asgi_amqp to your installed apps or you can point the ASGI_AMQP.MODEL setting to a model you have already defined.

Installed Apps:

INSTALLED_APPS = [
    ...
    'asgi_amqp',
    ...
]

Settings:

ASGI_AMQP = {
    'MODEL': 'awx.main.models.channels.ChannelGroup',
}

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

asgi_amqp-1.1.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asgi_amqp-1.1.1-py2.py3-none-any.whl (7.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file asgi_amqp-1.1.1.tar.gz.

File metadata

  • Download URL: asgi_amqp-1.1.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for asgi_amqp-1.1.1.tar.gz
Algorithm Hash digest
SHA256 9ed513502cd6edff25273be0a4ee21aa6f4bef4144c1f62c8ff1c09bf7a56747
MD5 7b4725a41b68da1138cd06cc0bf4f5ae
BLAKE2b-256 86095ce72aa436c744d52c8ee0ad17a22a66b6d04a9885e53fff606e22544837

See more details on using hashes here.

File details

Details for the file asgi_amqp-1.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for asgi_amqp-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e3d9e06431f275d6660c24b85e66ace5c3718e7318d6389f6e459b50446cc4a1
MD5 36b9d130771c971bf2f1244dd4c4d405
BLAKE2b-256 4a32a395e7de83225445a868e95b69d8334032aec3cc19d742ccf1a053173396

See more details on using hashes here.

Supported by

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