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))
Monitoring
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6a091814f278568f6d08e0b9a8a0d06a8b0a41fe82df048ccd198cc97b07cb0 |
|
MD5 | aa142d2061a0e5bc7f1ba477097be5f9 |
|
BLAKE2b-256 | 0c2dcd2cae69a93a33a4ad15fd1968619f9c183f3386783f136205229650b495 |
Close
Hashes for ecmind_blue_client_manage-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f96d533a859d2469cbaae0e431bd56110bc344711e50bc01935e048a2bad2bf |
|
MD5 | bd4b0262e15a07d91821d4f0a72c84ca |
|
BLAKE2b-256 | f8d0055f8fb4f2b284eebd0657c1bf6509b169c5e6ca1812fbdea8d395fc8361 |