xaal.monitor


Namexaal.monitor JSON
Version 0.5 PyPI version JSON
download
home_pageNone
SummaryxAAL devices Monitor Lib
upload_time2024-12-30 01:35:24
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseGPL License
keywords xaal monitor
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            xaal.monitor
============
This package is a library for monitoring the xAAL devices on the network. It provides a easy way to get the list of devices and their status
(attributes, description, metadata, etc...). It also provides a simple way to subscribe to events.

This package is used by a lot of xAAL programs like: The dashboard, the REST API, the Home Assistant plugin...

Usage
-----
.. code:: python

    from xaal.monitor import Monitor
    from xaal.schemas import devices
    from xaal.lib import Engine

    def on_event(ev_type, device):
        print("Event type: %s from device %s" % (ev_type, device))

    dev = devices.hmi()
    eng = Engine()
    eng.add_device(dev)
    mon = Monitor(dev)
    mon.subscribe(on_event)
    eng.run()

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "xaal.monitor",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "xaal, monitor",
    "author": null,
    "author_email": "Jerome Kerdreux <Jerome.Kerdreux@imt-atlantique.fr>",
    "download_url": "https://files.pythonhosted.org/packages/d2/55/3bc26f5eec0ef030c9694469908fde8b14b55ecdf972dff1518fe49628fa/xaal_monitor-0.5.tar.gz",
    "platform": null,
    "description": "xaal.monitor\n============\nThis package is a library for monitoring the xAAL devices on the network. It provides a easy way to get the list of devices and their status\n(attributes, description, metadata, etc...). It also provides a simple way to subscribe to events.\n\nThis package is used by a lot of xAAL programs like: The dashboard, the REST API, the Home Assistant plugin...\n\nUsage\n-----\n.. code:: python\n\n    from xaal.monitor import Monitor\n    from xaal.schemas import devices\n    from xaal.lib import Engine\n\n    def on_event(ev_type, device):\n        print(\"Event type: %s from device %s\" % (ev_type, device))\n\n    dev = devices.hmi()\n    eng = Engine()\n    eng.add_device(dev)\n    mon = Monitor(dev)\n    mon.subscribe(on_event)\n    eng.run()\n",
    "bugtrack_url": null,
    "license": "GPL License",
    "summary": "xAAL devices Monitor Lib",
    "version": "0.5",
    "project_urls": {
        "Documentation": "https://redmine.imt-atlantique.fr/projects/xaal/repository/xaal/entry/code/Python/branches/0.7/libs/monitor/README.rst",
        "Homepage": "https://recherche.imt-atlantique.fr/xaal/",
        "Source": "https://redmine.imt-atlantique.fr/projects/xaal/repository/xaal/show/code/Python/branches/0.7/libs/monitor"
    },
    "split_keywords": [
        "xaal",
        " monitor"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "98f4b4a269c8587a10ca91369483e1dd000c472eac466e9b70a5b92fd6c21996",
                "md5": "5c37191687ccd81080b11442b094a020",
                "sha256": "764676fb63632b7f4b412f5f55893d828515cf54571d102c8f1b1545c81fa599"
            },
            "downloads": -1,
            "filename": "xaal.monitor-0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5c37191687ccd81080b11442b094a020",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6542,
            "upload_time": "2024-12-30T01:35:23",
            "upload_time_iso_8601": "2024-12-30T01:35:23.163296Z",
            "url": "https://files.pythonhosted.org/packages/98/f4/b4a269c8587a10ca91369483e1dd000c472eac466e9b70a5b92fd6c21996/xaal.monitor-0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d2553bc26f5eec0ef030c9694469908fde8b14b55ecdf972dff1518fe49628fa",
                "md5": "e260398a56c768c27d963f7d40c94650",
                "sha256": "5bac5625f4de97f3c634830f6d79dfdd8afaaf050d0e14dc0e3baf1ed41315df"
            },
            "downloads": -1,
            "filename": "xaal_monitor-0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "e260398a56c768c27d963f7d40c94650",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7106,
            "upload_time": "2024-12-30T01:35:24",
            "upload_time_iso_8601": "2024-12-30T01:35:24.223963Z",
            "url": "https://files.pythonhosted.org/packages/d2/55/3bc26f5eec0ef030c9694469908fde8b14b55ecdf972dff1518fe49628fa/xaal_monitor-0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-30 01:35:24",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "xaal.monitor"
}
        
Elapsed time: 0.36516s