AMQP-backed ASGI channel layer implementation
Project description
asgi_amqp
==========
You should probably use `asgi_rabbitmq <http://asgi-rabbitmq.readthedocs.io/en/latest/index.html>`_
----------
Not intended for public consumption. Currently depends on closed source libraries.
An ASGI channel layer that uses AMQP as its backing store with group support.
*IMPORTANT*
-----------
This library expects your Django project to have a model called ChannelGroup.
You will need to fix the import of `ChannelGroup` in the code to make it work
with your django project.
Eventually I make this part of the configuration options so you can just pass
in `project.model.MyModel` in your `settings.py` file.
Example Model::
from django.db import models
class ChannelGroup(models.Model):
group = models.CharField(max_length=200, unique=True)
channels = models.TextField()
Usage
-----
You'll need to instantiate the channel layer with at least ``url``,
and other options if you need them.
Example::
channel_layer = AMQPChannelLayer(
url="amqp://guest:guest@localhost:5672//",
}
)
host
~~~~
The server to connect to as a URL.
==========
You should probably use `asgi_rabbitmq <http://asgi-rabbitmq.readthedocs.io/en/latest/index.html>`_
----------
Not intended for public consumption. Currently depends on closed source libraries.
An ASGI channel layer that uses AMQP as its backing store with group support.
*IMPORTANT*
-----------
This library expects your Django project to have a model called ChannelGroup.
You will need to fix the import of `ChannelGroup` in the code to make it work
with your django project.
Eventually I make this part of the configuration options so you can just pass
in `project.model.MyModel` in your `settings.py` file.
Example Model::
from django.db import models
class ChannelGroup(models.Model):
group = models.CharField(max_length=200, unique=True)
channels = models.TextField()
Usage
-----
You'll need to instantiate the channel layer with at least ``url``,
and other options if you need them.
Example::
channel_layer = AMQPChannelLayer(
url="amqp://guest:guest@localhost:5672//",
}
)
host
~~~~
The server to connect to as a URL.
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
asgi_amqp-1.0.1.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for asgi_amqp-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e8ff8d51b99134eed01f03e967f67885e7b668e980eb8912f4f1014fcee4ae4 |
|
MD5 | 232b44026686fff94243530baa76ee13 |
|
BLAKE2b-256 | 9428e36cb89e5f176840baddbae5b492f4bbcc85b6c68a3f5b900489dc4affdd |