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.0.tar.gz (273.0 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.0-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.0-cp313-cp313-macosx_11_0_universal2.whl (484.7 kB view details)

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

visio_schema-0.3.0-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.0-cp312-cp312-macosx_11_0_universal2.whl (484.7 kB view details)

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

visio_schema-0.3.0-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.0-cp311-cp311-macosx_11_0_universal2.whl (479.6 kB view details)

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

visio_schema-0.3.0-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.0-cp310-cp310-macosx_11_0_universal2.whl (476.8 kB view details)

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

File details

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

File metadata

  • Download URL: visio_schema-0.3.0.tar.gz
  • Upload date:
  • Size: 273.0 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.0.tar.gz
Algorithm Hash digest
SHA256 086cfbb28600ea80249774120e3ac1caea9293bb04b9e2d7379c5408db63c6eb
MD5 27e390b61e3909d83b7e1db802a21f73
BLAKE2b-256 53b9dd9fc820fa5d39449f5fe474a8de87b6b673c1873a24e0dfae49e0a4312d

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.0.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.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for visio_schema-0.3.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d577743c89344e6dcef468adbdf8526f3f4d4b38645521c06dd026b36a7feb03
MD5 3a61ed41b22ea7e2520d844ae9636e1b
BLAKE2b-256 7f6dc4fa94f0f80b11f06277cfb54641b8ff3a3cfc8c128bfc54884d903030da

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.0-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.0-cp313-cp313-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for visio_schema-0.3.0-cp313-cp313-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 f871715e5105a8df90f9194c5ff4f91a5d4590ebeb4d127e4b8053956cbe1376
MD5 8e215543bdfd7c976e39b6c34d731b7a
BLAKE2b-256 037e1edf4395ffb7fd960123aaf04366a30fa4fc31a339a79e8cb825a62c1c5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.0-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.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for visio_schema-0.3.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 645e61127cfa3025522d8f8682f03d0cbe80aa47cb03ef95de1a560bc021f484
MD5 c0172d1255aba3cdda94eba149f2550b
BLAKE2b-256 e938b21511d503bf52c028574e0a502e3189e6dc2bdd61ee2b994eaeb3f2a5b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.0-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.0-cp312-cp312-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for visio_schema-0.3.0-cp312-cp312-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 d0ec68485ec5fc2c5a3cbf41274acb22c0f0c0323db3c849e8b070f88da0712f
MD5 90665a3f43af03b3c26ef1a8fe86c5a4
BLAKE2b-256 f2c4688b12dcdeea47e589296e3f87bfcfc32ebacf10c26ec137aa4bb475e2c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.0-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.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for visio_schema-0.3.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4afe206ac3b70bd09e272038a074f560af705db5b70086b136122d446bbc49d6
MD5 ca1b8b463e4acfc122d0d1312cff9bc1
BLAKE2b-256 b3bd061c021c8854b5a43214631804e86a01943de462d56937d34fbe296303fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.0-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.0-cp311-cp311-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for visio_schema-0.3.0-cp311-cp311-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 ffe23813956d9d29f19dc12fcb621b231113ac809b7d36638fe348bb5edb75b4
MD5 b0ce892e828fc1ff5551a231a86fec81
BLAKE2b-256 2e25f17f944524876e7642d0c823da41ad87cd6529f4bb9ef61f2f84e6c8ad0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.0-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.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for visio_schema-0.3.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c17194734432a35173212bb96ac8fa6e8fb873c13673233fad28a58d6741ff50
MD5 098f9a181c8caf86409f08a414c880e9
BLAKE2b-256 6582a1fcde2774a31307873bd5504f9a9e6f5721228e04c5fa337ea006f8d49d

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.0-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.0-cp310-cp310-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for visio_schema-0.3.0-cp310-cp310-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 9449f3c30f0cce17af33d6b2fe2be158dbeec9f43d6abef3186e909519804cfd
MD5 ee5d03a27c2e386a73cc3260b24027de
BLAKE2b-256 661fc510842883caa6ac78b2561702057993f1a84f38951807757b008232da07

See more details on using hashes here.

Provenance

The following attestation bundles were made for visio_schema-0.3.0-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