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.1.4.tar.gz
(24.3 kB
view details)
Built Distribution
File details
Details for the file assets2036py-0.1.4.tar.gz
.
File metadata
- Download URL: assets2036py-0.1.4.tar.gz
- Upload date:
- Size: 24.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 545042051a3b042e881a69dbe5acff77610fa8ef3d5c1546f603cda43aede6d9 |
|
MD5 | ca899f08e340532a8dd822bea6e9fc80 |
|
BLAKE2b-256 | fa4886cfe7de8e766fdbef1c6b1df79f8feea61ee93771a366ecfcb9d26019f5 |
File details
Details for the file assets2036py-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: assets2036py-0.1.4-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 800cb8e89a440999da1617da3eb1c0244271f40808867a81320a76da17e64b2a |
|
MD5 | 24690fa90f9b65bca2873bb7159b34c4 |
|
BLAKE2b-256 | d4669733fb8947ed2ba87e1b93d44ac522dc649e1d93c1c8c56343c2ee83bbcd |