DjangoRESTFramework Role Manager
drf_role is a small, simple and lightweight role manager who can manage READ/WRITE & NoAccess permissions for each role. It basically work with DRF internal system like permission class, object level permission, etc.
Detailed documentation is in the “docs” directory.
Quick start
Add “polls” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'drf_role', ]Include the polls URLconf in your project urls.py like this:
url(r'^api/<YOUR VERSION NUMBER>/drf-role/', include('drf_role.urls')),Run python manage.py migrate to create the drf_role models.
- Start the development server and visit,
http://127.0.0.1:8000/api/v1/roles/ http://127.0.0.1:8000/api/v1/permissions/ http://127.0.0.1:8000/api/v1/accesses/ http://127.0.0.1:8000/api/v1/all-urls/
Please look up on docs for details…
Metadata
Release files for drf-role 1.0.0
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 | Actions |
|---|---|---|---|---|
| drf-role-1.0.0.tar.gz | 7.6 kB | Without provenance | Details for drf-role-1.0.0.tar.gz |
Release files / drf-role-1.0.0.tar.gz
| Download URL | drf-role-1.0.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea633e3c813d4c1d65b7b75db01c34e2f23da717aae51ba0604639588579e93a
|
|
BLAKE2b-256 checksum How to use checksums |
7902362e6c68882aba0219aa54db26d5e46e107b3923673c8cd7006eef3300ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|
Security for drf-role 1.0.0
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.