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.19.tar.gz
(21.4 kB
view details)
Built Distribution
File details
Details for the file assets2036py-0.0.19.tar.gz
.
File metadata
- Download URL: assets2036py-0.0.19.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a1068996671f0aa2dfc8e8cbb8daad27142ae166fbd457fc1f5ba83a60162c1 |
|
MD5 | a0ed3078f6b5947f1f711bc81811c0b7 |
|
BLAKE2b-256 | 9f39dc2ac0dd5fdc2a791d96b6b5b0c970f910287c21e44813b15cdd768b2acf |
File details
Details for the file assets2036py-0.0.19-py3-none-any.whl
.
File metadata
- Download URL: assets2036py-0.0.19-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe54a9caa4df0e68951e24111c9d3d621de991a97143914c8b60e81cf2c53457 |
|
MD5 | 445e392507d771c0a43039174edf2821 |
|
BLAKE2b-256 | 502a845dd591898a1b54bf76730b8546c686f1faae01cc635c08250d0c75d936 |