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
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
resotoclient-0.1.13.tar.gz
(14.4 kB
view hashes)
Built Distribution
Close
Hashes for resotoclient-0.1.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d13990abb764f164d12aff9feaf9ffe307f290a2f0d36b85fa6bb85c45eb054 |
|
MD5 | 9a37df607801c772a83f78ae3b83235f |
|
BLAKE2b-256 | 729433de82b932b40af5056e19c9e62b24e134bb7d4fb8636988f7a2ad0f0855 |