dfunckt/django-rules
Awesome Django authorization, without the database observed · 2026-08-28
Health v2 · maintenance only
44/100
- Activity 46
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4563
- days_rel: n/a
- days_push: 326
- n_releases_24m: 0
Adoption not part of the score
1977 stars · 152 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Python library providing object-level permissions for Django without requiring a database, built on a generic rule-based predicate framework. It integrates with Django views, templates, the Admin, and Django Rest Framework, and can also be used standalone.
Use cases
- add object-level permissions to a django app without database-backed permission tables
- define reusable authorization predicates as composable callables
- check per-object permissions in django templates and admin
- enforce object-level permissions in django rest framework
- build a standalone rule-based decision system in python
When to choose
- you need per-object authorization logic in Django without storing permissions in the database
- you want composable, testable predicates instead of ad-hoc permission checks
- you need permissions usable across views, templates, admin, and DRF consistently
When to avoid
- you need database-backed, user-editable permission assignments managed at runtime
- you are not using Django and only need simple role-based access control
- you need attribute-based encryption or policy engines like OPA
Facets
library · maturity stable
authorization middleware web-development backend security python django permissions predicates object-level-permissions rule-based no-database web-server
1 source
- readme: https://github.com/dfunckt/django-rules · fetched 2026-08-28 · 4bee99943ace
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dfunckt/django-rules | main | 44 |
For agents
markdown · JSON · MCP: product_card(name="dfunckt/django-rules")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem