Skip to content

ollamh/asgi_rabbitmq

 
 

Repository files navigation

asgi_rabbitmq

Build Status Coverage Status

RabbitMQ backend for ASGI.

Installation

You can install the most recent available version from PyPI:

pip install asgi_rabbitmq

Usage

To use RabbitMQ broker as your channels layer add following lines to your django settings

CHANNEL_LAYERS = {
    'default': {
        'BACKEND': 'asgi_rabbitmq.RabbitmqChannelLayer',
        # Change according to your project layout:
        'ROUTING': 'myproject.routing.routes',
        'CONFIG': {
            'url': 'amqp://guest:guest@rabbitmq:5672/%2F',
        },
    },
}

Now you can use channels project as usual:

daphne myproject.asgi:channel_layer
django-admin runworker

License

ASGI RabbitMQ layer is offered under 3-terms BSD license.

About

RabbitMQ backend for ASGI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%