python-openhab:用于访问openHAB REST API的python库

时间:2021-05-05 06:13:28
【文件属性】:
文件名称:python-openhab:用于访问openHAB REST API的python库
文件大小:156KB
文件格式:ZIP
更新时间:2021-05-05 06:13:28
python openhab openhab2 Python 用于访问openHAB REST API的python库 该库可轻松访问openHAB REST API。 实现了许多功能,但不是全部,这是正在进行的工作。 要求 python> = 3.5 python :: dateutil python ::请求 openHAB版本2 安装 使用pip安装最新版本: pip install python-openhab 例子 该库的用法示例: from openhab import OpenHAB base_url = 'http://localhost:8080/rest' openhab = OpenHAB ( base_url ) # fetch all items items = openhab . fetch_all_items () sunset = items . get ( 'Sunset' ) print ( sunset
【文件预览】:
python-openhab-master
----.travis.yml(499B)
----README.rst(3KB)
----pyproject.toml(146B)
----docs()
--------api.rst(226B)
--------conf.py(4KB)
--------.gitignore(26B)
--------Makefile(607B)
--------index.rst(3KB)
----.pylintrc(14KB)
----test.py(1KB)
----.github()
--------workflows()
----tests()
--------test_basic.py(1KB)
--------__init__.py(0B)
----LICENSE(34KB)
----setup.cfg(2KB)
----test_groups.py(1KB)
----openhab()
--------py.typed(0B)
--------types.py(7KB)
--------client.py(8KB)
--------items.py(15KB)
--------__init__.py(98B)
----docker()
--------openhab_conf()
--------test_connectivity.py(424B)
----setup.py(38B)
----.gitignore(795B)
----.editorconfig(272B)

网友评论