helper library to easily implement assets2036
Project description
Assets2036Py
Helper lib for consuming and providing assets2036 assets.
Usage
from assets2036py import AssetManager
# for local MQTT broker with default port
mgr = AssetManager("localhost",1883,"my_namespace","endpoint_name")
my_lamp = mgr.create_asset("my_lamp","https://raw.githubusercontent.com/boschresearch/assets2036-submodels/master/light.json")
my_lamp.light.light_on.value = True
For further examples take a look at the tests.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
assets2036py-0.1.10.tar.gz
(25.4 kB
view details)
Built Distribution
File details
Details for the file assets2036py-0.1.10.tar.gz
.
File metadata
- Download URL: assets2036py-0.1.10.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37e85fa34601e17c8d49e51d6aed4583f71d8e652f4f4b0af792ce96dbd0bb17 |
|
MD5 | 86984fe612aee64a33368af9a538697b |
|
BLAKE2b-256 | 9d5f4da4a209283c0b415ca7a888276d9e63506458c352db3acdf9b1614ff024 |
File details
Details for the file assets2036py-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: assets2036py-0.1.10-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21e662f42893af20c0a0e7168919d6413738d1ef1b325ec6f1e715613b4aa275 |
|
MD5 | a8173b7daf0a9b1843a36016b5cf510c |
|
BLAKE2b-256 | 3ac07381238b9d9b43532def302df50f164f89d69e8db6ece927622d7a547baa |