Skip to main content

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


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)

Uploaded Source

Built Distribution

fixinventoryclient-2.0.1-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

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

Hashes for fixinventoryclient-2.0.1.tar.gz
Algorithm Hash digest
SHA256 c954e25df4f4f30490e5eb6dbd5fb226b526bce6f9210f81e7ae67deec213fd2
MD5 49f80c98aa014e72908355f90394092b
BLAKE2b-256 8faaec1bbd053df4cc9caafc6e0dd966edb2e6a2062657c5a5b4ce8170952f11

See more details on using hashes here.

File details

Details for the file fixinventoryclient-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for fixinventoryclient-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d7d16e9396872d7aceb51b9b7eab8a7f16271910125b4218c818b7f5b899410
MD5 e8348d7453c2a82c064b8220971345ea
BLAKE2b-256 decae2a96eff492e1119a7d6f0ddc972488b7511233811a640188c7cbdb56383

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page