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
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 openstack_config-1.0.1.dev3.tar.gz
.
File metadata
- Download URL: openstack_config-1.0.1.dev3.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f0ad4f446aead31db3753157075306f15a396736616e545536e60215fa2a324 |
|
MD5 | ca45ce3d2ea0518edf2e5abe34b9dcd3 |
|
BLAKE2b-256 | ef1c71ad8a25dc5f64a76e2963b5111e6f062b71f8d7bf105dd5f02c7bdfe905 |
File details
Details for the file openstack_config-1.0.1.dev3-py3-none-any.whl
.
File metadata
- Download URL: openstack_config-1.0.1.dev3-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7108e5983f3f5a0dd221d09e7ae091c3a6f04c6f992946bc7d120da89f7510bd |
|
MD5 | 566083e8520397987878c395605e48ea |
|
BLAKE2b-256 | 6cf0ebdd7f5b4fe2c1a0f503f008c8ce366d0a1d23ca3a2fa35082ba42372499 |