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.2.tar.gz (288.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.2-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.2-cp313-cp313-macosx_11_0_universal2.whl (495.8 kB view details)

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

visio_schema-0.3.2-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.2-cp312-cp312-macosx_11_0_universal2.whl (495.8 kB view details)

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

visio_schema-0.3.2-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.2-cp311-cp311-macosx_11_0_universal2.whl (490.7 kB view details)

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

visio_schema-0.3.2-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.2-cp310-cp310-macosx_11_0_universal2.whl (487.8 kB view details)

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

File details

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

File metadata

  • Download URL: visio_schema-0.3.2.tar.gz
  • Upload date:
  • Size: 288.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.2.tar.gz
Algorithm Hash digest
SHA256 32ffec4764426f091892d16d711f5b712ceb47ffd0c6abea13810e78584ca63a
MD5 976376d62ff68b1c5e1b00b780decb3b
BLAKE2b-256 d4867edf726b937148408a0b287c5f5ff8253002f6485d3b43b265cd7e1fd0fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for visio_schema-0.3.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8e902032dec8913bb436b4f75e502c92f7a6a0cc6a2adbae9bf224fe53af7829
MD5 fe61aca58dbb8b890c33c875e9486975
BLAKE2b-256 ff9c1200c6ec6626a1605fab232c542a92bb711981ef9d83e984b96462558945

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for visio_schema-0.3.2-cp313-cp313-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 eabeb7c276503a878f8ca3e34a4d0db973a17b341828b25423122ce15ffb19d8
MD5 59df8617882829de2b9a1ab841b69e9d
BLAKE2b-256 d15649fe7fa73d13a7672d9689b2504c15468f3178aec76bafc59abfa3b00f6b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for visio_schema-0.3.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eefe5b824966d70080df571377d27147524f5887cfdd24e37e25414239384143
MD5 8410047a149960ce383568918cc9d7f5
BLAKE2b-256 fc838d1d4e790b2c8f21ceea7ad9705cdf7c84f40fe0e5f9d64e2c7b0b06c052

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for visio_schema-0.3.2-cp312-cp312-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 87b9a3e428a1d4d8919c2e0ad4c1490498cb1d7a18c159c9632bf93e4757d74a
MD5 e269df28ecadc40b8f7b6e7edb6d3ac7
BLAKE2b-256 7dc415928a541c2fbe0cf09ea0c9b252c995465b4146a3775bfc3f47568422f7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for visio_schema-0.3.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eaa30a8b61ac7b6e538343e1adbb7503653ef2d67fea24ea3abac2783f827f40
MD5 944ed129cfdc032594b309691f5b870a
BLAKE2b-256 7218897779b0377df446048798b55be7544b4af6d6355340fdd3bdc3a8aac071

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for visio_schema-0.3.2-cp311-cp311-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 0df12d51f216db4fd1fe5c2001e57b70d23b0c6a85c1c5d729e4909f07a07aae
MD5 21627116fab6aaded53c755d99a386d0
BLAKE2b-256 07b48d7cae1853397be9c8e386d0687eb154bcee2fa047cb1bb64e336541d407

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for visio_schema-0.3.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 94b38563a82d96011ef8905c4112eb09dc75f6c7abde0b40e996b1a8dbde7854
MD5 828efd955c29f3ff4c2812b4d1b5a88b
BLAKE2b-256 21312a42b07d0e82eb43f071eceaae12bd641af9d5f885ae9093d43e88cfbb7a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for visio_schema-0.3.2-cp310-cp310-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 570d702ac1194f3ff730bd36645aa045c226255ecbac8892026f8c80297d6c38
MD5 2d2803497ff25f7ce5f470b71332ff2c
BLAKE2b-256 b0aaf91921ecf5f6de4e354b9f0b3a029a2e7112dbebcb40ac14681c74ede1fa

See more details on using hashes here.

Provenance

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