Client library for Adjutant API
Go to file
Arundhati Surpur 5d1caeb37f Replace six.iteritems() with .items()
1.As mentioned in [1], we should avoid using
six.iteritems to achieve iterators.
We can use dict.items instead, as it will return
iterators in PY3 as well. And dict.items/keys will more readable.
2.In py2, the performance about list should be negligible, see the link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: I9cf36db9e18d02238ebbfa6962f0ac76d694a43a
2020-04-29 08:13:42 +00:00
adjutantclient Replace six.iteritems() with .items() 2020-04-29 08:13:42 +00:00
.gitignore Add tox.ini 2017-09-27 17:25:23 +13:00
.gitreview OpenDev Migration Patch 2019-04-19 19:40:43 +00:00
.testr.conf Add tox.ini 2017-09-27 17:25:23 +13:00
LICENSE Initial version of python-stacktaskclient 2015-09-17 16:42:34 +01:00
MANIFEST.in Renamed to Adjutant and cull legacy code 2017-05-25 21:32:41 +12:00
README.rst Switch Adjutant service type to Admin-Logic 2020-02-20 11:46:59 +13:00
requirements.txt Renamed to Adjutant and cull legacy code 2017-05-25 21:32:41 +12:00
setup.cfg [ussuri][goal] drop python 2.7 support 2020-04-25 19:50:42 -05:00
setup.py Fix keystoneclient exceptions import. Bump package versions in requirements 2016-08-08 17:29:10 +01:00
test-requirements.txt Add tox.ini 2017-09-27 17:25:23 +13:00
tox.ini Change to releases.openstack.org 2020-04-29 07:53:51 +00:00

README.rst

AdjutantClient is a command-line and python client for Adjutant.

Getting Started

Adjutant Client can be installed from PyPI using pip:

pip install python-openstackclient python-adjutantclient

The command line client is installed as a plugin for the OpenStack client.

Python API

You can use the API with a keystone session:

>>> from keystoneauth1 import session >>> from keystoneauth1.identity import v3 >>> from adjutantclient.client import Client >>> auth = v3.Password(auth_url='http://keystone.host/v3', username='user', password='password', project_name='demo', user_domain_name='default', project_domain_name='default')

>>> sess = session.Session(auth=auth) >>> adjutant = Client('1', session=sess)

If you use a clouds.yaml file os_client_config can also be used:

>>> import os_client_config >>> sess = os_client_config.make_rest_client('admin-logic') >>> adjutant = Client('1', session=sess)

A few of the endpoints (users.password_forgot(), token.submit(), signup, token.get()) don't require authentication. In this case you can instead just pass an endpoint override to the adjutant client constructor.

>>> from adjutantclient.client import Client >>> adjutant = Client('1', endpoint='http://adjutant.host/v1')