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.1.tar.gz
(24.2 kB
view details)
Built Distribution
File details
Details for the file assets2036py-0.1.1.tar.gz
.
File metadata
- Download URL: assets2036py-0.1.1.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df1d1f2a7cfab0a42eb65c57f054b409f37ca2428e9a1080e75c9b32ae3d6ef8 |
|
MD5 | c6c1c7bc59fb141d24c1b77b87597d07 |
|
BLAKE2b-256 | 26acbd994a6c1044dac5108049beee71c2e0690f8e0727c26d3283a852465ca7 |
File details
Details for the file assets2036py-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: assets2036py-0.1.1-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca163f46ea95b3f05b378ab96402227b80509b5759bffab89d13fb0810b526bd |
|
MD5 | e111e9e4df4e0b8bbd2fdb22450f249a |
|
BLAKE2b-256 | 9bde4109cf51da53c5b9f5c6671e363c34280c9a3ae067197c5b13128a931d46 |