helper library to easily implement assets2036
Project description
Assets2036Py
Helper lib for consuming and providing assets2036 assets.
Usage
from assets2036 import AssetManager
# for local MQTT broker with default port
mgr = AssetManager("localhost",1883,"my_namespace")
my_lamp = mgr.createAsset("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.12.tar.gz
(15.2 kB
view details)
Built Distribution
File details
Details for the file assets2036py-0.0.12.tar.gz
.
File metadata
- Download URL: assets2036py-0.0.12.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d63c2f6864a1687ea05b0f078e4b6e5d62b920f91cb1ebd044c1b46e6ca39f5a |
|
MD5 | 1ce3eea387ea80d4d2874b049dde564c |
|
BLAKE2b-256 | a4b260047c144b5b9d7f64f4f4c735b91da08ff04cdbd000c0d7d6cb66231308 |
File details
Details for the file assets2036py-0.0.12-py3-none-any.whl
.
File metadata
- Download URL: assets2036py-0.0.12-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31be39bad829a7a1e4f2d84d0a326be6c86d49b08253264dd864a5795ea4b4e3 |
|
MD5 | d298f7ce43470ac0f47e91d7c6d0862b |
|
BLAKE2b-256 | 3130ed92edea71872565ca0328d4b0cf3c0841929988749ed2d7a2b476d13d16 |