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.0.tar.gz
(13.0 kB
view hashes)
Built Distribution
Close
Hashes for python-surveilclient-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b770f5a99c357d57d0e9b553ffaeb5776e4b7737de0bf2658d297cc977d8d4b |
|
MD5 | 0f28c242f9b4dfb329fe496cbb19dcfe |
|
BLAKE2b-256 | 53aca1cc028f296f6dedbd7a6e4e465ba0e827ead3108b1f3abb9477054aa3d0 |
Close
Hashes for python_surveilclient-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a440c757bd3dbeb03f61bbd4a6759876cf4504dd66a020eeb27172b34efaa84 |
|
MD5 | c334045cd87b6013a924233d9a738ab1 |
|
BLAKE2b-256 | 493e82be39c10585d448c567d7fef27f0f536ffd25584f51fcf8989a1dbcb994 |