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 buildpoetry 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file resotoclient-0.1.12.tar.gz.
File metadata
- Download URL: resotoclient-0.1.12.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2014d19a6f8f3b60ede645773e88c2241c660facbd620d8b1e83629b84a2baca
|
|
| MD5 |
cd81a2b530309a2ec0e43fe67b4cd8ca
|
|
| BLAKE2b-256 |
c34d82f8254d47d3f78ddcdd4d4b679b92c6e9f0cd5127239412243d7962ec72
|
File details
Details for the file resotoclient-0.1.12-py3-none-any.whl.
File metadata
- Download URL: resotoclient-0.1.12-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8588b1f83fe2c5c091985043d1642348827992452b8850daa23e61af20d17838
|
|
| MD5 |
0842b6a98f763f8a4f6031b1475e3775
|
|
| BLAKE2b-256 |
7facf4ede3211905eb418f8fbde54749280fdfe30e6226dd92b5b5c338080363
|