Subscriptions for Django REST Framework over Websockets.
Project description
Django REST Live
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_rest_live-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b182c49daf87e118c9c47972001bcd62ef72a598dbc8e628db313d5cd13c05c |
|
MD5 | a7fef71e77775254f24c6db600da68fa |
|
BLAKE2b-256 | 7868f87ab2cc6afda129060f948d2b476109c52e0286741974f896c3dee66d53 |