{"id":23544495,"url":"https://github.com/d3f0/notify","last_synced_at":"2025-07-17T16:39:26.666Z","repository":{"id":233401646,"uuid":"619829311","full_name":"D3f0/notify","owner":"D3f0","description":"A very simple example of message publishing","archived":false,"fork":false,"pushed_at":"2023-03-27T14:08:37.000Z","size":1578,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T08:45:13.496Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/D3f0.png","metadata":{"files":{"readme":"README.md","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-03-27T14:03:25.000Z","updated_at":"2023-03-27T14:08:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"1077ea48-8272-4cab-b13a-e66d3117b1fe","html_url":"https://github.com/D3f0/notify","commit_stats":null,"previous_names":["d3f0/notify"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/D3f0/notify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3f0%2Fnotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3f0%2Fnotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3f0%2Fnotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3f0%2Fnotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/D3f0","download_url":"https://codeload.github.com/D3f0/notify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3f0%2Fnotify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265631119,"owners_count":23801746,"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-12-26T07:15:24.326Z","updated_at":"2025-07-17T16:39:26.656Z","avatar_url":"https://github.com/D3f0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postgres Notifications Example\n\nInspiration for this project comes from this\n[blog post](https://coussej.github.io/2015/09/15/Listening-to-generic-JSON-notifications-from-PostgreSQL-in-Go/)\nby Jeroen Coussement.\n\n## How to run\n\n```bash\ndocker-compose up --build\n```\n\n### Important pieces\n\n* `services/postgres/docker-entrypoint-initdb.d/*.sql`\n\n  Defines the table, function and sets the trigger. The\n  channel name is a geric `events`\n\n* `services/notifier/src/notifier/main.py`\n\n  Simple script that connects to Postgres, adds an event listener\n  whose callback is function printing to stdout.\n\n* adminer\n\n  This is a generic adminer image running in `:3000`. It should\n  be reachable at [http://localhost:3000](http://localhost:3000/?pgsql=postgres\u0026username=postgres\u0026db=example\u0026ns=public\u0026select=products)\n\n## In action\n\n![](./docs/img/deepin-screen-recorder_Select%20area_20200726122102.gif)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3f0%2Fnotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd3f0%2Fnotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3f0%2Fnotify/lists"}