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.1.tar.gz
(12.4 kB
view hashes)
Built Distribution
Close
Hashes for python-surveilclient-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d9097164565a1700050b5f6a722192e1ec15281e2bdf493b1baa7fd553f02e4 |
|
MD5 | dd482dd2edf99bed65f0cba6743de094 |
|
BLAKE2b-256 | 87d63d37aa497808e2790ef6a3408ce93e35693f2557ec465b6bd517567cc177 |
Close
Hashes for python_surveilclient-0.1.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed69de5aee57166348c9a74e2abb699ac07d1f6b234714a99567541e5bb27079 |
|
MD5 | 1d9ba08d8713254956a3049b1ff1be81 |
|
BLAKE2b-256 | ac6d7c69f47b77d1252bbf21d26e01bb436dc06c9431e534d10bae323c5ebd56 |