🔐 robovai-rbac
Enterprise Dynamic Role-Based Access Control (RBAC) & Authorization Middleware for Python Web Services.
📌 Features
- 🔐 Dynamic Permission Evaluation: Grants/revokes permissions without redeploying code.
- 🎟️ JWT Token Support: Built-in verification & payload decoding.
- ⚡ Zero-Overhead Decorators: Clean
@require_permission('admin:write')syntax for Flask & FastAPI.
⚡ Quick Start
pip install robovai-rbac
Usage Example:
from robovai_rbac import RBACManager, require_permission
rbac = RBACManager(secret_key="your-jwt-secret")
# Register roles and permissions
rbac.add_role("admin", permissions=["users:read", "users:write", "analytics:view"])
rbac.add_role("viewer", permissions=["users:read"])
# Check permission
has_access = rbac.check_permission(role="viewer", permission="users:write")
print(f"Can viewer write? {has_access}") # False
👤 Author
Mohamed Shaban (محمد شعبان العتماني) — Applied AI Engineer
🌐 Website: msalatmani.org | 📧 Email: msalatmani@gmail.com
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
robovai_rbac-0.1.0.tar.gz
(3.0 kB
view details)
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 robovai_rbac-0.1.0.tar.gz.
File metadata
- Download URL: robovai_rbac-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2b5fe1581dd5a8af8610d57d74364dbae41e861191d2017df88ce5b3ac84943
|
|
| MD5 |
0fc126cc47115771c8a749dbf46a6482
|
|
| BLAKE2b-256 |
f236e758158f1531ef015ec23826b49e2c0f3ae366aaec3a524e0baaea26f4a1
|
File details
Details for the file robovai_rbac-0.1.0-py3-none-any.whl.
File metadata
- Download URL: robovai_rbac-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
260c79c5a723e994094f310de9b2d812453abdaadf84ff08696aedcd9673f850
|
|
| MD5 |
c2b1f819d92a314ffe72df0cf6275024
|
|
| BLAKE2b-256 |
0720aaf5000485e0383018db27a303b7cf9b9697d266e789afcc9e5879351fdf
|