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 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)"

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

openstack_config-1.0.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file openstack_config-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for openstack_config-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 791ffffadc90b73b7a36409289ed8df42e36fa76d55fa70bc29e8c9151e8c626
MD5 3e24461eedb441e223343fc99b0a4e2b
BLAKE2b-256 7d460d51a42e5b34c27d30de5ef895eff1f29edead5abd0a2bf9e8245bf3aa34

See more details on using hashes here.

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