A lightweight policy-based RBAC and ABAC engine.
Project description
RBAC Engine
A lightweight policy-based Role-Based Access Control (RBAC) engine for Python.
Installation
pip install rbac
from rbac import PolicyEngine
# Initialize the engine
engine = PolicyEngine()
# Add roles and permissions
engine.add_role("admin", ["*"])
engine.add_role("editor", ["read", "write"])
# Assign roles to users
engine.assign_role("user_123", "editor")
# Evaluate permissions
print(engine.evaluate("user_123", "write")) # True
print(engine.evaluate("user_123", "delete")) # False
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file light_rbac-0.1.0-py3-none-any.whl.
File metadata
- Download URL: light_rbac-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3831f65522c000562f87080a06bcb7184e342bb6197db74991bf3ec0edfa1abc
|
|
| MD5 |
bbb758a8fbdcce4bbce1f7467db85cea
|
|
| BLAKE2b-256 |
d03fdb1fcb421a51f6d88803bede962d3fc91db9e5cd95e4d12f8896d0cc0022
|