OpenDev Sysadmins c0f32f26b3 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:40:43 +00:00
2017-09-27 17:25:23 +13:00
2019-04-19 19:40:43 +00:00
2017-09-27 17:25:23 +13:00
2017-09-27 16:12:22 +13:00
2017-09-27 17:25:23 +13:00
2017-09-27 17:25:23 +13:00
2018-09-26 18:49:50 -04:00

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('registration') >>> 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')

Description
Client library for Adjutant API
Readme 537 KiB
Languages
Python 100%