Surveil API Client Library
Project description
This is a client library for Surveil built on the Surveil API.
Command-line API
Installing this package gets you a shell command, surveil, that you can use to interact with the Surveil API.
You’ll need to provide the Surveil API URL. You can do this with the --surveil-api-url parameter, but it’s easier to just set it as environment variable:
export SURVEIL_API_URL=http://localhost:8080/v1
You’ll find complete documentation on the shell by running surveil help.
Bash completion
Basic command tab completion can be enabled by sourcing the bash completion script:
source /usr/local/share/monasca.bash_completion
Python API
To use the python API, simply create a client with the endpoint:
from surveilclient.v1_0 import client c = client.Client('http://localhost:8080/v1') hosts = c.hosts.list()
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
File details
Details for the file python-surveilclient-f6828f8.tar.gz
.
File metadata
- Download URL: python-surveilclient-f6828f8.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88f5f64e37303615e341c462e1999aec8a5bac3fe93cffa77b4b8d47041f7603 |
|
MD5 | d982269ab39f62832f58d636c383908c |
|
BLAKE2b-256 | 963aa6c48a16d5992a1a3671fa5006574740641151ba41e4e0a3b3884389b43f |