semvec/pypi-packages huggingface dataset:
fastapi-role 0.1.0.dev1
Role-Based Access Control (RBAC) library for FastAPI applications, powered by Casbin.
License: MIT
Requires Python: >=3.9
Keywords: authorization, casbin, fastapi, rbac, role-based-access-control, security

# fastapi-role (Core Library)

**fastapi-role** is a flexible, pluggable Role-Based Access Control library for FastAPI applications, powered by [Casbin](https://casbin.org/).

## Features

*   **🔒 Decorator-based Security**: Secure endpoints with `@require`.
*   **🛠️ Framework Agnostic**: Works with *any* User model via Protocol.
*   **🧩 Pluggable Architecture**: Customize Policy Storage, Role Extraction, etc.
*   **🔄 Sync & Async Support**: Full SQLAlchemy support.
*   **📦 Zero-Config Defaults**: Works out of the box.

## Installation

```bash
pip install fastapi-role
```

## Documentation

Full documentation is available in the [GitHub Repository](https://github.com/alaamer12/fastapi-role).

## Usage

See the [Quick Start](https://github.com/alaamer12/fastapi-role#quick-start) guide on the main repository.

## License

MIT License