Inventory Explorer
Inventory Explorer helps you efficiently explore the hosts, groups and variables in an Ansible inventory.
Features:
- Fuzzy search hosts and groups (using fzf)
- Quickly see what groups a host is in
- Quickly see what hosts are in a group
- Quickly jump between related hosts and groups
- Display and fuzzy search YAML group and host data
- Quickly edit host or group variables
- See fully evaluated variables (e.g. with all template substitutions applied)
Warning: Experimental
This project is currently in an experimental/exploratory phase to try and understand how an Inventory exploring tool might function and be used. It may change radically or become abandoned depending on feedback.
Installation
Install from PyPI using pip:
$ pip install inventory-explorer
Usage
$ inventory-explorer
Or
$ inventory-explorer -i path/to/inventory
Follow the prompts! Press ctrl+C to exit, or return to earlier parts of the UI. You may need to press this multiple times to exit.
Inventory aliases
In some cases it can be helpful to define short-forms for the full path(s) to a given inventory which you frequently use.
On startup, inventory-explorer tries to read the file
inventory-explorer-aliases.yml from the working directory. This should be a
YAML file with values in one of the three forms demonstrated below:
simple: path/to/some/simple/inventory.py
several:
- paths/to/one/inventory.py
- paths/to/another/inventory.ini
vars_too:
inventory_files:
- path/to/an/inventory.yml
extra_vars:
- foo=bar
- @path/to/vars.yml
--inventory simple becomes a shorthand for --inventory path/to/some/simple/inventory.py.
--inventory several becomes a shorthand for --inventory paths/to/one/inventory.py --inventory paths/to/another/inventory.ini.
--inventory vars_too becomes a shorthand for --inventory path/to/an/inventory.py --extra-vars foo=bar --extra-vars @path/to/vars.yml.
As with the --extra-vars argument, inventory-explorer extends the Ansible
syntax for extra variables by supporting shell-style glob patterns in
filenames.
Development
You can run the test suite using:
$ pip install -r requirements-test.txt
$ pytest
Metadata
Release files for inventory-explorer 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| inventory_explorer-0.0.1.tar.gz | 25.6 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| inventory_explorer-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 47.8 kB
Release files / inventory_explorer-0.0.1.tar.gz
| Download URL | inventory_explorer-0.0.1.tar.gz |
|---|---|
| Size | 25.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d1d4b36da58f6a77b5f3b4dbb0adc477a403117c8dc605c9056ccde1c5907a8
|
|
BLAKE2b-256 checksum How to use checksums |
54359cd6d0308b8296c599cef2b19c44d14a6432bdeffa61798e98bcd964d439
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2025.
Transparency logRelease files / inventory_explorer-0.0.1-py3-none-any.whl
| Download URL | inventory_explorer-0.0.1-py3-none-any.whl |
|---|---|
| Size | 22.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c1083565ade8166a2460c6e68bec7d9de9eb0e50e30d169a0a783bf902c063c
|
|
BLAKE2b-256 checksum How to use checksums |
0e925592a2cbefbe13e83a897465a7c90031abc91f643002028d6189e56a80db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2025.
Transparency logSecurity for inventory-explorer 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for inventory_explorer-0.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.