chore(release): 0.0.3 [skip ci] ## [0.0.3](https://github.com/pycasbin/postgresql-watcher/compare/v0.0.2...v0.0.3) (2022-02-05) ### Bug Fixes * correct requirements and python version support. dev requirement can be installed with: pip install ".[dev]" ([5bd65e8](https://github.com/pycasbin/postgresql-watcher/commit/5bd65e8a4ec85e46691a34ba10d0434659f3a08f)) * Specify a fixed version for nodejs in the release ci workflow ([2e3c5e7](https://github.com/pycasbin/postgresql-watcher/commit/2e3c5e727442db0e1b41a689139bcdc225468dd5)) * upgrade setuptools and wheel before installing deps. Upgrade psycopg2 to latest version (2.9.3) if possible. ([8beff2a](https://github.com/pycasbin/postgresql-watcher/commit/8beff2aef45e164aa27c09298c92886a41afaaf3))
Casbin role watcher to be used for monitoring updates to casbin policies
pip install casbin-postgresql-watcher
from flask_authz import CasbinEnforcer from postgresql_watcher import PostgresqlWatcher from flask import Flask from casbin.persist.adapters import FileAdapter casbin_enforcer = CasbinEnforcer(app, adapter) watcher = PostgresqlWatcher(host=HOST, port=PORT, user=USER, password=PASSWORD) watcher.set_update_callback(casbin_enforcer.e.load_policy()) casbin_enforcer.set_watcher(watcher)