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.1.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

ecmind_blue_client_manage-0.2.1-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

Supported by

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