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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1dd10879397b9b92c3d4263d0d761aa85d131d9ce3fdf01ac850fe1272b8270 |
|
MD5 | a5a774d89d3087ef2cc1e4f91a113374 |
|
BLAKE2b-256 | 74dea6cd3a71afb5b1a51edf873c4ec297fa614e8ba4dc32e5d2ce466f7af9ed |
Close
Hashes for ecmind_blue_client_manage-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99549e5dd6bbabdb46de4677ee0aed1b43bf703d93a8f082b2af6ad5a4af4210 |
|
MD5 | ab0a28bef88359d0b87bd275637d6332 |
|
BLAKE2b-256 | 1a55028eccadd606823b6673322c34f596bcb49eb6357ef5d95ea813460078b1 |