Id-manager roles package
Project description
id-roles
Id-manager roles library
Simple library for managing access roles. Inspired bij OAUTH2 scopes.
Installation
pip install id-roles
Role structure
Access roles can be described as keys with optional values using a single string.
roles_str = "connect admin order[*] customer[read,update]"
- Multiple roles are seperated by spaces and may contain an optional values string
[value1,value2]. - Values are separated by.
, - Role names may only contain alphanumeric characters and
-,_or:. - Role value may only contain alphanumeric characters and
-,_or.. [*]is a special value string that indicated that all values are valid.- Role names and values are case sensitive
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
id-roles-0.0.6.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file id-roles-0.0.6.tar.gz.
File metadata
- Download URL: id-roles-0.0.6.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86722d8a4682a69a942d5ea85b3e262dede2071a8150a9acb751c3336c6ff4e8
|
|
| MD5 |
bc26c8d630a7319b8420e59b66901904
|
|
| BLAKE2b-256 |
c52b71b355492f9c208f929a9410b8bcf8da2210efea700345be3ca0c7240d37
|
File details
Details for the file id_roles-0.0.6-py3-none-any.whl.
File metadata
- Download URL: id_roles-0.0.6-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1d891eda999c646dce1de00e959b81aa774b41bea0d584e39d03de3dcb9486d
|
|
| MD5 |
9e6b816e1ff824c632aaeba8af48b888
|
|
| BLAKE2b-256 |
c66061b64cf10f1c7426114c70875095971829147354a6c3cd86a6c9271069a7
|