Client for service discovery tool Lobby
Project description
lobby-python
This is a simple wrapper for Lobby's REST API interface that allows to list discovered servers and their labels and also update labels of the destination instance.
Check Lobby for more information.
Example
from lobby import Lobby
import json
lobby = Lobby(host="localhost", port=1313, token="", proto="http")
response = lobby.add_labels(["service:ns", "service:smtp", "service:node", "backup:/srv/apps", "backup:/etc"])
print(response)
response = lobby.delete_labels(["service:node"])
print(response)
response = lobby.get_discovery()
print(json.dumps(response, indent=2))
response = lobby.get_discoveries()
print(json.dumps(response, indent=2))
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
lobby-python-1.0.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for lobby_python-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc3afe6c2d3d2ae0f5ffe6332a26890e48168e9a3d17e0096f9c99f42c777147 |
|
MD5 | cbb64ab4da08bc5e8b9ad76245a0b6af |
|
BLAKE2b-256 | 9d685e619dacc323bd45db13a25c0100105c0839ff2c93882e7b6e1998ea12c7 |