Skip to main content

Openstack client extension that add kubectl-like config and context management

Project description

Openstack-Config

Allows editing the clouds.yaml easily via CLI and adds kubectl-like contexts.

Usage

# using uv, you can simply run
uvx --from python-openstackclient --with openstack-config --python=3.10 openstack config get-contexts
  • openstack config current-context - Display the current context
  • openstack config delete-context - Delete the specified context from the clouds.yaml
  • openstack config get-contexts - Describe one or many contexts
  • openstack config get-projects - List all projects that are currently accessible
  • openstack config rename-contexts - Rename a context from the clouds.yaml file
  • openstack config set - Set an individual value in a clouds.yaml file
  • openstack config unset - Unset an individual value in a clouds.yaml file
  • openstack config use-context - Set the current context for all operations (use none to reset)
  • openstack config use-project - Override the project in the current context within the clouds.yaml
  • openstack config view - Display merged clouds.yaml settings or a specified clouds.yaml file

Installation

PyPI

pip install openstack-config

Local build

git clone $REPO && cd $REPO
pip install -e .

# optional
eval "$(openstack complete)"

Deployment

export UV_PUBLISH_TOKEN="pypi-..."

# optional
# UV_PUBLISH_URL="https://test.pypi.org/legacy/"

bash publish.sh

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

openstack_config-1.0.1.dev3.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

openstack_config-1.0.1.dev3-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file openstack_config-1.0.1.dev3.tar.gz.

File metadata

File hashes

Hashes for openstack_config-1.0.1.dev3.tar.gz
Algorithm Hash digest
SHA256 7f0ad4f446aead31db3753157075306f15a396736616e545536e60215fa2a324
MD5 ca45ce3d2ea0518edf2e5abe34b9dcd3
BLAKE2b-256 ef1c71ad8a25dc5f64a76e2963b5111e6f062b71f8d7bf105dd5f02c7bdfe905

See more details on using hashes here.

File details

Details for the file openstack_config-1.0.1.dev3-py3-none-any.whl.

File metadata

File hashes

Hashes for openstack_config-1.0.1.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 7108e5983f3f5a0dd221d09e7ae091c3a6f04c6f992946bc7d120da89f7510bd
MD5 566083e8520397987878c395605e48ea
BLAKE2b-256 6cf0ebdd7f5b4fe2c1a0f503f008c8ce366d0a1d23ca3a2fa35082ba42372499

See more details on using hashes here.

Supported by

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