Skip to main content

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

Release files for id-roles 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for id-roles 0.0.6
File Size Uploaded
id-roles-0.0.6.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for id-roles 0.0.6
File Interpreter ABI Platform
id_roles-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / id-roles-0.0.6.tar.gz

Download URL id-roles-0.0.6.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
86722d8a4682a69a942d5ea85b3e262dede2071a8150a9acb751c3336c6ff4e8
BLAKE2b-256 checksum
How to use checksums
c52b71b355492f9c208f929a9410b8bcf8da2210efea700345be3ca0c7240d37
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / id_roles-0.0.6-py3-none-any.whl

Download URL id_roles-0.0.6-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1d891eda999c646dce1de00e959b81aa774b41bea0d584e39d03de3dcb9486d
BLAKE2b-256 checksum
How to use checksums
c66061b64cf10f1c7426114c70875095971829147354a6c3cd86a6c9271069a7
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page