{"id":19999294,"url":"https://github.com/lostclus/django-kafka-streamer","last_synced_at":"2026-02-16T00:32:22.739Z","repository":{"id":65248297,"uuid":"588673194","full_name":"lostclus/django-kafka-streamer","owner":"lostclus","description":"Stream data from Django application to Apache Kafka","archived":false,"fork":false,"pushed_at":"2025-01-29T09:25:40.000Z","size":77,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-20T14:18:04.952Z","etag":null,"topics":["data-synchronization","django","kafka","message-bus","message-queue","microservices","straming"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lostclus.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-13T17:47:52.000Z","updated_at":"2025-01-29T09:25:43.000Z","dependencies_parsed_at":"2024-09-10T09:49:07.804Z","dependency_job_id":"d3577850-1058-41a9-9971-2c79185a538f","html_url":"https://github.com/lostclus/django-kafka-streamer","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"b8048d9a85b2cbcc337d0b35a9f53135943eaf49"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/lostclus/django-kafka-streamer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostclus%2Fdjango-kafka-streamer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostclus%2Fdjango-kafka-streamer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostclus%2Fdjango-kafka-streamer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostclus%2Fdjango-kafka-streamer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostclus","download_url":"https://codeload.github.com/lostclus/django-kafka-streamer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostclus%2Fdjango-kafka-streamer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29494996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T00:16:34.147Z","status":"ssl_error","status_checked_at":"2026-02-16T00:15:26.759Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-synchronization","django","kafka","message-bus","message-queue","microservices","straming"],"created_at":"2024-11-13T05:11:20.193Z","updated_at":"2026-02-16T00:32:22.724Z","avatar_url":"https://github.com/lostclus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-kafka-streamer\n=====================\n\n.. image:: https://github.com/lostclus/django-kafka-streamer/actions/workflows/tests.yml/badge.svg\n    :target: https://github.com/lostclus/django-kafka-streamer/actions\n\n.. image:: https://readthedocs.org/projects/django-kafka-streamer/badge/?version=latest\n    :target: http://django-kafka-streamer.readthedocs.io/\n    :alt: Documentation\n\n.. image:: https://img.shields.io/pypi/v/django-kafka-streamer.svg\n    :target: https://pypi.org/project/django-kafka-streamer/\n    :alt: Current version on PyPi\n\n.. image:: https://img.shields.io/pypi/pyversions/django-kafka-streamer\n    :alt: PyPI - Python Version\n\n.. image:: https://img.shields.io/pypi/djversions/django-kafka-streamer\n    :alt: PyPI - Django Version\n\n.. image:: https://img.shields.io/badge/Published%20on-Django%20Packages-0c3c26\n    :target: https://djangopackages.org/packages/p/django-kafka-streamer/\n    :alt: Published on Django Packages\n\ndjango-kafka-streamer is a Django application and library for streaming data to\nApache Kafka.\n\nFeatures:\n\n* Setup signal handlers to ORM models to transparently send create/update/delete\n  events to Kafka\n* Handle database object relations\n* Celery task to stream large amount of data in background\n\nLinks:\n\n* GitHub: https://github.com/lostclus/django-kafka-streamer/\n* PyPI: https://pypi.org/project/django-kafka-streamer/\n* Documentation: http://django-kafka-streamer.readthedocs.io/\n* Consumer library: https://github.com/lostclus/aiosafeconsumer\n* Example application: https://github.com/lostclus/WeatherApp\n\nUsage:\n\n`yourapp/models.py`::\n\n    from django.db import models\n\n    class MyModel(models.Model):\n        field1 = models.IntegerField()\n        field2 = models.CharField(max_length=10)\n\n`yourapp/stramers.py`::\n\n    from kafkastreamer import Streamer, register\n    from .models import MyModel\n\n    @register(MyModel)\n    class MyModelStreamer(Streamer):\n        topic = \"model-a\"\n\n`yourproject/settings.py`::\n\n    INSTALLED_APPS = [\n        ...\n        \"kafkastreamer\",\n    ]\n\n    KAFKA_STREAMER = {\n        \"BOOTSTRAP_SERVERS\": [\"localhost:9092\"],\n    },\n\nAny changes in ``MyModel`` data will be automatically streamed to Kafka. To\nforce stream all data in all registered models type::\n\n    python manage.py kafkastreamer_refresh\n\nThe data streamed to the ``model-a`` Kafka topic has following structure::\n\n    {\n        \"_time\": \"2023-01-01T00:00:00Z\",\n        \"_type\": \"create\",\n        \"id\": 1,\n        \"field1\": 1,\n        \"field2\": \"abc\"\n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostclus%2Fdjango-kafka-streamer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostclus%2Fdjango-kafka-streamer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostclus%2Fdjango-kafka-streamer/lists"}