Fixinventoryclient 2.0.1 | Coderz Repository

fixinventoryclient 2.0.1

Last updated:

0 purchases

fixinventoryclient 2.0.1 Image
fixinventoryclient 2.0.1 Images

Free

Languages

Categories

Add to Cart

Description:

fixinventoryclient 2.0.1

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.