ecmind-blue-client-manage


Nameecmind-blue-client-manage JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://gitlab.ecmind.ch/open/ecmind_blue_client_manage
SummaryHelper modules for the `ecmind_blue_client` to ease the work with management APIs.
upload_time2021-06-11 08:30:23
maintainer
docs_urlNone
authorRoland Koller, Ulrich Wohlfeil
requires_python>=3.9
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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))
```

### Monitoring

### 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)}")
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.ecmind.ch/open/ecmind_blue_client_manage",
    "name": "ecmind-blue-client-manage",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "",
    "author": "Roland Koller, Ulrich Wohlfeil",
    "author_email": "info@ecmind.ch",
    "download_url": "https://files.pythonhosted.org/packages/0c/2d/cd2cae69a93a33a4ad15fd1968619f9c183f3386783f136205229650b495/ecmind_blue_client_manage-0.0.2.tar.gz",
    "platform": "",
    "description": "# ECMind blue client: Manage\n\nHelper modules for the ecmind_blue_client to ease the work with management APIs. See discussion here: https://hub.ecmind.ch/t/119\n\n## Installation\n\n`pip install ecmind_blue_client_manage`\n\n\n## Usage\n\n```python\nfrom ecmind_blue_client.tcp_client import TcpClient as Client\nfrom ecmind_blue_client_manage import manage\n\nclient = Client(hostname='localhost', port=4000, appname='test', username='root', password='optimal')\nprint(manage.get_users(client))\n```\n\n### Monitoring\n\n### Sessions\n\nSmall example to get all sessions of a enaio server. For example useful for monitoring proposes. \n\n```python\nfrom ecmind_blue_client.tcp_client import TcpClient as Client\nfrom ecmind_blue_client_manage import manage\n\nclient = Client(hostname='localhost', port=4000, appname='test', username='root', password='optimal')\nsessions = manage.get_sessions(client)\nax_sessions = list(filter(lambda s: s['instname'] == 'ax', sessions))\n\nprint(f\"Number of sessions: {len(sessions)}\")\nprint(f\"Number of windows client sessions: {len(ax_sessions)}\")\n```\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Helper modules for the `ecmind_blue_client` to ease the work with management APIs.",
    "version": "0.0.2",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "bd4b0262e15a07d91821d4f0a72c84ca",
                "sha256": "4f96d533a859d2469cbaae0e431bd56110bc344711e50bc01935e048a2bad2bf"
            },
            "downloads": -1,
            "filename": "ecmind_blue_client_manage-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bd4b0262e15a07d91821d4f0a72c84ca",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 3697,
            "upload_time": "2021-06-11T08:30:22",
            "upload_time_iso_8601": "2021-06-11T08:30:22.319119Z",
            "url": "https://files.pythonhosted.org/packages/f8/d0/055f8fb4f2b284eebd0657c1bf6509b169c5e6ca1812fbdea8d395fc8361/ecmind_blue_client_manage-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "aa142d2061a0e5bc7f1ba477097be5f9",
                "sha256": "b6a091814f278568f6d08e0b9a8a0d06a8b0a41fe82df048ccd198cc97b07cb0"
            },
            "downloads": -1,
            "filename": "ecmind_blue_client_manage-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "aa142d2061a0e5bc7f1ba477097be5f9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 2502,
            "upload_time": "2021-06-11T08:30:23",
            "upload_time_iso_8601": "2021-06-11T08:30:23.355561Z",
            "url": "https://files.pythonhosted.org/packages/0c/2d/cd2cae69a93a33a4ad15fd1968619f9c183f3386783f136205229650b495/ecmind_blue_client_manage-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-06-11 08:30:23",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "ecmind-blue-client-manage"
}
        
Elapsed time: 0.29222s