Skip to main content

Client for service discovery tool Lobby

None None

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

None None

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)

Uploaded Source

Built Distribution

lobby_python-1.0.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page