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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fff6a5e62320d0bdcc6865fc79d118a4bb4fc00de01dee13ea19601cc8944e94 |
|
MD5 | d80d50bbd51692268a441914a156ab99 |
|
BLAKE2b-256 | 9903051c2ee4b506aef27f2ba8e88bf4955852fabd9c027a59a7ef73dd15c093 |
Close
Hashes for ecmind_blue_client_manage-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5787c6b8a07fd767b5a413c3b273bf59665a55a874069b5b094e645d124ac100 |
|
MD5 | 195a92e3d91bbc088ff56afbb7c7e536 |
|
BLAKE2b-256 | 08d5f2611e6f9476eeb78fb6940121ac11edfb40db8f55ceac54df138a3a362b |