Fix Inventory Python client library
Project description
fixinventoryclient-python
Python client for Fix Inventory
Installation
pip install fixinventoryclient
For GraphVis and Pandas support:
pip install fixinventoryclient[extras]
Usage
from fixclient import FixInventoryClient
client = FixInventoryClient(url="https://localhost:8900", psk="changeme")
instances_csv = client.cli_execute("search is(instance) | tail 5 | list --csv")
for instance in instances_csv:
print(instance)
Pandas Dataframes
df = client.dataframe("is(instance)")
GraphViz Digraph
graph = client.graphviz("is(graph_root) -->")
Test
The tests expect a FixCore on localhost with the default PSK changeme
.
You can start it locally via:
$> fixcore --graphdb-database fixclient_test --psk changeme
A local test environment is required. See the contribution guide for instructions. When the virtual environment is available, use those commands to set up the project and run the tests:
$> pip install --upgrade pip poetry nox nox-poetry
$> nox
For more examples see the examples directory.
Publish
- bump the version number in pyproject.toml
poetry build
poetry publish
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
fixinventoryclient-2.0.0.tar.gz
(21.2 kB
view hashes)
Built Distribution
Close
Hashes for fixinventoryclient-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8ee73e0e77ce464dfe1b1328c4b10bf07d3ed6a03c21595961d3472cb64ffed |
|
MD5 | 6eb2c83babd980e55ae42aa05319908e |
|
BLAKE2b-256 | 7c2b4a5ba0a4e3c92da7ebd809a39bded2799303a1b7eb46bebbdda7b11650dd |