VisoSDK: A Python SDK for use in Viso containers
Project description
viso-sdk-python
viso-sdk-python is a Python SDK providing shared utilities for viso.ai edge containers. It covers logging, Redis/MQTT communication, model fetching, ROI handling, detection structures, and more.
Licensed under LGPLv3.
Requirements
- Python >= 3.6
- System library:
libmagic1(required by themodelmodule)
apt-get install libmagic1
Installation
pip install viso-sdk-python
Modules
| Module | Description |
|---|---|
viso_sdk.constants |
Shared constants and environment-driven configuration |
viso_sdk.model |
Model fetching, extraction, and type detection |
viso_sdk.logging |
Centralised logger factory |
viso_sdk.redis |
Redis stream wrapper and cleanup utilities |
viso_sdk.mqtt |
MQTT client wrapper |
viso_sdk.roi |
Region-of-interest helpers |
viso_sdk.detection |
Detection result structures |
viso_sdk.edge |
Edge device utilities |
viso_sdk.status |
Container status reporting |
viso_sdk.nodered |
Node-RED integration helpers |
Usage Examples
Redis Communication
from viso_sdk.redis import RedisWrapper, VisoData
# Initialize Redis wrapper
redis = RedisWrapper(host="localhost", port=6379)
# Write data
redis.write_data("my_key", {"status": "active"})
# Read data
data = redis.read_viso_data("my_key")
MQTT Messaging
from viso_sdk.mqtt import MqttWrapper
# Initialize MQTT client
mqtt = MqttWrapper()
# Publish message
mqtt.publish(topic="device/status", message='{"state": "online"}')
Logging
from viso_sdk.logging import get_logger
logger = get_logger("MyModule")
logger.info("Application started")
logger.error("An error occurred")
Contributing
Contributions are welcome! See CONTRIBUTING.md for development setup, testing guidelines, and CI pipeline information.
License
Licensed under LGPLv3.
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file viso_sdk_python-1.1.21.tar.gz.
File metadata
- Download URL: viso_sdk_python-1.1.21.tar.gz
- Upload date:
- Size: 2.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fa104843dfc624f1921955dc0000561dda042247860f3c5a4099256e80eee3b
|
|
| MD5 |
df5fb1795d913d430f40186aeb0d03e8
|
|
| BLAKE2b-256 |
ecd236f7758c63813794d466d0cbd2b95a82593266a6a5da66f51e9c83c27c50
|
File details
Details for the file viso_sdk_python-1.1.21-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.
File metadata
- Download URL: viso_sdk_python-1.1.21-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Upload date:
- Size: 11.5 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f239270d71bf6fc5d898e8778b7ade4b8f6d40f0fa1727b002634eace9b64fa
|
|
| MD5 |
7683c8b1c37969fd9deadbf46575f1f8
|
|
| BLAKE2b-256 |
86f82fc89593fcd02aa2352107409724b832052742ee1040266e61ea4bbd0131
|
File details
Details for the file viso_sdk_python-1.1.21-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.
File metadata
- Download URL: viso_sdk_python-1.1.21-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Upload date:
- Size: 11.4 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee083921c65ef8640eede9ca5872fe25f2669380a2dbe0e43ef81e33a608035c
|
|
| MD5 |
bb4f4d847f507a02ce7411c27ae3ac31
|
|
| BLAKE2b-256 |
7bbda0a02f8f6260fa35ba04dec7868ac8e0d56870c82a09ff57deac9c755d33
|
File details
Details for the file viso_sdk_python-1.1.21-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: viso_sdk_python-1.1.21-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 11.4 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eb32a104cc90b7394af5e3df3ce19e6e9c18d8b85683147cfef876adfa907d0
|
|
| MD5 |
a769cecc98fb608279851138fa08bb4d
|
|
| BLAKE2b-256 |
c5ef7db3d90463279c4e67cafc6803d4a4cf2d9c8150862d6be83f9b703a51c7
|
File details
Details for the file viso_sdk_python-1.1.21-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: viso_sdk_python-1.1.21-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 9.8 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f84536c22b40f5654a6555e9b50d081125e6457497e1225a2522951cb1abfc3
|
|
| MD5 |
e689840b0b4a403b6c638fe19f2f3bc7
|
|
| BLAKE2b-256 |
f47525f4e3d0dce5e91a21a0145e10df558acf4a267ba2d51671b045598b1557
|
File details
Details for the file viso_sdk_python-1.1.21-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: viso_sdk_python-1.1.21-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 9.0 MB
- Tags: CPython 3.6m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.10.0 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.20 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad13c7d77cb6674d01b95c659368b9ddfab8957e79946bb25ffd52f32af06610
|
|
| MD5 |
1cedcc528dcde8172d800b021c1df467
|
|
| BLAKE2b-256 |
e4e33bb8559221d3c6339a796a955646f6ecdda17896e85f357cea4cf5eaa9dd
|