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
File details
Details for the file ecmind_blue_client_manage-0.2.1.tar.gz
.
File metadata
- Download URL: ecmind_blue_client_manage-0.2.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1dd10879397b9b92c3d4263d0d761aa85d131d9ce3fdf01ac850fe1272b8270 |
|
MD5 | a5a774d89d3087ef2cc1e4f91a113374 |
|
BLAKE2b-256 | 74dea6cd3a71afb5b1a51edf873c4ec297fa614e8ba4dc32e5d2ce466f7af9ed |
File details
Details for the file ecmind_blue_client_manage-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: ecmind_blue_client_manage-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99549e5dd6bbabdb46de4677ee0aed1b43bf703d93a8f082b2af6ad5a4af4210 |
|
MD5 | ab0a28bef88359d0b87bd275637d6332 |
|
BLAKE2b-256 | 1a55028eccadd606823b6673322c34f596bcb49eb6357ef5d95ea813460078b1 |