AARC G002 Entitlement Parser
Deprecation warning
The newer AarcEntitlement supports AARC-G002 and the updated version AARC-G069.
Introduction
This package provides a python Class to parse and compare entitlements according to the AARC-G002 Recommendation https://aarc-community.org/guidelines/aarc-g002.
Example
from aarc_g002_entitlement import Aarc_g002_entitlement
required = Aarc_g002_entitlement(
'urn:geant:h-df.de:group:aai-admin',
strict=False)
actual = Aarc_g002_entitlement(
'urn:geant:h-df.de:group:aai-admin:role=member#backupserver.used.for.developmt.de')
# is a user with actual permitted to use a resource which needs required?
permitted = required.is_contained_in(actual) # True in this case
# are the two entitlements the same?
equals = required == actual # False in this case
For more examples: ./example.py
Installation
pip --user install aarc-g002-entitlement
Documentation
tox -e docs
After this, the documentation should be located at doc/build/index.html.
Documentation is also available at Readthedocs
Tests
Run tests for all supported python versions
tox
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.
Metadata
Release files for aarc-g002-entitlement 0.3.2
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 |
|---|---|---|---|---|
| aarc_g002_entitlement-0.3.2.tar.gz | 21.7 kB | Without provenance | Details for aarc_g002_entitlement-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aarc_g002_entitlement-0.3.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for aarc_g002_entitlement-0.3.2-py2.py3-none-any.whl |
Total release size: 29.2 kB
Release files / aarc_g002_entitlement-0.3.2.tar.gz
| Download URL | aarc_g002_entitlement-0.3.2.tar.gz |
|---|---|
| Size | 21.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
901147b71386eae0ac0aa60d0b7d5919c0219bc8a39f6d1aa5207ada276b6cad
|
|
BLAKE2b-256 checksum How to use checksums |
78d74c3ef672e269795ee2dda44d209d918441a917ca6e5ca010eb95c0fc63b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.9
|
Release files / aarc_g002_entitlement-0.3.2-py2.py3-none-any.whl
| Download URL | aarc_g002_entitlement-0.3.2-py2.py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bcc3ce0a4b670973f1d27ff6e3cd9e4ccb1ff910af61ea7b52f8062a9bbf5e8a
|
|
BLAKE2b-256 checksum How to use checksums |
85d012eff7fb9e75405ec0451f9c1de26a91f9807df74976aeda14da76ebcf15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.9
|
Security for aarc-g002-entitlement 0.3.2
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.