Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ecmind_blue_client_manage-0.2.2.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ecmind_blue_client_manage-0.2.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file ecmind_blue_client_manage-0.2.2.tar.gz.

File metadata

File hashes

Hashes for ecmind_blue_client_manage-0.2.2.tar.gz
Algorithm Hash digest
SHA256 35a0ad2ee7efc63dd3b5fae486de302f9d5cd3301e4ce8537f4f02833a90fea9
MD5 168feb98288f186a2ff97b58c1e2d951
BLAKE2b-256 06696d412e4a755b6b6c88bcc3c30860f5bc9a5e49cb9ebe88e679503a8f2959

See more details on using hashes here.

File details

Details for the file ecmind_blue_client_manage-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ecmind_blue_client_manage-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 179c61adac909f5a277e7bc4d3fec6f6bc9b002956ba561c1a6663072550bd24
MD5 de9957999fff57345b5de3926151ba48
BLAKE2b-256 eead92cf89bb7f43245561e080c60f1820ab87146964b2ee5763065301ddb1af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page