A tool to filter OpenStack flavors based on resource criteria
Project description
os-flavor-selector - A tool to filter OpenStack flavors based on resource criteria
About
os-flavor-selector is a command-line and interactive tool to filter and explore OpenStack flavors.
When there are many flavors available, it is sometimes difficult to find the correct one
that fills our requirements. This tool makes it easy to filter, sort, and display flavors.
Example
$ os-flavor-selector --help
usage: os-flavor-selector [-h] [-d] [--os-cloud OS_CLOUD] [--output {interactive,text,json}]
[--visibility {all,public,private}] [--memory-min MEMORY_MIN]
[--memory-max MEMORY_MAX] [--vcpus-min VCPUS_MIN] [--vcpus-max VCPUS_MAX]
[--extra-spec KEY=VALUE] [--name NAME]
A tool to filter OpenStack flavors based on resource criteria
options:
-h, --help show this help message and exit
-d, --debug debug flag
--os-cloud OS_CLOUD Name of the cloud to load from clouds.yaml. (Default 'envvars', which uses
OS_* env vars)
--output {interactive,text,json}
Output format (default: interactive)
--visibility {all,public,private}
Filter by flavor visibility (default: all)
--memory-min MEMORY_MIN
Minimum Amount of Memory
--memory-max MEMORY_MAX
Maximum Amount of Memory
--vcpus-min VCPUS_MIN
Minimum Amount of VCPUs
--vcpus-max VCPUS_MAX
Maximum Amount of VCPUs
--extra-spec KEY=VALUE
Filter by extra_specs (can be used multiple times). Example: --extra-spec
hw:cpu_policy=dedicated --extra-spec trait:HW_CPU_X86_AVX2=required
--name NAME Filter by name using a regular expression (case-insensitive)
Example of use:
os-flavor-selector
os-flavor-selector --vcpus-min 4
os-flavor-selector --vcpus-min 4 --vcpus-max 8
os-flavor-selector --vcpus-min 4 --vcpus-max 8 --output json
Installation
$ pip install os-flavor-selector
Or clone the repo and install from source.
$ pip install .
Development mode
$ pip install -e .
or using pipx:
$ pipx install -e .
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file os_flavor_selector-0.0.3.tar.gz.
File metadata
- Download URL: os_flavor_selector-0.0.3.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21604d55843a6695a39bc8b8e4bc05c3bb50a8725d55c17227e07c75e345ea1b
|
|
| MD5 |
c561842a2c3bca87b1e9100ce015bc4d
|
|
| BLAKE2b-256 |
72d604fdd6294cb4c118f304ff6521021c9d46242f81f75cd285fda75c8a2d1a
|
File details
Details for the file os_flavor_selector-0.0.3-py3-none-any.whl.
File metadata
- Download URL: os_flavor_selector-0.0.3-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8c99ca815b0ae94c1ff04a19b99bd994c2addf7d2622637011066b61cb12971
|
|
| MD5 |
a71b70574d733cf6ee62c56e3cb1d5e7
|
|
| BLAKE2b-256 |
cae0c449b8f1b5970e7ad01c0de9e754f97a3d09e74ef66f8976c5278ce3bd1b
|