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

Uploaded Source

Built Distribution

asgi_amqp-1.1.4-py2.py3-none-any.whl (6.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: asgi_amqp-1.1.4.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for asgi_amqp-1.1.4.tar.gz
Algorithm Hash digest
SHA256 835f8e818f5cbe289938bc54202abcaf330ac4f14357c29a63758d22819bc458
MD5 ba036566f86148eb0ec9ec52f81a6f96
BLAKE2b-256 2581ba8479246f9aa238f9b8d7b525497e132f2294608f675d251f905ed11edf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for asgi_amqp-1.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5475b803974339f49106c5023e880efaf1ee60d807353e0c269e9ba8cddeb6c0
MD5 10bb3f9846a231f6478a7bdaf41258dd
BLAKE2b-256 5a7ac39dbe7bc82f60f7b78edd935f607d404b23571437a62d93ff98da59c3e8

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