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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ecmind_blue_client_manage-0.2.2.tar.gz.
File metadata
- Download URL: ecmind_blue_client_manage-0.2.2.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35a0ad2ee7efc63dd3b5fae486de302f9d5cd3301e4ce8537f4f02833a90fea9
|
|
| MD5 |
168feb98288f186a2ff97b58c1e2d951
|
|
| BLAKE2b-256 |
06696d412e4a755b6b6c88bcc3c30860f5bc9a5e49cb9ebe88e679503a8f2959
|
File details
Details for the file ecmind_blue_client_manage-0.2.2-py3-none-any.whl.
File metadata
- Download URL: ecmind_blue_client_manage-0.2.2-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
179c61adac909f5a277e7bc4d3fec6f6bc9b002956ba561c1a6663072550bd24
|
|
| MD5 |
de9957999fff57345b5de3926151ba48
|
|
| BLAKE2b-256 |
eead92cf89bb7f43245561e080c60f1820ab87146964b2ee5763065301ddb1af
|