User and administration interaction with dCache
Python 3.4+
pip install dcacheclient
Otherwise, You can install directly from Github
pip install git+https://github.com/vingar/dcacheclient.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/vingar/dcacheclient.git
)
To enable completion:
eval "$(register-python-argcomplete dcache-admin)"
(cf. https://pypi.org/project/argcomplete/)
Then:
dcache-admin --help
>>> from dcacheclient.client import Client
>>> dcache = Client(url='https://srm.ndgf.org:3880')
>>> dcache.identity.get_user_attributes()
{'status': 'ANONYMOUS'}
>>> dcache.close()