Skip to main content

etcd-watcher

tests Coverage Status Version PyPI - Wheel Pyversions Download Discord

Etcd Watcher is the Etcd watcher for pycasbin. With this library, Casbin can synchronize the policy with the database in multiple enforcer instances.

Installation

pip install casbin-etcd-watcher

Simple Example

import casbin
from etcd_watcher import new_watcher

def update_callback_func(event):
    ...

watcher = new_watcher(endpoints=["localhost", 2379], keyname="/casbin")
watcher.set_update_callback(update_callback_func)

e = casbin.Enforcer(
	get_examples("rbac_model.conf"), get_examples("rbac_policy.csv")
)

e.set_watcher(watcher)
# update_callback_func will be called
e.save_policy()

Getting Help

License

This project is under Apache 2.0 License. See the LICENSE file for the full license text.

Metadata

Release files for casbin-etcd-watcher 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for casbin-etcd-watcher 1.1.0
File Size Uploaded Provenance Actions
casbin_etcd_watcher-1.1.0.tar.gz 363.4 kB Without provenance Details for casbin_etcd_watcher-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for casbin-etcd-watcher 1.1.0
File Interpreter ABI Platform Actions
casbin_etcd_watcher-1.1.0-py3-none-any.whl Python 3 none any Details for casbin_etcd_watcher-1.1.0-py3-none-any.whl

Total release size: 761.4 kB

Release files / casbin_etcd_watcher-1.1.0.tar.gz

Download URL casbin_etcd_watcher-1.1.0.tar.gz
Size 363.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6001fa03dd78786a66ff4e5b687354801a8cb8c58a9c0ffd174c30066e36a6a5
BLAKE2b-256 checksum
How to use checksums
7e32bfce7499f87ff731105511fd743e6823b2e78bc92c768f8903e040ad831d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.2

Release files / casbin_etcd_watcher-1.1.0-py3-none-any.whl

Download URL casbin_etcd_watcher-1.1.0-py3-none-any.whl
Size 397.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
089c114a37495334a5642678cba849f0b6aa877a4606b1ce7d9f4062819ffe9d
BLAKE2b-256 checksum
How to use checksums
ec74e9cb18a87eaa39f50467db5446c9ed7391d24d77c622181b47f5c1817e51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.2

Security for casbin-etcd-watcher 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page