Python client for cyborg API
Project description
python-cyborgclient
python-cyborgclient is a python bindings to the OpenStack Cyborg API. There’s a Python API (the cyborgclient module), and a command-line script (cyborg). Each implements 100% of the OpenStack Cyborg API.
See the OpenStack CLI Reference for information on how to use the cyborg command-line tool. You may also want to look at the OpenStack API documentation.
The project is hosted on Launchpad, where bugs can be filed. The code is hosted on OpenStack. Patches must be submitted using Gerrit.
This code is a fork of Jacobian’s python-cloudservers. If you need API support for the Rackspace API solely or the BSD license, you should use that repository. python-cyborgclient is licensed under the Apache License like the rest of OpenStack.
License: Apache License, Version 2.0
PyPi - package installation
Blueprints - feature specifications
Bugs - issue tracking
Command-line API
Installing this package gets you a shell command, cyborg, that you can use to interact with any Rackspace compatible API (including OpenStack).
You’ll need to provide your OpenStack username and password. You can do this with the --os-username, --os-password and --os-tenant-name params, but it’s easier to just set them as environment variables:
export OS_USERNAME=openstack export OS_PASSWORD=yadayada export OS_TENANT_NAME=myproject
You will also need to define the authentication url with --os-auth-url and the version of the API with --os-accelerator-api-version. Or set them as environment variables as well, OS_ACCELERATOR_API_VERSION=1. If you are using Keystone, you need to set the OS_AUTH_URL to the keystone endpoint:
export OS_AUTH_URL=http://controller:5000/v3 export OS_ACCELERATOR_API_VERSION=1
Since Keystone can return multiple regions in the Service Catalog, you can specify the one you want with --os-region-name (or export OS_REGION_NAME). It defaults to the first in the list returned.
You’ll find complete documentation on the shell by running cyborg help
Python API
There’s also a complete Python API, but it has not yet been documented.
Quick-start using keystone:
# pass auth plugin and session to Client init. # service_parameters contains servive_name, service_type, interface and # region name. >>> from cyborgclient.v1 import client >>> nt = client.Client(auth=auth,session=_SESSION,**service_parameters) >>> nt.accelerators.list() [...]
See release notes and more at https://docs.openstack.org/python-cyborgclient/latest/.
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
File details
Details for the file python-cyborgclient-2.4.0.tar.gz
.
File metadata
- Download URL: python-cyborgclient-2.4.0.tar.gz
- Upload date:
- Size: 71.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc9c1f4b91ff5a043bd6370799036dd1b9707087bc50eda6ec76f0088b929530 |
|
MD5 | 58e64737bd2aa7c2dcf77ec29151d9e5 |
|
BLAKE2b-256 | f39443af62df1f8986043e99d456713b0d20b93d97b47ffcb3b4ae082bfbea37 |
File details
Details for the file python_cyborgclient-2.4.0-py3-none-any.whl
.
File metadata
- Download URL: python_cyborgclient-2.4.0-py3-none-any.whl
- Upload date:
- Size: 93.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8cd246bac9b6d696d6d26ab08dc6c96b5dab84370d5b2f6d663037d0d985bba |
|
MD5 | 034841962248fa552ada6c0f3da10727 |
|
BLAKE2b-256 | bfd2b9ff930a9081f621d1930270853a434d5552c6b28783cefad1dd23ba29d4 |