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.7.tar.gz
(24.4 kB
view details)
Built Distribution
File details
Details for the file assets2036py-0.1.7.tar.gz
.
File metadata
- Download URL: assets2036py-0.1.7.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d6a1209028532c637005251b6c60d7534b2f34fe4e5fa91cd3fb691c83314d0 |
|
MD5 | a32bd8fce4452ef8fff907a1ef154ea6 |
|
BLAKE2b-256 | 540b5d07069bce3d15d0a26d1f590d0134d8be00435fec85debe5f9733ad94ef |
File details
Details for the file assets2036py-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: assets2036py-0.1.7-py3-none-any.whl
- Upload date:
- Size: 23.4 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 | 901070f0db806b34e8a473866447878cc70b5bc39ebd2cecbba934ba5ad29482 |
|
MD5 | 13115123ea4f83e117cb4075eb25c124 |
|
BLAKE2b-256 | 94eab823389f20d0dc357fdba502ae7bf2c78abc56bfd57187fd59f077460760 |