Adjutant API Client Library
Project description
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')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for python-adjutantclient-0.11.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a35d8e02fe8736b92f37c8dc47dac1dd3c56bbe90107d2028e3c15016c91dad4 |
|
MD5 | a5fe4be8a56a00ffa81214f66f32056d |
|
BLAKE2b-256 | 1c4388e9944df7bab8449edd0b729e7f51b1bff796c6cc73c09ccbda43fd7a43 |
Close
Hashes for python_adjutantclient-0.11.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 564dd02622dcaead2d0e4012fe78a0c5fb6ab3cc9b0334ffcce6045294f945b7 |
|
MD5 | 3da9152bd127d459d0adb8dcd2d7bba4 |
|
BLAKE2b-256 | 4867aeab5b83cfecbe5586723b29e52e37879508dbce616ba1d297aac4828d15 |