Skip to main content

Resoto Python client library

Project description

resotoclient-python

Python client for Resoto

Installation

pip install resotoclient

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)

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

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

resotoclient-0.1.11.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

resotoclient-0.1.11-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file resotoclient-0.1.11.tar.gz.

File metadata

  • Download URL: resotoclient-0.1.11.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Darwin/21.4.0

File hashes

Hashes for resotoclient-0.1.11.tar.gz
Algorithm Hash digest
SHA256 490a6e8b7c609f6c346ab5b8e6c22eb2720a8e76a4b27e32acd19e365eed0da8
MD5 8c5a3116b80925d2881a431601013c77
BLAKE2b-256 874c41bb05da416e42829019dbcc6952b06a7ea3aad6c871b29f186c65ac5231

See more details on using hashes here.

File details

Details for the file resotoclient-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: resotoclient-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Darwin/21.4.0

File hashes

Hashes for resotoclient-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 63462b53c5b4e4209fbb3d6329ae678a819b527b84fdef83c518dd98c6a88b0f
MD5 553ae77fe478ff1f91c223384c5adbde
BLAKE2b-256 d51aef64e81fcc9eb208016d555688c3c5ca5899fc76e56ffe24137e76c27f05

See more details on using hashes here.

Supported by

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