Id-manager roles package
Project description
id-roles
Id-manager roles library
Simple library for managing access roles. Inspired bij OAUTH scopes.
Installation
pip install id-roles
Role structure
Roles can be described as keys with optional values using a single string.
Multiple roles are seperated by spaces and may contain an optional values string [value1,value2]
. Values are separated by. ,
roles_str = "connect admin order[*] customer[read,update]"
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.
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.5.tar.gz
(2.6 kB
view hashes)