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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | af9957f602d19fbc9c80723c1692a8cc03c214d09af245aef0108d5d2949ab37 |
|
MD5 | e84f56ff222b10cfc80bca78ad566cf7 |
|
BLAKE2b-256 | 03c4a2472dc6f2749c26cd4a774912f9926503505a67e51a1442d62fde4b7a9f |
Close
Hashes for ecmind_blue_client_manage-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31b74385c09475467bd82f27b7d72fc9b0fa75a22f32b247c0534e1dfe6c25a4 |
|
MD5 | 70cc321a79138b07e31eb895a6802ff7 |
|
BLAKE2b-256 | f046b77655158a3e464659cc9d5b0adf5cca9fb7cce250bfa40996d265521a82 |