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/v2 export SURVEIL_AUTH_URL=http://localhost:8080/v2/auth
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/surveil.bash_completion
Python API
To use the python API, simply create a client with the endpoint:
from surveilclient import client c = client.Client('http://localhost:8080/v2', auth_url='http://localhost:8080/v2/auth', version='2_0') hosts = c.config.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.4.0.tar.gz
(16.1 kB
view hashes)
Built Distribution
Close
Hashes for python-surveilclient-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 864ead915cd43ec184624e8eb1d54f703952695a6d25caf5331940923c69d1ba |
|
MD5 | fa0a8cf8c87def63aadb9ea86cc9baa4 |
|
BLAKE2b-256 | b523f08c05d87d87628d5b938b03fd6ad61a6049e3dbbcf9f28b57ccc602a15f |
Close
Hashes for python_surveilclient-0.4.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb803065c9ab50e20073559a56e1be824cf8768449ea5712158df24fc5142859 |
|
MD5 | d4f7a04249c8b154c2b18a7ff5623052 |
|
BLAKE2b-256 | 0dba46818a511589132ad9e155bb4cb39e1e2cf79d2c4d9646ef6086fc05509e |