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.1.tar.gz
(21.3 kB
view details)
Built Distribution
File details
Details for the file fixinventoryclient-2.0.1.tar.gz
.
File metadata
- Download URL: fixinventoryclient-2.0.1.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c954e25df4f4f30490e5eb6dbd5fb226b526bce6f9210f81e7ae67deec213fd2 |
|
MD5 | 49f80c98aa014e72908355f90394092b |
|
BLAKE2b-256 | 8faaec1bbd053df4cc9caafc6e0dd966edb2e6a2062657c5a5b4ce8170952f11 |
File details
Details for the file fixinventoryclient-2.0.1-py3-none-any.whl
.
File metadata
- Download URL: fixinventoryclient-2.0.1-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d7d16e9396872d7aceb51b9b7eab8a7f16271910125b4218c818b7f5b899410 |
|
MD5 | e8348d7453c2a82c064b8220971345ea |
|
BLAKE2b-256 | decae2a96eff492e1119a7d6f0ddc972488b7511233811a640188c7cbdb56383 |