Skip to main content

depz-sensor-sdk

Python SDK for the DEPZ USB sensor line — five USB CDC-ACM sensors that speak one shared framed protocol:

  • HC-SR04 — ultrasonic distance
  • VL53L4CD — single-zone Time-of-Flight to ~1.3 m (host runs the ST ULD)
  • VL53L8CX — 8×8 multizone Time-of-Flight, the base ToF imager (host runs the ST ULD)
  • VL53L8CH — the VL53L8CX superset, adding Compact-Network-Histogram output
  • BNO086 — 9-axis IMU (host runs the SH-2 stack)

Sync API with a background reader thread: open a device, configure it, consume a stream of decoded, timestamped results. A TypeScript SDK (@depz/sensor-sdk) mirrors this one byte-for-byte via shared golden test vectors.

Install

pip install depz-sensor-sdk

Linux: your user needs serial access (group dialout).

Quick start

from depz_sensor_sdk import open_device
from depz_sensor_sdk.vl53l8 import Vl53l8cx, RESOLUTION_8X8

dev = open_device()                    # first DEPZ sensor by USB id; raises if none
if isinstance(dev, Vl53l8cx):
    dev.init(progress=print)           # ~25 s: downloads the sensor firmware
    dev.set_resolution(RESOLUTION_8X8)
    dev.set_ranging_frequency_hz(15)   # must be >= 2 Hz
    dev.start_ranging()
    for frame in dev.frames():
        print(frame.grid())            # 8×8 numpy array of mm

open_device() finds the device by USB VID/PID; pass a serial (open_device(serial="...")), an index, or an explicit port. depz-sensor list shows what's connected.

See docs/guide.md for the full guide and docs/api.md for the API reference.

License

MIT. Bundled VL53L8 sensor-firmware blobs are © STMicroelectronics (BSD-3-Clause); see NOTICE.

Open source — source and issue tracker: https://github.com/depz-ai/depz-sensor-sdk.

Metadata

Release files for depz-sensor-sdk 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for depz-sensor-sdk 0.2.2
File Size Uploaded
depz_sensor_sdk-0.2.2.tar.gz 260.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for depz-sensor-sdk 0.2.2
File Interpreter ABI Platform
depz_sensor_sdk-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 508.5 kB

Release files / depz_sensor_sdk-0.2.2.tar.gz

Download URL depz_sensor_sdk-0.2.2.tar.gz
Size 260.9 kB
Tags Source
SHA-256 checksum
How to use checksums
03b15ee7e33a964c996ba82bd9667309b4feb35bf28fc9567d21a671567f8849
BLAKE2b-256 checksum
How to use checksums
c21d92ce006b9a54a9f8493117ba7a03ea356f07a2542f2a952d4b475999643d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release files / depz_sensor_sdk-0.2.2-py3-none-any.whl

Download URL depz_sensor_sdk-0.2.2-py3-none-any.whl
Size 247.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be34a161c29b81c97fadd66574f0a16765a4223d381be7924984137dba48cb6b
BLAKE2b-256 checksum
How to use checksums
6091334f8f10b55db7c04673282f1ba2347e52adf78138cc550aaaf3a5c71dcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release history Release notifications | RSS feed

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page