Skip to main content

Django Channels Layer for Google PubSub

Project description

https://badge.fury.io/py/dj-channels-pubsub.svg https://travis-ci.org/bgervan/dj-channels-pubsub.svg?branch=master https://codecov.io/gh/bgervan/dj-channels-pubsub/branch/master/graph/badge.svg

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:

History

0.1.0 (2021-08-04)

  • First release on PyPI.

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

dj-channels-pubsub-0.1.0.tar.gz (9.3 kB view hashes)

Uploaded Source

Built Distribution

dj_channels_pubsub-0.1.0-py2.py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 2 Python 3

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