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.18.tar.gz
(21.4 kB
view details)
Built Distribution
File details
Details for the file assets2036py-0.0.18.tar.gz
.
File metadata
- Download URL: assets2036py-0.0.18.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c95c4a0eb10cc6b3f2e2cb93ceec6f1bf56b7c508c960379231315a17d614ce |
|
MD5 | 38d55dbe5449ed32077becd5b4cd5933 |
|
BLAKE2b-256 | 17664ed4d91504d57929afe4d61f4c148b13ae71d5754e86397be827f4a8659d |
File details
Details for the file assets2036py-0.0.18-py3-none-any.whl
.
File metadata
- Download URL: assets2036py-0.0.18-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.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d22832b10cb0d0d56f617cc521b90e605c0e3127c63e2306f494827d611d2b5 |
|
MD5 | 3a070a1bf8ee435feb9d97a81f39e4a4 |
|
BLAKE2b-256 | 9b5c7ea4342173e39fa7aafec32a79e9f0de9860f2f6731cc44ab5b37584bbbb |