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.2.1.tar.gz (20.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: aarc_g002_entitlement-0.2.1.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.3.1 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.6

File hashes

Hashes for aarc_g002_entitlement-0.2.1.tar.gz
Algorithm Hash digest
SHA256 eea8c699747072f66c41f5f1988f5a43fdc112a4cc990b63795b7c5065c15859
MD5 eb6196220baffc54f6739e662ced98de
BLAKE2b-256 4d21e3d455932299c3e291ae82a1b0fedf4322c7fdcbc04ab89d34c5c5585a7c

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