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-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48115375d0b95a30d4adb634c611e063e2e047ee3ace2087545347c9f00604f2 |
|
MD5 | bf9cc547fea70992858ca3a83fe90e60 |
|
BLAKE2b-256 | fa020e29b19d382e8e6c1c59d76f8f5bb9de54f79bed37fa88e2d16a2abe8d57 |
Close
Hashes for python_adjutantclient-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4a6b17b818bfbacc08c1c0fb0390e2c008ee859b9634b3baf37e0837c55109c |
|
MD5 | 6516929b28ae2c843ad789dee0cb7d89 |
|
BLAKE2b-256 | c7ebb883b9d2d6b1fd8be35255f3358f92a5da4a4df67d76397de0fcf195ea6a |