{"id":21298411,"url":"https://github.com/airspot-dev/django-signals-cloudevents","last_synced_at":"2025-03-15T17:43:23.302Z","repository":{"id":56010919,"uuid":"301974760","full_name":"airspot-dev/django-signals-cloudevents","owner":"airspot-dev","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-21T16:18:00.000Z","size":30,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-08T14:05:14.722Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/airspot-dev.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}},"created_at":"2020-10-07T08:37:07.000Z","updated_at":"2021-05-18T09:57:08.000Z","dependencies_parsed_at":"2022-08-15T11:20:37.521Z","dependency_job_id":null,"html_url":"https://github.com/airspot-dev/django-signals-cloudevents","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airspot-dev%2Fdjango-signals-cloudevents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airspot-dev%2Fdjango-signals-cloudevents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airspot-dev%2Fdjango-signals-cloudevents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airspot-dev%2Fdjango-signals-cloudevents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/airspot-dev","download_url":"https://codeload.github.com/airspot-dev/django-signals-cloudevents/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225750181,"owners_count":17518315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-21T14:51:55.048Z","updated_at":"2024-11-21T14:51:55.899Z","avatar_url":"https://github.com/airspot-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=====\nDjango signals cloudevents\n=====\n\nThis apps allow you to produce `Clouevents \u003chttps://cloudevents.io/\u003e`_ starting from your models signals sending them to a configurable url (sink).\n\nThis app is mainly intended to transform a Django instance into a Knative source for your [KRules](https://github.com/airspot-dev/krules) application, \nthrough a SinkBinding or ContainerSource.\n\nFor more information visit the `Knative eventing documentation \u003chttps://knative.dev/docs/eventing/\u003e`_\n\nQuick start\n-----------\n\n1. Add \"django_signals_cloudevents\" to your INSTALLED_APPS setting like this::\n\n    INSTALLED_APPS = [\n        ...\n        'django_signals_cloudevents',\n    ]\n\n2. Register your models like this::\n\n    from django_signals_cloudevents import send_cloudevent\n\n    post_save.connect(send_cloudevent, sender=YourModel)\n\n3. [Optional] As said previously, by default this app is configured to be used with a SinkBinding and get sink url from the environment variable K_SINK and the source name from K_SOURCE.\nIt is possible to override the chosen env variable in your project settings, here is the default configuration::\n\n    CLOUDEVENTS_ENV = {\n        \"SINK_VAR\": \"K_SINK\",\n        \"SOURCE_VAR\": \"K_SOURCE\"\n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairspot-dev%2Fdjango-signals-cloudevents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fairspot-dev%2Fdjango-signals-cloudevents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairspot-dev%2Fdjango-signals-cloudevents/lists"}