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.
Metadata
Release files for viso-sdk-python 1.1.26
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| viso_sdk_python-1.1.26.tar.gz | 2.4 MB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| viso_sdk_python-1.1.26-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.17+ x86-64 | Details |
| viso_sdk_python-1.1.26-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.17+ x86-64 | Details |
| viso_sdk_python-1.1.26-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.17+ x86-64 | Details |
Total release size: 44.4 MB
Release files / viso_sdk_python-1.1.26.tar.gz
| Download URL | viso_sdk_python-1.1.26.tar.gz |
|---|---|
| Size | 2.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72107a0face70a758970fee9a178862f0bd6d7c9b8ca0276ea354bdf90828755
|
|
BLAKE2b-256 checksum How to use checksums |
709934eeba42cdb1d4f563b74c0ca50ea8ee4607c6bb50287cd7228b5123c919
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / viso_sdk_python-1.1.26-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | viso_sdk_python-1.1.26-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 14.4 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
23a0a0bbe77cc32c7c68146c964c6baa494885af427dfd0f9734b25064b60324
|
|
BLAKE2b-256 checksum How to use checksums |
a9b53f4c680802203729e0c08ab506eb1144886e7ed229d6e687b5a44b80f4ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / viso_sdk_python-1.1.26-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | viso_sdk_python-1.1.26-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 14.1 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
d1ee0a6c5d7845baae77f402c98ecfdaa230d20f2da6335302286afcf06a4867
|
|
BLAKE2b-256 checksum How to use checksums |
76c3e85aa52a2b6f34247fc93ceb961ae5bf80749010102f4a741cf6babc0b03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / viso_sdk_python-1.1.26-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | viso_sdk_python-1.1.26-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 13.5 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
1360b420a67ce19e4a76333546eaa84e82caaa5019491009f5f91884f43f0e49
|
|
BLAKE2b-256 checksum How to use checksums |
fbbb4783b5f04c1dd4e154304698b49aba5bd09858aa976de42a3d8d04be1e27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|