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
python-surveilclient-0.1.3.tar.gz
(12.6 kB
view hashes)
Built Distribution
Close
Hashes for python-surveilclient-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0309bb6da29f8d1da78c9fe453b7a3bf17e4907983afbf6d7e495566e22b653a |
|
MD5 | b8f1c11ec7a82271677549108eff1b73 |
|
BLAKE2b-256 | 241ecc56e02d4157a06cb42c95339d3320812bb92e0b2b42415fc1bc95722191 |
Close
Hashes for python_surveilclient-0.1.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a598d9782aa40a20094f2ea277fb80705bad1c03eb68576a4b82b568288b4fa |
|
MD5 | b0f4aa02fa31d5c961442ae55010d9c4 |
|
BLAKE2b-256 | 853a5f19b2a8db8ec37abadd00e8805eb5b2e72ff1814760e284f89f225bc8c5 |