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.2.0.tar.gz
(12.7 kB
view hashes)
Built Distribution
Close
Hashes for python-surveilclient-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cadbda51597f608a6c405f5cdfcc1210e0d86851fdbbb62fc8fcfa1c61b2cc5b |
|
MD5 | 459bd2c08dcc470a63a00dccb55a72c2 |
|
BLAKE2b-256 | 3b75d1ae5abb40892e41412d91844802c5fae3a430b300784eed4e348d25fb7f |
Close
Hashes for python_surveilclient-0.2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5509f2a0b149d73a33770b7bd99ef76490e66119eb6c3bf43d22c9f1aa47198c |
|
MD5 | 971fdbb80dad4a7f9a4fa7f2d0ec0f0d |
|
BLAKE2b-256 | 6908c21b247c42808ce1d89872d8ab9074ec0c9d7d536c77f3a97a77ff1b31d9 |