Skip to main content


Logo

django-rbaca

Role-based Access Control with Attributes for distributed Django projects.

About The Project

Welcome to Role-Based Access Control with Attributes for distributed Django projects!

This project provides a secure and scalable solution for access control in Django applications. It extends the traditional role-based access control (RBAC) model with attributes to offer finer-grained control over resource access. The implementation is designed to allow decentralized nodes to have access to resources controlled by a central endpoint.

The project offers a Django app for easy integration into existing projects. It includes models for defining roles, attributes, access control policies, as well as an authorization backend for enforcing access control rules. The app also features an API for querying the access control system.

Key Features

  • Role-based access control: Users are assigned roles that define their access to resources.
  • Attribute-based access control: Attributes are assigned to resources and users for finer-grained control over access.
  • Access control API for external nodes: Centralized access control interface for decentralized nodes.
  • Easy integration: The Django app is designed for seamless integration into existing projects.

Installation

Requires Python 3.11 or newer and Django >=4.2,<6.2. Django 6.0 and 6.1 require Python 3.12 or newer; Django 6.1 is tested with Python 3.12 through 3.14. Python 3.11 uses Django 4.2 through 5.2.

Using pip (from PyPI):

pip install django-rbaca

Using poetry (local development):

  1. Clone the repository:
git clone https://github.com/MickaelCormier/django-rbaca
  1. Navigate to the project directory:
cd django-rbaca
  1. Install dependencies:
poetry install

Documentation

For more detailed information, including prerequisites, configuration, and usage examples, please refer to the documentation.

Citation

If you find this project useful in your research, please consider cite:

@misc{django-rbaca,
    title={django-rbaca: Roll-based Access Control with Attributes for distributed Django projects.},
    author={Bruch, Steven and Cormier, Mickael},
    howpublished = {\url{https://github.com/MickaelCormier/django-rbaca/}},
    year={2024}
}

(back to top)

Metadata

Release files for django-rbaca 1.2.6

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

Source distribution (sdist)

Source distribution for django-rbaca 1.2.6
File Size Uploaded Provenance Actions
django_rbaca-1.2.6.tar.gz 19.9 kB With provenance Details for django_rbaca-1.2.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-rbaca 1.2.6
File Interpreter ABI Platform Actions
django_rbaca-1.2.6-py3-none-any.whl Python 3 none any Details for django_rbaca-1.2.6-py3-none-any.whl

Total release size: 45.3 kB

Release files / django_rbaca-1.2.6.tar.gz

Download URL django_rbaca-1.2.6.tar.gz
Size 19.9 kB
Tags Source
SHA-256 checksum
How to use checksums
52eff27584a57e0c488d148034a779ef47f7459440f8fbab26590e8e9d119fa3
BLAKE2b-256 checksum
How to use checksums
f2163b2f37ef4e39530d17e340ffcaaddec910b0d796de7ebaf747efe70c1a36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / django_rbaca-1.2.6-py3-none-any.whl

Download URL django_rbaca-1.2.6-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
33dcfd4362ac759eab62464168b880b8ef5e11ad5fa60fceaf85bd984fcafd79
BLAKE2b-256 checksum
How to use checksums
8f33456c89b0cadd12c5a23f4624c57fbe5dd7187c3e9d01ae852dc331498ae2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for django-rbaca 1.2.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_rbaca-1.2.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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