Skip to main content

resotoclient-python

Python client for Resoto

Installation

pip install resotoclient

For GraphVis and Pandas support:

pip install resotoclient[extras]

Usage

from resotoclient import ResotoClient

client = ResotoClient(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 ResotoCore on localhost with the default PSK changeme. You can start it locally via:

$> resotocore --graphdb-database resotoclient_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

Metadata

Release files for resotoclient 1.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for resotoclient 1.6.2
File Size Uploaded Provenance Actions
resotoclient-1.6.2.tar.gz 21.5 kB Without provenance Details for resotoclient-1.6.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for resotoclient 1.6.2
File Interpreter ABI Platform Actions
resotoclient-1.6.2-py3-none-any.whl Python 3 none any Details for resotoclient-1.6.2-py3-none-any.whl

Total release size: 46.4 kB

Release files / resotoclient-1.6.2.tar.gz

Download URL resotoclient-1.6.2.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2be8b056a01d95f623a308560ab1a5fc52f725465d565de77b1015c5ded9e849
BLAKE2b-256 checksum
How to use checksums
0b61256230e47499229843927030052de0c52e367ecc04df6af41f69e967d726
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / resotoclient-1.6.2-py3-none-any.whl

Download URL resotoclient-1.6.2-py3-none-any.whl
Size 25.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6ab10a63cd4dc56970924f26a73672f736e15f583106bf28731f0a13a2f7a16
BLAKE2b-256 checksum
How to use checksums
27595cbab4790e549ea1ca3c149ff641bbc9acb107dd56d1b7485e3fbda4621a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Security for resotoclient 1.6.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page