Skip to main content

Visio wire contract — generated protobuf bindings + the framing codec

Project description

visio-schema

The wire contract for the Visio sensor ecosystem: the generated protobuf message bindings plus a small, hand-written framing codec, packaged so you can read a live device or a recording with one pip install. It is the single source of truth for what Visio data looks like on the wire; the transport, bus, and recording stack live in a separate layer.

Imported as visio_schema. Full docs, the wire spec, and C++ sources are in the GitHub repository.

Install

pip install visio-schema

One install includes MCAP read/write (read_mcap / McapWriter) and the visio-display live viewer — no extras to choose. Released wheels (Linux manylinux_2_28 x86_64, macOS universal2, CPython 3.10–3.13) bundle an optional native reader for higher throughput. If no wheel matches your platform, the sdist installs a pure-Python reader with identical behavior — only throughput differs.

Quickstart

from visio_schema import read_serial, read_mcap, message_class

# live device -> (Message, Channel) rows
for msg, ch in read_serial("/dev/ttyACM0"):
    cls = message_class(ch.schema_name)        # resolve the payload type
    payload = cls.FromString(msg.payload)
    print(ch.topic, payload)

# replay a recording
for msg, ch in read_mcap("run.mcap"):
    ...

Send commands and read replies with serial_endpoint(...) + command_message. See usage.md for the three end-to-end recipes.

visio-display viewer

The package installs a visio-display console command that reads a live device (serial or TCP) or replays an MCAP, and fans it out to a live Foxglove WebSocket, a live Rerun viewer, and/or an MCAP recording:

visio-display --serial /dev/ttyACM0 --rerun
visio-display --tcp my-device.local --foxglove
visio-display --mcap-in run.mcap --rerun
# also runnable as: python -m visio_schema.display

License

MIT — see LICENSE.

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

visio_schema-0.3.1.tar.gz (287.8 kB view details)

Uploaded Source

Built Distributions

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

visio_schema-0.3.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

visio_schema-0.3.1-cp313-cp313-macosx_11_0_universal2.whl (495.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ universal2 (ARM64, x86-64)

visio_schema-0.3.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

visio_schema-0.3.1-cp312-cp312-macosx_11_0_universal2.whl (495.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ universal2 (ARM64, x86-64)

visio_schema-0.3.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

visio_schema-0.3.1-cp311-cp311-macosx_11_0_universal2.whl (490.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ universal2 (ARM64, x86-64)

visio_schema-0.3.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

visio_schema-0.3.1-cp310-cp310-macosx_11_0_universal2.whl (487.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ universal2 (ARM64, x86-64)

File details

Details for the file visio_schema-0.3.1.tar.gz.

File metadata

  • Download URL: visio_schema-0.3.1.tar.gz
  • Upload date:
  • Size: 287.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for visio_schema-0.3.1.tar.gz
Algorithm Hash digest
SHA256 8e89ed162a53b0a27d3e7c8e6870a8ce44ac0f1a06cf51fa9f4b38edfe3c7e0c
MD5 6ca0a2080523b3a780658137d6080c81
BLAKE2b-256 27ec7151e9a68eac1fc699b9f5fa3f096ba7880577b2848c52528172526f20d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.1.tar.gz:

Publisher: wheels.yml on General-Intelligence-Labs/visio-schema

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file visio_schema-0.3.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for visio_schema-0.3.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cf8ed5f56097d6c80812f1ecb3fd5f30513db3e3de58a952848d0e602c215f8e
MD5 4fc9d12d9afad74284a6208d9eb0b748
BLAKE2b-256 2a3247c7d3df8dda1d1a4e9c02f39cc4d4efc716c3fa3a39dcf2316d18cb473c

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on General-Intelligence-Labs/visio-schema

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file visio_schema-0.3.1-cp313-cp313-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for visio_schema-0.3.1-cp313-cp313-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 a9913ea8f735d57a7026ea9aa199808349aad9f222c28fb9a2aef0e371c0c826
MD5 385227ee208989fb7ec9690e5171fb67
BLAKE2b-256 d0ec0a953db0450ca4b1bd3f424ad8425657daa6959d21572d537ec10bbfce34

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.1-cp313-cp313-macosx_11_0_universal2.whl:

Publisher: wheels.yml on General-Intelligence-Labs/visio-schema

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file visio_schema-0.3.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for visio_schema-0.3.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8692c9b52818b52cf091db9f6df82a13b0b7b33a584d7b2a0368c5bde8418aaf
MD5 168e67d0e60270327c9bfd12c473463a
BLAKE2b-256 c7eed6ae237ff0791e2e34a83331ed7d651ee01937331de5183af397947c2ad6

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on General-Intelligence-Labs/visio-schema

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file visio_schema-0.3.1-cp312-cp312-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for visio_schema-0.3.1-cp312-cp312-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 d0f2ee1fffa4659eb3355fb0698368de64648e9b8cce932faf5225e529595eae
MD5 0625a7810eaa2ecb752ef85682ddef27
BLAKE2b-256 3ca15173533b9b7f0186295e9dbc93dd9d02bec00ceacd2dc0e180c609c4c42d

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.1-cp312-cp312-macosx_11_0_universal2.whl:

Publisher: wheels.yml on General-Intelligence-Labs/visio-schema

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file visio_schema-0.3.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for visio_schema-0.3.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c05936c8286075f0c564b3805a0fff4c45c9f8c63f6b49740fbf60ac18f6d76f
MD5 6a2bec73ce99dd22c1f7d2d9192e3a7a
BLAKE2b-256 a2b881df59541a46b5cb8764b1f07c9f59b54fe426ca5c2232a4ad2d25deefa0

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on General-Intelligence-Labs/visio-schema

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file visio_schema-0.3.1-cp311-cp311-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for visio_schema-0.3.1-cp311-cp311-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 759ab287f77e4f6065da81c332d0a195753fcb97234a115f1ec4317160e484ec
MD5 8c0d21295e96bf6bf52e9d9b0aba856d
BLAKE2b-256 7e658732c008b3fa89c653025694e68f0fd8fef21e7cb0002e5a5f5d06864bb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.1-cp311-cp311-macosx_11_0_universal2.whl:

Publisher: wheels.yml on General-Intelligence-Labs/visio-schema

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file visio_schema-0.3.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for visio_schema-0.3.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6e66c1a083a925f90e98d692d28007dcbd2bb44a466c2319e86ab64b2d50b523
MD5 0487f995c85f99b1f32aa659f9d57075
BLAKE2b-256 308cf1a85dfebad68d3f1bd43939fb725bc2604f0bbc6f4e984b07c10a22bc6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on General-Intelligence-Labs/visio-schema

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file visio_schema-0.3.1-cp310-cp310-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for visio_schema-0.3.1-cp310-cp310-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 aa1d07fbac166094ca81d7099cf9d5219130e5d62220d68c852f66aa11c22520
MD5 e8b190ad281357a5fb08a7004f7bd4f4
BLAKE2b-256 7181a134eba6ed06aae364fa61724985d4f426ae5d77031855992bddc048d764

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.1-cp310-cp310-macosx_11_0_universal2.whl:

Publisher: wheels.yml on General-Intelligence-Labs/visio-schema

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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