Class to compare and parse entitlements according to the
Project description
AARC G002 Entitlement Parser
Introduction
As part of the AARC Project several recommendations were made. G002 https://aarc-project.eu/guidelines/aarc-g002 describes encoding group membersip in entitlements.
This package provides a python Class to parse and compare such entitlements.
Example
required_group= 'urn:geant:h-df.de:group:aai-admin#unity.helmholtz-data-federation.de'
actual_group = 'urn:geant:h-df.de:group:aai-admin:role=member#backupserver.used.for.developmt.de'
required_entitlement = Aarc_g002_entitlement(required_group)
actual_entitlement = Aarc_g002_entitlement(actual_group)
print('\n3: Role assigned but not required')
print(' is_contained_in: => {}'.format(required_entitlement.is_contained_in(actual_entitlement)))
print(' (are equal: => {})'.format(required_entitlement == actual_entitlement))
Funding Notice
The AARC project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 653965 and 730941.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aarc_g002_entitlement-0.0.1.tar.gz
(147.5 kB
view hashes)
Built Distribution
Close
Hashes for aarc_g002_entitlement-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aac6288094411806e988665daf62fcd51fadd619142d14627d9943e48022d93f |
|
MD5 | 94b2639297253c179e6a154f094b3cf6 |
|
BLAKE2b-256 | 4fc51f2fbb1b250f9220940c814512ae946be251f074e3f17250167f19b3bffe |
Close
Hashes for aarc_g002_entitlement-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 529d6958db855d931629aa912493ab56905ccd23ea779ac14747c86767f766d0 |
|
MD5 | 5ca92a8d0afd57aa634c05859908ccb3 |
|
BLAKE2b-256 | fdb89ac84f04a2e412950d5d1e7105896752dc884fb45fbed2a9317f6db8ad41 |