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.18.tar.gz (2.3 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.18-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (11.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

viso_sdk_python-1.1.18-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

viso_sdk_python-1.1.18-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

viso_sdk_python-1.1.18-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.4 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

viso_sdk_python-1.1.18-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.7 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: viso_sdk_python-1.1.18.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

Hashes for viso_sdk_python-1.1.18.tar.gz
Algorithm Hash digest
SHA256 08304d8d022ef968bd24318c2bd4a2f99b44b9106be7964b78aeeda5ed90f70f
MD5 c5664907161574e0f8804a1bb353a690
BLAKE2b-256 2ddddf9663c978b2932b66f21e2966d90060b63a0b455388c1d2f6279189675c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for viso_sdk_python-1.1.18-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 9500ec1f80cdcab612022a382ef9568c636f3fd7d87f8544bfbe1d4fd0e53055
MD5 b4052ae0edf49c26aaaa0434f644cbd2
BLAKE2b-256 22d71b0f19ec927940df6576de1b9024bd7465fdf72877aa72a8c601e192e293

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for viso_sdk_python-1.1.18-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 fc6318240bc2f347e27647206d0870014d317a7ec6870b60ff010bdf7c566cfb
MD5 df075452e4df7ec8b5995d2a8c137573
BLAKE2b-256 32c104e0554c3a8952d4ed382cd4d8f5e95d8b16cc659f15ee10a247d41d2d2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for viso_sdk_python-1.1.18-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0d509028b2e636a12d8aa8d13d1502437d838df72ab32f89dc6aac84f2f4c5ee
MD5 0233ad62a72837e52a5cd513c2ebf3f3
BLAKE2b-256 cb374f5b4e3610dbc0e1121006f81859c1e579783dc1590f5f21845f24d2c799

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for viso_sdk_python-1.1.18-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0e4cac74a40e02bb256bc4ec221250bc54611ba9742bc623283b49485114676b
MD5 9af1b54d4b15c65c82a2a52a79710bbb
BLAKE2b-256 afa0682f6d0804b97b940d682b5fb2e55a4b16cc0ba508779a660dbf3c8746da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: viso_sdk_python-1.1.18-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 8.7 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.18-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9ffd102959e5e6ea022f67822a39bfd0ea9b5dfeb51d5b9597d92fadb800016b
MD5 603ac95f379d526daeb71bee8b4ef795
BLAKE2b-256 63d7fdf244b0bc7c9ba2fcf94d574604c83c6b49c2d8ba0d77fb35908c05d1f5

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