{"id":15010027,"url":"https://github.com/pycasbin/async-postgres-watcher","last_synced_at":"2026-02-06T23:33:18.961Z","repository":{"id":226884001,"uuid":"766177807","full_name":"pycasbin/async-postgres-watcher","owner":"pycasbin","description":"Async PostgreSQL adapter for PyCasbin","archived":false,"fork":false,"pushed_at":"2024-03-17T03:21:38.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-23T00:43:59.042Z","etag":null,"topics":["abac","acl","adapter","async","auth","authz","casbin","postgres","postgresql","py","pycasbin","python","rbac","storage-driver"],"latest_commit_sha":null,"homepage":"https://github.com/casbin/pycasbin","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/pycasbin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2024-03-02T14:53:28.000Z","updated_at":"2024-09-02T12:50:46.000Z","dependencies_parsed_at":"2024-11-24T23:04:00.234Z","dependency_job_id":null,"html_url":"https://github.com/pycasbin/async-postgres-watcher","commit_stats":{"total_commits":7,"total_committers":3,"mean_commits":"2.3333333333333335","dds":0.5714285714285714,"last_synced_commit":"aae9774ef1b7bc419c644a7595190700600ef5c4"},"previous_names":["pycasbin/async-postgres-watcher"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pycasbin/async-postgres-watcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycasbin%2Fasync-postgres-watcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycasbin%2Fasync-postgres-watcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycasbin%2Fasync-postgres-watcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycasbin%2Fasync-postgres-watcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pycasbin","download_url":"https://codeload.github.com/pycasbin/async-postgres-watcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycasbin%2Fasync-postgres-watcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29180434,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T23:15:33.022Z","status":"ssl_error","status_checked_at":"2026-02-06T23:15:09.128Z","response_time":59,"last_error":"SSL_read: 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":["abac","acl","adapter","async","auth","authz","casbin","postgres","postgresql","py","pycasbin","python","rbac","storage-driver"],"created_at":"2024-09-24T19:29:35.030Z","updated_at":"2026-02-06T23:33:18.939Z","avatar_url":"https://github.com/pycasbin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# async-postgres-watcher\n\n[![tests](https://github.com/pycasbin/async-postgres-watcher/actions/workflows/release.yml/badge.svg)](https://github.com/pycasbin/async-postgres-watcher/actions)\n[![PyPI - Version](https://img.shields.io/pypi/v/casbin-async-postgres-watcher)](https://pypi.org/project/casbin-async-postgres-watcher/)\n[![PyPI - Wheel](https://img.shields.io/pypi/wheel/casbin-async-postgres-watcher.svg)](https://pypi.org/project/casbin-async-postgres-watcher/)\n[![PyPI - Downloads](https://img.shields.io/pypi/dm/casbin-async-postgres-watcher)](https://pypi.org/project/casbin-async-postgres-watcher/)\n[![PyPI - License](https://img.shields.io/pypi/l/casbin-async-postgres-watcher)](https://pypi.org/project/casbin-async-postgres-watcher/)\n[![Discord](https://img.shields.io/discord/1022748306096537660?logo=discord\u0026label=discord\u0026color=5865F2)](https://discord.gg/S5UjpzGZjN)\n\nAsync Casbin PostgreSQL watcher to be used for monitoring updates to Casbin policies.\n\n## Installation\n\n```bash\npip install casbin-async-postgres-watcher\n```\n\n## Basic Usage Example\n\n### With Flask-authz\n\n```python\nfrom flask_authz import CasbinEnforcer\nfrom async_postgres_watcher import AsyncPostgresWatcher\nfrom flask import Flask\nfrom casbin.persist.adapters import FileAdapter\n\ncasbin_enforcer = CasbinEnforcer(app, adapter)\n\nwatcher = AsyncPostgresWatcher(host=HOST, port=PORT, user=USER, password=PASSWORD, dbname=DBNAME)\nwatcher.set_update_callback(casbin_enforcer.e.load_policy)\n\ncasbin_enforcer.set_watcher(watcher)\n```\n\n## Basic Usage Example With SSL Enabled\n\nSee [asyncpg documentation](https://magicstack.github.io/asyncpg/current/api/index.html#connection) for full details of SSL parameters.\n\n### With Flask-authz\n\n```python\nfrom flask_authz import CasbinEnforcer\nfrom async_postgres_watcher import AsyncPostgresWatcher\nfrom flask import Flask\nfrom casbin.persist.adapters import FileAdapter\n\ncasbin_enforcer = CasbinEnforcer(app, adapter)\n\n# If check_hostname is True, the SSL context is created with sslmode=verify-full.\n# If check_hostname is False, the SSL context is created with sslmode=verify-ca.\nwatcher = AsyncPostgresWatcher(host=HOST, port=PORT, user=USER, password=PASSWORD, dbname=DBNAME, sslrootcert=SSLROOTCERT, check_hostname = True, sslcert=SSLCERT, sslkey=SSLKEY)\nwatcher.set_update_callback(casbin_enforcer.e.load_policy)\n\ncasbin_enforcer.set_watcher(watcher)\n```\n\n## Getting Help\n\n- [PyCasbin](https://github.com/casbin/pycasbin)\n\n## License\n\nThis project is under Apache 2.0 License. See the [LICENSE](LICENSE) file for the full license text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycasbin%2Fasync-postgres-watcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpycasbin%2Fasync-postgres-watcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycasbin%2Fasync-postgres-watcher/lists"}