Skip to main content

Subscriptions for Django REST Framework over Websockets.

Project description

Django REST Live

Documentation CircleCI Coverage Status PyPi Package

django-rest-live adds real-time subscriptions over websockets to Django REST Framework views by leveraging websocket support provided by Django Channels.

Read the documentation here!

django-rest-live took initial inspiration from this article by Kit La Touche. The goal of this project is to be as close as possible to a drop-in realtime solution for projects already using Django REST Framework.

Differently from projects like djangochannelsrestframework, django-rest-live does not aim to supplant REST Framework for performing CRUD actions through a REST API. Instead, it is designed to be used in conjunction with HTTP REST endpoints. Clients should still use normal REST framework endpoints generated by ViewSets and other API views to get initial data to populate a page, as well as any write-driven behavior (POST, PATCH, PUT, DELETE). django-rest-live gets rid of the need for periodic polling GET requests to for resource updates after page load.

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

django-rest-live-0.4.2.tar.gz (9.5 kB view hashes)

Uploaded Source

Built Distribution

django_rest_live-0.4.2-py3-none-any.whl (12.5 kB view hashes)

Uploaded 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