ecmind-blue-client-manage-0.2.1
توضیحات
Helper modules for the `ecmind_blue_client` to ease the work with management APIs.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ecmind-blue-client-manage-0.2.1 |
| نام | ecmind-blue-client-manage |
| نسخه کتابخانه | 0.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Roland Koller, Ulrich Wohlfeil & other contributers |
| ایمیل نویسنده | info@ecmind.ch |
| آدرس صفحه اصلی | https://gitlab.ecmind.ch/open/ecmind_blue_client_manage |
| آدرس اینترنتی | https://pypi.org/project/ecmind-blue-client-manage/ |
| مجوز | - |
# 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
```python
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.
```python
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)}")
```
نیازمندی
| مقدار | نام |
|---|---|
| >=0.4.6 | ecmind-blue-client |
| >=0.3.1 | XmlElement |
| - | ftfy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl ecmind-blue-client-manage-0.2.1:
pip install ecmind-blue-client-manage-0.2.1.whl
نصب پکیج tar.gz ecmind-blue-client-manage-0.2.1:
pip install ecmind-blue-client-manage-0.2.1.tar.gz