Skip to main content

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


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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file lobby-python-1.0.0.tar.gz.

File metadata

  • Download URL: lobby-python-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for lobby-python-1.0.0.tar.gz
Algorithm Hash digest
SHA256 74937e3d57caa8985be041e45a873e187a5819764d4f9079891fe92868d1065e
MD5 362ecfce867263c0514c410d83b4acad
BLAKE2b-256 fffff5a490ae7c1e2704ee2db5f35cb778593cdfdaefdebafb01233946433aa9

See more details on using hashes here.

File details

Details for the file lobby_python-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: lobby_python-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for lobby_python-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc3afe6c2d3d2ae0f5ffe6332a26890e48168e9a3d17e0096f9c99f42c777147
MD5 cbb64ab4da08bc5e8b9ad76245a0b6af
BLAKE2b-256 9d685e619dacc323bd45db13a25c0100105c0839ff2c93882e7b6e1998ea12c7

See more details on using hashes here.

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