Metadata-Version: 2.0
Name: asgi-amqp
Version: 1.0.2
Summary: AMQP-backed ASGI channel layer implementation
Home-page: http://github.com/ansible/asgi_amqp/
Author: Wayne Witzel III
Author-email: wayne@riotousliving.com
License: BSD
Description-Content-Type: UNKNOWN
Keywords: asgi_amqp asgi amqp rabbitmq django channels
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: six
Requires-Dist: kombu (>=3.0.35)
Requires-Dist: msgpack-python (>=0.4.7)
Requires-Dist: asgiref (==1.1.2)
Requires-Dist: jsonpickle (>=0.9.3)

asgi_amqp
==========

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.

See an example here: https://github.com/ansible/awx/blob/devel/awx/main/models/channels.py

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.


