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))
Metadata
Release files for lobby-python 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lobby-python-1.0.0.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lobby_python-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / lobby-python-1.0.0.tar.gz
| Download URL | lobby-python-1.0.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74937e3d57caa8985be041e45a873e187a5819764d4f9079891fe92868d1065e
|
|
BLAKE2b-256 checksum How to use checksums |
fffff5a490ae7c1e2704ee2db5f35cb778593cdfdaefdebafb01233946433aa9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / lobby_python-1.0.0-py3-none-any.whl
| Download URL | lobby_python-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc3afe6c2d3d2ae0f5ffe6332a26890e48168e9a3d17e0096f9c99f42c777147
|
|
BLAKE2b-256 checksum How to use checksums |
9d685e619dacc323bd45db13a25c0100105c0839ff2c93882e7b6e1998ea12c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|