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

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

viso_sdk_python-1.1.19-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (11.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

viso_sdk_python-1.1.19-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

viso_sdk_python-1.1.19-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.7 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

viso_sdk_python-1.1.19-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.9 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: viso_sdk_python-1.1.19.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.19.tar.gz
Algorithm Hash digest
SHA256 a347edafa60cf18bae255acea3a1937d1da1842a5375a25b82a16ea93f3be63e
MD5 88329f9001ca4ffdf13978ac9a66b22f
BLAKE2b-256 066daa75ac925b69bf8b2f9676b92f7a7ba2e05b89bef97d36fbaefd7937ecb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for viso_sdk_python-1.1.19-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2cd9901cf24597bc41ac4ceec665f87b279262fbf26d8283c356ddb6db72eeef
MD5 a2940f1ed5047b13e41d6337e00cca35
BLAKE2b-256 62e60637b395cc43917c99bf3c1f7bff3ff90dc96f3b9fc48f5c9f824756bff1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for viso_sdk_python-1.1.19-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 8122741163c897a93eeb5427dfa9812d8ede24a5d0b1b0fea59d92e35d21dc8c
MD5 679bffadb1b0cd9ae3c54522144dbd9d
BLAKE2b-256 c7e33d2fafd47090bdaab76a259841d25c32d4f5c2b73ae0128a92e55593a264

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for viso_sdk_python-1.1.19-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7fa442245ca90e7932b9bc1897d1290e6b4d7aa23748246dda47a1104be60d7a
MD5 260590cd95c67c39d32273bc596c5551
BLAKE2b-256 594211a396ee30178e49bae5b097b9e55f5c5cca9c0e1768d41da5c546e55efc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for viso_sdk_python-1.1.19-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 94ee4039a7c31bc5d7938aed60a090d0a06d9cb91b55b07c9f53fb4b4db1a844
MD5 23881faa9c71a49929e0e12fc7a1de7d
BLAKE2b-256 836ad9d252720772c2374ccba80fc8a912e0674e00490bd8fb1044aed6fce8ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: viso_sdk_python-1.1.19-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 8.9 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.19-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a4b2ad9548ce4dde84bb0f23668cadfd7883444fe637574180ebfff2227629d7
MD5 2ba0084e424a60d0b9519626a5db5331
BLAKE2b-256 33ffb94fecb0aa11b0b701e9ef5be7b8f381c2628b7bf8a03fd1c401be8e78a7

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