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-0.10.0.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file python-adjutantclient-0.10.0.tar.gz.

File metadata

  • Download URL: python-adjutantclient-0.10.0.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.11

File hashes

Hashes for python-adjutantclient-0.10.0.tar.gz
Algorithm Hash digest
SHA256 f9df57d57e5ea746733792591e8af7f515b7d0567b422aa3bdf9a2b37af42296
MD5 f20a40652b3e350be4322906a3084209
BLAKE2b-256 2ba74a57a7ce29bb602788fb4e5619e69b55a283ba7bfa8893b9fa8ad7796cdb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_adjutantclient-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 40.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.11

File hashes

Hashes for python_adjutantclient-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6cda051d2e618c611f0b4e0d3d22af54b35e0a5426b278052e0a7964138a2284
MD5 0e674a931c0b3902e338ae4d6f6da0f5
BLAKE2b-256 d117933267b4cdd08f9911131cc9542b88a408ba79037dedb3eded8227bd30d0

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