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.7.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3025168f20bafa18f8b6b51f74c5aa1fa3969aaaff7272aa72ceba1be84f908b |
|
MD5 | ea45c1c198dafa160f5f213bed8644b1 |
|
BLAKE2b-256 | 637958b7030779a859acd81808049512282f7c73113a6980794953af0cab63ad |
Close
Hashes for python_adjutantclient-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efeb8346b0c10b3d94d96eafb46d618d7def27390a17cebc6e4de0bbe66bc67c |
|
MD5 | 7d9e006576a020565d76d72b6012efab |
|
BLAKE2b-256 | 87274d3a5de814ff3e57c733792bb857d2b35f05b0888c538fe991f1a3e3509e |