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.24.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.24-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (13.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

viso_sdk_python-1.1.24-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (13.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

viso_sdk_python-1.1.24-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

viso_sdk_python-1.1.24-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

viso_sdk_python-1.1.24-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.2 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

File details

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

File metadata

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

File hashes

Hashes for viso_sdk_python-1.1.24.tar.gz
Algorithm Hash digest
SHA256 8932a78a8c7a5661826a3612495c6ba26e18d792a9ddeec8fea1fe5e4ee046b8
MD5 9baf1a7309f7cee5b9c8d239ac5c1642
BLAKE2b-256 c0d2e7f51959d6ea52aab2b80710fdd885bcb2f0f647a1ad72812d99dbe1eb1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for viso_sdk_python-1.1.24-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 7237b6b56cee9fe3f06807ead0c1c20a6a4b573bc296e99e08891359883ce3c1
MD5 893c5e743082d5a646376ca9884cd3dd
BLAKE2b-256 038990b448325a827354d57c54a0e6416e8e11e940e256ae4558675ea152d824

See more details on using hashes here.

File details

Details for the file viso_sdk_python-1.1.24-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for viso_sdk_python-1.1.24-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 7f8b311d989627d1b57b208a83f7229bd1c249102a7e17062417dbc13d75fd83
MD5 ffb3a7364fd7431b5fda53061efc42a6
BLAKE2b-256 c49f68d47c74b73906bb2f93a66ce5765be6a310340c0cc151ee28762d0feb60

See more details on using hashes here.

File details

Details for the file viso_sdk_python-1.1.24-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for viso_sdk_python-1.1.24-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 71de09e2b12f1ef24648fb53217ae412a2b471a0223154ee2ba023c0def8ea54
MD5 34ac85c865e99731969d33abf87d354e
BLAKE2b-256 a27a04d3d188071dce8de12432f9713676f56a4e416d01c6d551bd630c976938

See more details on using hashes here.

File details

Details for the file viso_sdk_python-1.1.24-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for viso_sdk_python-1.1.24-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b2eac75198d0e104e3a7aecf3b3edcfc64197b5480828035ac699a6aa5c74a5b
MD5 7f03ca75de645e660e5e8b9055f449d4
BLAKE2b-256 821e5c4c43f88e9bbc7dc04d2ce0dbbfc80876fef7f4fc0859e7e07efcda0068

See more details on using hashes here.

File details

Details for the file viso_sdk_python-1.1.24-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: viso_sdk_python-1.1.24-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 10.2 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

Hashes for viso_sdk_python-1.1.24-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b84a4f58bc9382990b72cb752cfdb0e956f9bc91ccd940d71b31b3e71dac233b
MD5 70a0d1c6fc4ff1920c549fed40e4aa65
BLAKE2b-256 844bac8680221658e4117a4c0b91e8a83697bc290d845770da52ac7994fc9ee8

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