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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1e6742205e0cf803f26359f6b1b6a3e814c1b65bc72a3ffc274988ebd341209 |
|
MD5 | 910eed4aea871a3f05cfbf83998b9ea2 |
|
BLAKE2b-256 | b9a7b90c9dc0a36604392f347371c6c9434e793514f80d00e4cd71b0e94ed62d |
Close
Hashes for ecmind_blue_client_manage-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88d1598217e5b14bcef6be9941547cd927ed055915746e81a5c63c4d28c1e8b2 |
|
MD5 | afe18f7a61c97e87488331da7c78d22e |
|
BLAKE2b-256 | 6ee94ceac33ae38c3e3fcdfdbc8f89d58fd73e4cea86cb19016879f2f7df4ff4 |