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.0.15.tar.gz
(20.9 kB
view details)
Built Distribution
File details
Details for the file assets2036py-0.0.15.tar.gz
.
File metadata
- Download URL: assets2036py-0.0.15.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70dbab5e65ef91f29e6d7f96bb58c9e38d745b1b127aaba1ba0e4cf1c9f7142d |
|
MD5 | cf44d0c68ad87343546dfd3ee0b9518a |
|
BLAKE2b-256 | 178f9d5ac4f71d8929f355f03fcebdc75c1b41e93386ca638ebf50a3ed5732a3 |
File details
Details for the file assets2036py-0.0.15-py3-none-any.whl
.
File metadata
- Download URL: assets2036py-0.0.15-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bc99335f975242507fa1ddf7b706ca78c5036aed9b947a27cfe817ea6215280 |
|
MD5 | e38785b37121a4c51798c3fc33afa1bd |
|
BLAKE2b-256 | ee7c39ffa0e72b8260ad38d374a4ec6e101276c061d018bf4763c9fcf794bf93 |