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.2.tar.gz
(24.2 kB
view details)
Built Distribution
File details
Details for the file assets2036py-0.1.2.tar.gz
.
File metadata
- Download URL: assets2036py-0.1.2.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 | 99b44f6277ebd3b1a4883bbee9d70b4d718c4c271b44b9ea8f8bd8470da90ba4 |
|
MD5 | 6d9330501413209a7487835fae27574f |
|
BLAKE2b-256 | 89eeef6bf2a5ae83923525e09c1b24e7552db09d357f2d5dffd18af88268fe44 |
File details
Details for the file assets2036py-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: assets2036py-0.1.2-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 | b831184ae0bc097744750da2533912a523d8bfa08f759ba91965126a9681ca6b |
|
MD5 | 2a33e0f4f3dcf32af128f39d5f477e81 |
|
BLAKE2b-256 | f83d6c86a1b497de026171c120dbf3b6aec88392b7e9a845e5176e85ad73f584 |