aarc-g002-entitlement-0.3.2
توضیحات
Parse and compare entitlements according to the AARC-G002 recommendation (https://aarc-community.org/guidelines/aarc-g002)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | aarc-g002-entitlement-0.3.2 |
| نام | aarc-g002-entitlement |
| نسخه کتابخانه | 0.3.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Marcus Hardt |
| ایمیل نویسنده | hardt@kit.edu |
| آدرس صفحه اصلی | https://github.com/kit-scc/aarc-g002-entitlement |
| آدرس اینترنتی | https://pypi.org/project/aarc-g002-entitlement/ |
| مجوز | MIT |
[](https://aarc-g002-entitlement.readthedocs.io/en/latest/?badge=latest)
# AARC G002 Entitlement Parser
## Deprecation warning
The newer [AarcEntitlement](https://github.com/KIT-SCC/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
```python
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](https://aarc-g002-entitlement.readthedocs.io/en/latest)
# 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.
نیازمندی
| مقدار | نام |
|---|---|
| - | regex |
نحوه نصب
نصب پکیج whl aarc-g002-entitlement-0.3.2:
pip install aarc-g002-entitlement-0.3.2.whl
نصب پکیج tar.gz aarc-g002-entitlement-0.3.2:
pip install aarc-g002-entitlement-0.3.2.tar.gz