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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 303810ae1e3be54aedb059344b39dfffd179edc94f05fe74bb95814612df19b6 |
|
MD5 | 219b87c09de8f11bb88a65e08ccd3582 |
|
BLAKE2b-256 | 7b992189fb078dedd338c42d2f953c0c02b8f7be6f48b55d1f6366e22ccb6dd1 |
Close
Hashes for ecmind_blue_client_manage-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 633693fad618d5d5dc425b315cbe3b247ae18207e84c86fd79d2909019ee1ad0 |
|
MD5 | 89a90c846d0d1ef87c30c166fd1b5f9a |
|
BLAKE2b-256 | 4eedff6ef129cd7f65373bb42c5dfb40d40ca92924a2559c4ad81ff6f727b453 |