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.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8df67e7a573fec0583d4be34e1950380e8ceca8d5026eadd0ab8630d4f0c178f |
|
MD5 | 4b4cd48e7a7812af0a5c1c31f553fe68 |
|
BLAKE2b-256 | 9344a4940bced5c7c0c7b7ef2d2effe1d3afbc281e2dece81ce86c8b739f6f7b |
Close
Hashes for ecmind_blue_client_manage-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b2c410a13cda7eca7ca7714a5d48a5686acd2f53881f0551caa9be071bb684a |
|
MD5 | 35fd33417da5521000e31add4b358b5d |
|
BLAKE2b-256 | 35ad5f78dbcdc160918a90e117a2be2efa6584de11182bddfd947377cd19d714 |