Skip to main content

Parse and compare entitlements according to the AARC-G002 recommendation (https://aarc-project.eu/guidelines/aarc-g002)

Project description

Documentation Status

AARC G002 Entitlement Parser

Introduction

This package provides a python Class to parse and compare entitlements according to the AARC-G002 Recommendation https://aarc-project.eu/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.

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

aarc_g002_entitlement-0.3.0.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aarc_g002_entitlement-0.3.0-py2.py3-none-any.whl (7.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file aarc_g002_entitlement-0.3.0.tar.gz.

File metadata

  • Download URL: aarc_g002_entitlement-0.3.0.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.1.dev25+g35e40d9 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for aarc_g002_entitlement-0.3.0.tar.gz
Algorithm Hash digest
SHA256 74e92c1f4c149e4da02eed774e8900c25047f1f9b2745ef5ba0dc46dd27fd453
MD5 ca945cc3f605805436f3be24641b1516
BLAKE2b-256 b59582d59bec3098db3fff4c877e685199b63af4a08b61e737f9d022b7674af7

See more details on using hashes here.

File details

Details for the file aarc_g002_entitlement-0.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: aarc_g002_entitlement-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.1.dev25+g35e40d9 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for aarc_g002_entitlement-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 17bf892de4735c61ae7e281376ce4b72124fc10134854dee92d3efe2cb5bc7d5
MD5 c6172e019f800f31eeccf326cf789b3c
BLAKE2b-256 f6f06b3cd5fa4bf6fb1f095abd45183dfdad42eaf8321c3aa5bcd0c3346a7f20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page