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.6.tar.gz
(24.4 kB
view details)
Built Distribution
File details
Details for the file assets2036py-0.1.6.tar.gz
.
File metadata
- Download URL: assets2036py-0.1.6.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7078126f15fbc0648fb2a09dae1e74ca9b3666535f02ae95640c55633c4d2d87 |
|
MD5 | 449e934aec36a50417bf671b813ba0cf |
|
BLAKE2b-256 | eb7b6e987f58d41b45b4ad69883bd0ff00340bf472985909e5c04cd73b17bd14 |
File details
Details for the file assets2036py-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: assets2036py-0.1.6-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acb2c44d57395f46cd1267bd1feb907cadc05c190b9a354bc77ed89222dc51b4 |
|
MD5 | 8b59ee1c16be27df4ba96f2466a29397 |
|
BLAKE2b-256 | a496aca962a2c9a59bf200297cc6ad8ff326dbd9ee8541a5082e4c2c0447f2a0 |