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
Metadata
Release files for maykin-auth-matrix 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| maykin_auth_matrix-0.1.1.tar.gz | 10.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| maykin_auth_matrix-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.2 kB
Release files / maykin_auth_matrix-0.1.1.tar.gz
| Download URL | maykin_auth_matrix-0.1.1.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
397d16eace556bf12fc16d86f3499a4df8e36b6680557eebb5fb1acb4e816b70
|
|
BLAKE2b-256 checksum How to use checksums |
5e3a1a4f46af9d89760f0f5c3384ab046f203d0883122176325c676cf3b4388a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / maykin_auth_matrix-0.1.1-py3-none-any.whl
| Download URL | maykin_auth_matrix-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ddf4046b0d7c35b70237df4631ad0e9e8ff240d71b6cf0a1fdf93ef3d7a028e4
|
|
BLAKE2b-256 checksum How to use checksums |
ca6863bde3e9eaa80f6312b5561dd5b7dd97b7a64de5182611d94c414f049ce7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Security for maykin-auth-matrix 0.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.