Ross ROSS = Recommend OSS · open-source software intelligence for agents

apache/casbin-pycasbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Python observed · 2026-08-28

github.com/apache/casbin-pycasbin · homepage · Python · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

87/100

  • Activity 97
  • Release rhythm 68
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 8
  • age_days: 2904
  • days_rel: 212
  • days_push: 20
  • n_releases_24m: 24

Full methodology

Adoption not part of the score

1764 stars · 218 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

PyCasbin is the Python implementation of Apache Casbin, an authorization library that enforces access control via configurable models such as ACL, RBAC, and ABAC. Policies can be stored in files or databases through adapters, and the enforcer API evaluates requests against the model and policy.

Use cases

  • enforce role-based access control in a Python web app
  • implement ABAC permission checks based on user attributes
  • store authorization policies in MySQL or PostgreSQL
  • manage role hierarchies and permissions in a Django or Flask application
  • switch access control models without rewriting application code
  • add multi-tenant authorization with filtered policy loading

When to choose

  • you need flexible, model-driven authorization (ACL/RBAC/ABAC) in Python
  • you want policies persisted in a database via adapters
  • you need cross-language consistent authorization semantics

When to avoid

  • you only need simple hardcoded role checks with no policy files
  • you need authentication (login/identity) rather than authorization
  • your stack is not Python - use the Casbin implementation for your language

Facets

library · maturity stable

authorization auth middleware security backend web-development developer-tools python cross-platform rbac abac acl access-control casbin policy-enforcement

10 sources

Member repositories

RepositoryRoleHealth v2
apache/casbin-pycasbinmain87

For agents

markdown · JSON · MCP: product_card(name="apache/casbin-pycasbin")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem