Skip to main content

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 the model module)
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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

viso_sdk_python-1.1.25.tar.gz (2.4 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

viso_sdk_python-1.1.25-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (13.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

viso_sdk_python-1.1.25-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (13.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

viso_sdk_python-1.1.25-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (13.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

File details

Details for the file viso_sdk_python-1.1.25.tar.gz.

File metadata

  • Download URL: viso_sdk_python-1.1.25.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for viso_sdk_python-1.1.25.tar.gz
Algorithm Hash digest
SHA256 757029850681618af75d5c8220f619b2b8053a186cec305c5c6f4b92926117b6
MD5 afe1ac4bfb3d14b128e8ddecec70ff25
BLAKE2b-256 45782c78fa3dc6f2303bc86bade153c2a3017911950d2dee7e322f2587ce9c1a

See more details on using hashes here.

File details

Details for the file viso_sdk_python-1.1.25-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for viso_sdk_python-1.1.25-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0b59ca43d97950917fe23aaa82b87120abcc04e8a702662b3fe1ca75049a9ab1
MD5 2970006799a487033979681383aa9e29
BLAKE2b-256 1c5554ebfbfd71361745410efb86e89aeb4047de2aa5d22bc06d0eb364b3f250

See more details on using hashes here.

File details

Details for the file viso_sdk_python-1.1.25-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for viso_sdk_python-1.1.25-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 827e869561207712b6a029c064a0d8d741e3ad678bf07f2ad015ec8912398220
MD5 0eebf8c4f2dd6ab32de5dc4ffa96e513
BLAKE2b-256 69237dedda38b1d3f895ac0ff0e062acc8e598695d9d419be9cda9bed9a5b541

See more details on using hashes here.

File details

Details for the file viso_sdk_python-1.1.25-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for viso_sdk_python-1.1.25-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 6e7fe14365ef96418762eeca43bcc205cd0c3c87495425ef6a5449b3c72c97df
MD5 6be7ce4e10d0ed457176841173f39657
BLAKE2b-256 d0f7e9053b04ca4f2251154165ab5781b0eb85a8e8db89d387945515fd92d35d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page