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.27
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.27.tar.gz | 2.5 MB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| viso_sdk_python-1.1.27-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.27-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.27-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: 46.5 MB
Release files / viso_sdk_python-1.1.27.tar.gz
| Download URL | viso_sdk_python-1.1.27.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
066e0360452ac94143c2e80cb21a95348017b42d472ddbb528f0ca2377488c1e
|
|
BLAKE2b-256 checksum How to use checksums |
74d6d3df5370b36e3cf536dfca9ee493923c1b653f209283966fbc0bdfbbb9b4
|
| 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.27-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | viso_sdk_python-1.1.27-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 15.0 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
578036c355fb761a4c30153d8eede8cae15ae2dcd189139f260d6b634dbab90a
|
|
BLAKE2b-256 checksum How to use checksums |
2aaea29cacaeccd968374a328c058f3deb25def53c1fb6ad1c9b079a84c9ec13
|
| 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.27-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | viso_sdk_python-1.1.27-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 14.8 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
367db5f49796e368ee21a12a9a946a20f7a4b3133856894023e6191ff0d30b0c
|
|
BLAKE2b-256 checksum How to use checksums |
e880bd3a35eed91fa43eeecf9305478d3551a278d3a1bde86a50a402d5e85a9a
|
| 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.27-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | viso_sdk_python-1.1.27-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 14.2 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
02d935de1e90326c705db2e47e335ff6e2379780c8f87e6d1e77e2a4843b121d
|
|
BLAKE2b-256 checksum How to use checksums |
3bd9f336a0945b0dd9209c40d5ecf77b62fb67a7d3dbf21020dec262f1ab6947
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|