Skip to main content

This is a plugin for the openstack commandline client, to enable support for the Doni hardware inventory project

Project description

ChameleonCloud Python Doniclient CLI

ChameleonCloud Logo

Welcome to the ChameleonCloud Python Doniclient CLI repository! This command-line interface (CLI) provides a convenient way to interact with ChameleonCloud's Doni hardware inventory project, enabling you to manage and automate various hardware-related tasks.

Table of Contents

Installation

You can install the ChameleonCloud Python Doniclient CLI using pip:

pip install python-doniclient

Cython sources issue

if you encounter an error message citing cython sources, please run the following to downgrade cython to a compatible version and use PyYaml 6.0+ pip install "cython<3.0.0"

Authentication

Environment variables are the primary authentication method. Please refer to the documentation on OpenRC scripts to learn more about how to download and source your authentication credentials for the CLI;

Usage

To use the CLI, you can run the openstack hardware command followed by the desired subcommand. openstack hardware --help shows all the subcommands available. Here's a basic usage examples:

List all hardware in the Doni database.

openstack hardware list

Options:

  • --all: List hardware from all owners (requires admin rights).
  • --long: Include all columns in the output.
  • --worker-type <worker_type>: Filter by worker type.
  • --worker-state <worker_state>: Filter by worker state (choices: PENDING, IN_PROGRESS, ERROR, STEADY).

For more details on specific commands and their options use --help or -h

Create hardware in the Doni database

openstack hardware create --name <hardware_name> --hardware-type <hardware_type> --property <property_name>=<property_value>

List specific hardware item in Doni using name or uuid.

openstack hardware get <hardware_uuid>
openstack hardware get <hardware_name>

Set properties and name of an existing hardware item.

openstack hardware set <hardware_uuid> --name <new_hardware_name> --property <property_name>=<new_property_value>

Sets new name and property for the item <hardware_uuid>

openstack hardware set <hardware_name> --property <property_name>=<new_property_value>

Sets property for the item <hardware_name

Unset properties of an existing hardware item.

openstack hardware unset <hardware_uuid> --property <property_name>

Unsets property <property_name> for the item <hardware_uuid

openstack hardware update <hardware_name> --property <property_name>=<new_property_value>

Unsets property <property_name> for the item <hardware_name>

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_doniclient-1.0.4.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_doniclient-1.0.4-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file python_doniclient-1.0.4.tar.gz.

File metadata

  • Download URL: python_doniclient-1.0.4.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for python_doniclient-1.0.4.tar.gz
Algorithm Hash digest
SHA256 dcb4d900055bc6061f025d7285a61252bd19fc88faf0bde932cac040edc548f5
MD5 3598fbd6da00fc33da31087277eb9a9b
BLAKE2b-256 f73f3412b2dc63adbfbee235d2f6010616b03ac5b363c716857f26a3b54dd82a

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_doniclient-1.0.4.tar.gz:

Publisher: publish.yml on ChameleonCloud/python-doniclient

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file python_doniclient-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for python_doniclient-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3e32f879d5c77d94570b584a4da94e078366e3aae6c0a3a2831ac4548226986a
MD5 67017e0d9bb63fc9dec17d06c5c1f2d7
BLAKE2b-256 3744167d775c179bef4f9a547d4c47546bf01bc55913d0d514eaed8b43e8b9eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_doniclient-1.0.4-py3-none-any.whl:

Publisher: publish.yml on ChameleonCloud/python-doniclient

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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