django-minosse¶
django-minosse is a lightweight library for role-based access control (RBAC) in Django projects.
It lets you define roles as Python classes, sync them to Django's built-in Group model, and protect
views with decorators or mixins — all without a dedicated database table for roles.
Features¶
- Define roles as Python classes with declarative permission sets
- Sync roles and permissions to Django's
Group/Permissionmodels - Protect function-based views with the
@role_requiredand@permission_requireddecorators - Protect class-based views with
RoleRequiredMixinandPermissionRequiredMixin - Check roles and permissions in templates with the
|canand|isfilters - Register roles centrally via
RoleRegistryfor bulk sync (e.g. from a management command)