TODO
Project description
1 Welcome to maykin-auth-matrix’s documentation!
- Version:
0.1.0
- Source:
- Keywords:
<keywords>
- PythonVersion:
3.10
DigiD Compliant Authorization Matrix for the administation of Django projects.
2 Features
Display a matrix of permissions for the groups
Display a matrix of groups for the users
Allows to export the matrix in different formats
3 Installation
3.1 Requirements
Python 3.10 or above
Django 4.2 or newer
3.2 Install
pip install maykin-auth-matrix
4 Usage
Add the URL to your Django project’s urls.py:
from django.contrib import admin
from django.urls import path, include
from auth_matrix.views import AuthMatrixView
urlpatterns = [
path(
"admin/authorization/",
include("auth_matrix.admin_urls"),
),
]
# Display the Authorization Matrix
Navigate to the Groups admin page and click on the “Authorization Matrix” link to view the matrix.
# Export the Authorization Matrix
On the top right corner of the Groups admin page, you can choose to export the matrix to different formats.
Click the EXPORT button and chose the format you want to export the matrix to.
- You can pick between two resources:
UserGroupResource : exports the matrix with users as rows and groups as columns
GroupPermissionsResource : exports the matrix with permissions as rows and groups as columns
5 Local development
To install and develop the library locally, use:
.. code-block:: bash
pip install -e .[tests,coverage,docs,release]
When running management commands via django-admin, make sure to add the root directory to the python path (or use python -m django <command>):
export PYTHONPATH=. DJANGO_SETTINGS_MODULE=testapp.settings
django-admin check
# or other commands like:
# django-admin makemessages -l nl
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file maykin_auth_matrix-0.1.1.tar.gz
.
File metadata
- Download URL: maykin_auth_matrix-0.1.1.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 397d16eace556bf12fc16d86f3499a4df8e36b6680557eebb5fb1acb4e816b70 |
|
MD5 | ecbe3ef406187a635b559327ed709baf |
|
BLAKE2b-256 | 5e3a1a4f46af9d89760f0f5c3384ab046f203d0883122176325c676cf3b4388a |
File details
Details for the file maykin_auth_matrix-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: maykin_auth_matrix-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddf4046b0d7c35b70237df4631ad0e9e8ff240d71b6cf0a1fdf93ef3d7a028e4 |
|
MD5 | abe5cf8228784ea822d18f585b66e60b |
|
BLAKE2b-256 | ca6863bde3e9eaa80f6312b5561dd5b7dd97b7a64de5182611d94c414f049ce7 |