Skip to main content

ADSocket transport library with Django integration

Project description

Adsocket transport


pip install adsocket-transport-django


Using django.db.singals is very easy...

from django.apps import AppConfig
from adsocket_transport_django.apps import ADSocketConfig

class VideosConfig(ADSocketConfig, AppConfig):
    Basic application config
    name = "myapp"
    verbose_name = "My App"

    adsocket_signals = [

from adsocket_transport_django.creator import ADSocketCreator
from adsocket_transport_django import CREATE, UPDATE, DELETE, Message

from myapp import models

class VideoMessageCreator(ADSocketCreator):

    class Meta:
        model = models.Todo

    def create(self, model):
        return Message(
            data={'obj':, 'action': 'create'}

    def update(self, model):
        return Message(
            data={'obj':, 'action': 'update'}

    def delete(self, model):
        return Message(
            data={'obj':, 'action': 'delete'}

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for adsocket-transport-django, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size adsocket_transport_django-0.1.3-py3-none-any.whl (9.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size adsocket-transport-django-0.1.3.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page