{ "info": { "author": "Georges Toth", "author_email": "georges@trypill.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only" ], "description": ".. image:: https://api.codacy.com/project/badge/Grade/c9f4e32e536f4150a8e7e18039f8f102\n :target: https://www.codacy.com/app/sim0nx/python-openhab?utm_source=github.com&utm_medium=referral&utm_content=sim0nx/python-openhab&utm_campaign=Badge_Grade\n :alt: Codacy badge\n\n.. image:: https://readthedocs.org/projects/python-openhab/badge/?version=latest\n :target: http://python-openhab.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://badge.fury.io/py/python-openhab.svg\n :target: https://badge.fury.io/py/python-openhab\n :alt: pypi version\n\n\npython library for accessing the openHAB REST API\n=================================================\n\nThis library allows for easily accessing the openHAB REST API.\nA number of features are implemented but not all, this is work in progress.\n\nRequirements\n------------\n\n - python >= 3.5\n - python :: dateutil\n - python :: requests\n - python :: typing\n\nNote on openHAB1:\n-----------------\n\nThe current version is focused on OpenHAB 2.x; OpenHAB 1.x might still work, though this is not tested. If you require\nolder OpenHAB support, please use an older version of this library.\n\nInstallation\n------------\n\nInstall the latest version using pip:\n\n.. code-block:: bash\n\n pip install python-openhab\n\n\nExample\n-------\n\nExample usage of the library:\n\n.. code-block:: python\n\n from openhab import openHAB\n\n base_url = 'http://localhost:8080/rest'\n openhab = openHAB(base_url)\n\n # fetch all items\n items = openhab.fetch_all_items()\n\n sunset = items.get('Sunset')\n print(sunset.state)\n\n # fetch a single item\n item = openhab.get_item('light_switch')\n\n # turn a swith on\n item.on()\n\n # send a state update (this only update the state)\n item.state = 'OFF'\n\n # send a command\n item.command('ON')\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/sim0nx/python-openhab", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sim0nx/python-openhab", "keywords": "openHAB", "license": "AGPLv3+", "maintainer": "", "maintainer_email": "", "name": "python-openhab", "package_url": "https://pypi.org/project/python-openhab/", "platform": "", "project_url": "https://pypi.org/project/python-openhab/", "project_urls": { "Download": "https://github.com/sim0nx/python-openhab", "Homepage": "https://github.com/sim0nx/python-openhab" }, "release_url": "https://pypi.org/project/python-openhab/2.10.2/", "requires_dist": [ "python-dateutil (>=2.2)", "requests (>=2.4.3)", "typing" ], "requires_python": "", "summary": "python library for accessing the openHAB REST API", "version": "2.10.2" }, "last_serial": 5903810, "releases": { "2.1": [ { "comment_text": "", "digests": { "md5": "3f78821003d2e46458fd1e0f80668995", "sha256": "e0ab7f5992827449f46a973f3165dc98e06b490f31fc7a49deb4d9181e56a387" }, "downloads": -1, "filename": "python_openhab-2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3f78821003d2e46458fd1e0f80668995", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9109, "upload_time": "2017-01-03T23:56:28", "url": "https://files.pythonhosted.org/packages/7e/9b/0b1b79ce89466ca1dcbc7d810e961b1c58d2526e29a2ea5bd352537f361e/python_openhab-2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8625adcf58055e46658bcd54f3f565bc", "sha256": "f69f7aa52a7ab2c818019ff9ea89de1925ab54c4b31357afd86662e36bb9fe3c" }, "downloads": -1, "filename": "python-openhab-2.1.tar.gz", "has_sig": false, "md5_digest": "8625adcf58055e46658bcd54f3f565bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5666, "upload_time": "2017-01-03T23:56:30", "url": "https://files.pythonhosted.org/packages/7d/e7/c7885028b93417b6ea8d23fd41fd4aab44613a9b7a18cf45992d080f1194/python-openhab-2.1.tar.gz" } ], "2.10.0": [ { "comment_text": "", "digests": { "md5": "b596fcfd6d499ecf2f4d9276196fa8de", "sha256": "edb4cf2907321d8bafdbe4d0f4ea3c8d464de7c3fd63be1aa3fef40d06d67028" }, "downloads": -1, "filename": "python_openhab-2.10.0-py3-none-any.whl", "has_sig": false, "md5_digest": "b596fcfd6d499ecf2f4d9276196fa8de", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 23066, "upload_time": "2019-09-05T18:37:53", "url": "https://files.pythonhosted.org/packages/af/a2/8b079db19cc6d6b61d4f9ff7a4fd90deaf50c05fac733e6b5b9dab3fb5bd/python_openhab-2.10.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d33429c5013be09f53e8854581093fc6", "sha256": "046dbf36ac74970b4f14715c34e6c07ee60cacbab0dcd1f91bdd2de9ff538357" }, "downloads": -1, "filename": "python-openhab-2.10.0.tar.gz", "has_sig": false, "md5_digest": "d33429c5013be09f53e8854581093fc6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7314, "upload_time": "2019-09-05T18:37:54", "url": "https://files.pythonhosted.org/packages/59/56/a3d50136946b04d8d228b755b5b3b6f10f2dfd581cb92f58dfacb80d24cc/python-openhab-2.10.0.tar.gz" } ], "2.10.2": [ { "comment_text": "", "digests": { "md5": "341bb847318fd9a97a603d123ce63fe1", "sha256": "7caf5ff4471e051d41a7b39d257b01bf723205b5dfb314b27cf7dd76adfd3e17" }, "downloads": -1, "filename": "python_openhab-2.10.2-py3-none-any.whl", "has_sig": false, "md5_digest": "341bb847318fd9a97a603d123ce63fe1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20798, "upload_time": "2019-09-29T20:50:36", "url": "https://files.pythonhosted.org/packages/d8/a6/7b32b9bd9c2a72ff47e273c94e78cc091129b88c4ebdef327c77ad066649/python_openhab-2.10.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "013e795a6de1ece3fbeaf86a2df6bb67", "sha256": "4da294c769c098f2885fe6310d66dc7518ee79caaf19eb6f4fe54374e6c524f1" }, "downloads": -1, "filename": "python-openhab-2.10.2.tar.gz", "has_sig": false, "md5_digest": "013e795a6de1ece3fbeaf86a2df6bb67", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7320, "upload_time": "2019-09-29T20:50:40", "url": "https://files.pythonhosted.org/packages/0b/b6/656010eaaea55e720888c74360de8d77b39bdba4a9fa586cec9a2a5ff872/python-openhab-2.10.2.tar.gz" } ], "2.2": [ { "comment_text": "", "digests": { "md5": "44f43fbf29a884d34a86d107b348248d", "sha256": "9241fa57b45612fd02d17bc26fe7b9c579913f1433784a02e3833893ff8a9fbc" }, "downloads": -1, "filename": "python_openhab-2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "44f43fbf29a884d34a86d107b348248d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9574, "upload_time": "2017-07-16T13:54:12", "url": "https://files.pythonhosted.org/packages/05/55/6e6d321c1513d48fb6baf8da65c610c939bf83635355884afc5fd1f9992c/python_openhab-2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "34d7718e61ec3eedcb5355ddf0139d6a", "sha256": "6cc456b91a58cce5e65275aa474c3942e5c67ecf4f2aee587d48c54193e14196" }, "downloads": -1, "filename": "python-openhab-2.2.tar.gz", "has_sig": true, "md5_digest": "34d7718e61ec3eedcb5355ddf0139d6a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5958, "upload_time": "2017-07-16T13:54:13", "url": "https://files.pythonhosted.org/packages/64/c2/cca2fd36e6a5773b27130ca408527ce35eea85a84e8883ecaadce759b71b/python-openhab-2.2.tar.gz" } ], "2.4": [ { "comment_text": "", "digests": { "md5": "700fde61c6ee72717664a83826c5b833", "sha256": "26cb20d57a92e939c3109cb6616315164c19201ce56e31fb34f198001a20962d" }, "downloads": -1, "filename": "python_openhab-2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "700fde61c6ee72717664a83826c5b833", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8165, "upload_time": "2018-05-13T14:56:36", "url": "https://files.pythonhosted.org/packages/d3/e1/7bc4ab3294d37190094e86f4c5f7a494f918c13d55e818b6fefe18e407cc/python_openhab-2.4-py3-none-any.whl" } ], "2.5": [ { "comment_text": "", "digests": { "md5": "2a1dbb554cf2425bdc62fbecf6b42b55", "sha256": "2f664d8160d0fa38cd3bf6698657f1321193ac6226ce1e3be44b0adfa053c0e8" }, "downloads": -1, "filename": "python_openhab-2.5-py3-none-any.whl", "has_sig": false, "md5_digest": "2a1dbb554cf2425bdc62fbecf6b42b55", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8164, "upload_time": "2018-05-30T20:23:33", "url": "https://files.pythonhosted.org/packages/ca/bb/f51195fb37177a95ef0fe85edc4c8f068f73b3f67e4c1c01b53ee3fb7297/python_openhab-2.5-py3-none-any.whl" } ], "2.7": [ { "comment_text": "", "digests": { "md5": "9cbeb39beecfa910e2bbf9d5ad1f22e7", "sha256": "d7bd560d54a7163f8e55bac76252de3e7e9c567217c3c36c628c0fcbc09c5c89" }, "downloads": -1, "filename": "python_openhab-2.7-py3-none-any.whl", "has_sig": false, "md5_digest": "9cbeb39beecfa910e2bbf9d5ad1f22e7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10511, "upload_time": "2018-05-30T21:17:22", "url": "https://files.pythonhosted.org/packages/ef/0c/ef928ce7b0decdf83ce6b4404cb24be5a5ef551908659f533eedd891b058/python_openhab-2.7-py3-none-any.whl" } ], "2.8": [ { "comment_text": "", "digests": { "md5": "5bb3b5059d3d74167617445704b3a5a1", "sha256": "c8bfdde66cfd068e138e76f2408c6685aece1eba4054fbc737dfaede8eb6c9aa" }, "downloads": -1, "filename": "python_openhab-2.8-py3-none-any.whl", "has_sig": false, "md5_digest": "5bb3b5059d3d74167617445704b3a5a1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10825, "upload_time": "2018-09-09T21:55:30", "url": "https://files.pythonhosted.org/packages/6e/0b/f481229e863f70587c08f6469be4ce216a84cc480696d3a5c3a139cf5113/python_openhab-2.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f884e2df398f438e4f948a1d3571a2d0", "sha256": "949b8574cd3174b962201ca7ec467fb6491c9009ad0c606ec00a52c9cab855a1" }, "downloads": -1, "filename": "python-openhab-2.8.tar.gz", "has_sig": false, "md5_digest": "f884e2df398f438e4f948a1d3571a2d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6607, "upload_time": "2018-09-09T21:55:31", "url": "https://files.pythonhosted.org/packages/d9/db/6f33feecc175db42d9a83ebc58be256174b58aa5e41139f01cef03f8ec4d/python-openhab-2.8.tar.gz" } ], "2.9": [ { "comment_text": "", "digests": { "md5": "b0badaaba34667a4f73707d6ff47962b", "sha256": "30a23d29e39102bfe269d46da02d82499e9f7a3eb2d048039c26d7b69b1465ae" }, "downloads": -1, "filename": "python_openhab-2.9-py3-none-any.whl", "has_sig": false, "md5_digest": "b0badaaba34667a4f73707d6ff47962b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12692, "upload_time": "2018-12-26T01:54:21", "url": "https://files.pythonhosted.org/packages/76/03/0157b39cd67b4fb5a03d86514af28bf98c00d8000f32376a72279dd2c5d3/python_openhab-2.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "86e0ac5d218047757a77079ddfd38926", "sha256": "879b3b47d35b2d348f05f889cf11d757dfbbadd6920a220734eecaceb5e9a5a5" }, "downloads": -1, "filename": "python-openhab-2.9.tar.gz", "has_sig": false, "md5_digest": "86e0ac5d218047757a77079ddfd38926", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6653, "upload_time": "2018-12-26T01:54:23", "url": "https://files.pythonhosted.org/packages/2b/e6/bff5ca8f67febc7a2a572b2f7cbaeb19cee95dcecb0235be40d56f6f7875/python-openhab-2.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "341bb847318fd9a97a603d123ce63fe1", "sha256": "7caf5ff4471e051d41a7b39d257b01bf723205b5dfb314b27cf7dd76adfd3e17" }, "downloads": -1, "filename": "python_openhab-2.10.2-py3-none-any.whl", "has_sig": false, "md5_digest": "341bb847318fd9a97a603d123ce63fe1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20798, "upload_time": "2019-09-29T20:50:36", "url": "https://files.pythonhosted.org/packages/d8/a6/7b32b9bd9c2a72ff47e273c94e78cc091129b88c4ebdef327c77ad066649/python_openhab-2.10.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "013e795a6de1ece3fbeaf86a2df6bb67", "sha256": "4da294c769c098f2885fe6310d66dc7518ee79caaf19eb6f4fe54374e6c524f1" }, "downloads": -1, "filename": "python-openhab-2.10.2.tar.gz", "has_sig": false, "md5_digest": "013e795a6de1ece3fbeaf86a2df6bb67", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7320, "upload_time": "2019-09-29T20:50:40", "url": "https://files.pythonhosted.org/packages/0b/b6/656010eaaea55e720888c74360de8d77b39bdba4a9fa586cec9a2a5ff872/python-openhab-2.10.2.tar.gz" } ] }