Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

fastapi-role (Core Library)

fastapi-role is a flexible, pluggable Role-Based Access Control library for FastAPI applications, powered by Casbin.

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

pip install fastapi-role

Documentation

Full documentation is available in the GitHub Repository.

Usage

See the Quick Start guide on the main repository.

License

MIT License

Metadata

Release files for fastapi-role 0.1.0.dev1

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

Source distribution (sdist)

Source distribution for fastapi-role 0.1.0.dev1
File Size Uploaded
fastapi_role-0.1.0.dev1.tar.gz 39.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-role 0.1.0.dev1
File Interpreter ABI Platform
fastapi_role-0.1.0.dev1-py3-none-any.whl Python 3 none any Details

Total release size: 63.8 kB

Release files / fastapi_role-0.1.0.dev1.tar.gz

Download URL fastapi_role-0.1.0.dev1.tar.gz
Size 39.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9d9458117197d547202ee96043fdcb11ebc2ddfe0f6980dd0b9231480705f254
BLAKE2b-256 checksum
How to use checksums
f4affea681e4b70298f69f620be2add22cb625d097193d3c53b4f3369ad245e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / fastapi_role-0.1.0.dev1-py3-none-any.whl

Download URL fastapi_role-0.1.0.dev1-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94d466f34fcfdc7417cc7dc6c01c5914ba6874c2e224dc4472ddfa5e62f30e22
BLAKE2b-256 checksum
How to use checksums
3eefef3f64a4e2b8a4fd496b6a3a01b9966ca5c9e55849f056d89eeb8727f08f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0.dev1 This release

2 release files

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