Skip to content

bgervan/dj-channels-pubsub

Repository files navigation

Django Channels PubSub

image

image

image

Django Channels Layer for Google PubSub

Documentation

The full documentation is at https://dj-channels-pubsub.readthedocs.io.

Quickstart

Install Django Channels PubSub:

pip install dj-channels-pubsub

Add Environment variables:

export GOOGLE_CLOUD_PROJECT="" # Real project ID required for local emulator too

For the local PubSub Emulator, add:

export PUBSUB_EMULATOR_HOST=localhost:8085

For the local PubSub Emulator with Docker Compose:

export PUBSUB_EMULATOR_HOST=pubsub:8085
pubsub:
image: google/cloud-sdk:331.0.0
command: gcloud beta emulators pubsub start --host-port=0.0.0.0:8085
ports:
  - "8085:8085"
restart: unless-stopped

Features

  • TODO

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Development commands

pip install -r requirements_dev.txt
invoke -l

Credits

Tools used in rendering this package:

About

Django channels layer for Google Pub/Sub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages