ecmind-blue-client-manage


Nameecmind-blue-client-manage JSON
Version 0.2.1 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_time2023-01-26 11:23:27
maintainer
docs_urlNone
authorRoland Koller, Ulrich Wohlfeil & other contributers
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))
```

### `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 & other contributers",
    "author_email": "info@ecmind.ch",
    "download_url": "https://files.pythonhosted.org/packages/74/de/a6cd3a71afb5b1a51edf873c4ec297fa614e8ba4dc32e5d2ce466f7af9ed/ecmind_blue_client_manage-0.2.1.tar.gz",
    "platform": null,
    "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### `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",
    "bugtrack_url": null,
    "license": "",
    "summary": "Helper modules for the `ecmind_blue_client` to ease the work with management APIs.",
    "version": "0.2.1",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1a55028eccadd606823b6673322c34f596bcb49eb6357ef5d95ea813460078b1",
                "md5": "ab0a28bef88359d0b87bd275637d6332",
                "sha256": "99549e5dd6bbabdb46de4677ee0aed1b43bf703d93a8f082b2af6ad5a4af4210"
            },
            "downloads": -1,
            "filename": "ecmind_blue_client_manage-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ab0a28bef88359d0b87bd275637d6332",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 7619,
            "upload_time": "2023-01-26T11:23:26",
            "upload_time_iso_8601": "2023-01-26T11:23:26.100472Z",
            "url": "https://files.pythonhosted.org/packages/1a/55/028eccadd606823b6673322c34f596bcb49eb6357ef5d95ea813460078b1/ecmind_blue_client_manage-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "74dea6cd3a71afb5b1a51edf873c4ec297fa614e8ba4dc32e5d2ce466f7af9ed",
                "md5": "a5a774d89d3087ef2cc1e4f91a113374",
                "sha256": "a1dd10879397b9b92c3d4263d0d761aa85d131d9ce3fdf01ac850fe1272b8270"
            },
            "downloads": -1,
            "filename": "ecmind_blue_client_manage-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "a5a774d89d3087ef2cc1e4f91a113374",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 6720,
            "upload_time": "2023-01-26T11:23:27",
            "upload_time_iso_8601": "2023-01-26T11:23:27.625550Z",
            "url": "https://files.pythonhosted.org/packages/74/de/a6cd3a71afb5b1a51edf873c4ec297fa614e8ba4dc32e5d2ce466f7af9ed/ecmind_blue_client_manage-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-26 11:23:27",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "ecmind-blue-client-manage"
}
        
Elapsed time: 0.03540s