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.14.tar.gz
(15.3 kB
view details)
Built Distribution
File details
Details for the file assets2036py-0.0.14.tar.gz
.
File metadata
- Download URL: assets2036py-0.0.14.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d863b16d9079a70a02e7c550fd300f094ab4f893abeea4c0cea6f10b5d8dfe6c |
|
MD5 | 5bce9c8c54332a8b158de9bcf8685689 |
|
BLAKE2b-256 | 7bc5da7c380da05bc3d4bf5eca1e8d293ec6c78dab6be9dd48abbfd04d2eaa3f |
File details
Details for the file assets2036py-0.0.14-py3-none-any.whl
.
File metadata
- Download URL: assets2036py-0.0.14-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77a3e3499e8af0051cc7390b02e54aa1e96735d3b9c6464b404bee577d9aa43c |
|
MD5 | a42b6157d5fbae259e4bd7d924f27986 |
|
BLAKE2b-256 | d6cde0f12be48a28c35193a44242888bcda9fc4b3c511a3dd794974a58d55d28 |