Helper modules for the `ecmind_blue_client` to ease the work with management APIs.
Project description
ECMind blue client: Manage
Helper modules for the ecmind_blue_client to ease the work with management APIs. See discussion here: https://hub.ecmind.ch/t/119
Installation
pip install ecmind_blue_client_manage
Usage
from ecmind_blue_client.tcp_client import TcpClient as Client
from ecmind_blue_client_manage import manage
client = Client(hostname='localhost', port=4000, appname='test', username='root', password='optimal')
print(manage.get_users(client))
`Sessions
Small example to get all sessions of a enaio server. For example useful for monitoring proposes.
from ecmind_blue_client.tcp_client import TcpClient as Client
from ecmind_blue_client_manage import manage
client = Client(hostname='localhost', port=4000, appname='test', username='root', password='optimal')
sessions = manage.get_sessions(client)
ax_sessions = list(filter(lambda s: s['instname'] == 'ax', sessions))
print(f"Number of sessions: {len(sessions)}")
print(f"Number of windows client sessions: {len(ax_sessions)}")
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
Built Distribution
Close
Hashes for ecmind_blue_client_manage-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | becbc52b87a1acc7016e48848dee2bf36d001a12f9124e84a112ad9134523e08 |
|
MD5 | c2f7fba7153f1cc49022b8d3d08fe4b5 |
|
BLAKE2b-256 | 0968c0e8b6925f8e82aa1fd9cf95a2840091d249f48409fead1a4f78bf48f0f9 |
Close
Hashes for ecmind_blue_client_manage-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19f24e70cdef9287d2a1f5491e55ae6d4819dc6074119dd9404e2af2159aa448 |
|
MD5 | e87aebcfe8e87f9c21f32986fd621b6c |
|
BLAKE2b-256 | 1af527a082037537a565d88af8c36c0ca21dea607a80932b275685e0a74fbdc3 |