Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_adjutantclient-1.3.0.tar.gz (26.5 kB view details)

Uploaded Source

Built Distribution

python_adjutantclient-1.3.0-py3-none-any.whl (40.3 kB view details)

Uploaded Python 3

File details

Details for the file python_adjutantclient-1.3.0.tar.gz.

File metadata

  • Download URL: python_adjutantclient-1.3.0.tar.gz
  • Upload date:
  • Size: 26.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for python_adjutantclient-1.3.0.tar.gz
Algorithm Hash digest
SHA256 5b212c666e7c1541695366f871cb8ecfe826209c08707e9a7bccef7d2a143dcf
MD5 134d911c2366d07b9e1d8c9f2d930597
BLAKE2b-256 debe62ef9fea18a381cb7f1da422e40343bec1a728f9155c61a12eedb6ef85a1

See more details on using hashes here.

File details

Details for the file python_adjutantclient-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_adjutantclient-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70b73e0198c9458eb4db1180a32452de66f1f18777ba8cc1883fbcdccc175884
MD5 91f4bd8d5443bdcac51ef1f3c0058a6d
BLAKE2b-256 48285e3e300154b9b38fbe5b400ca12af8e02c6d08539a0ea18ad497a9f1898c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page