Skip to main content

Python protobuf bindings and framing helpers for SAPIENT / BSI Flex 335

Project description

sapient-py

Python protobuf bindings and framing helpers for SAPIENT / BSI Flex 335.

This package ships checked-in Python modules generated from the SAPIENT schema source and a small framing helper layer for stream transport.

The generated modules live under sapient_msg, while the framing helpers live under sapient_py.

Usage

from sapient_msg.bsi_flex_335_v2_0 import sapient_message_pb2
from sapient_py.framing import encode_frame, decode_frame

message = sapient_message_pb2.SapientMessage()
message.node_id = "550e8400-e29b-41d4-a716-446655440000"

frame = encode_frame(message)
decoded = decode_frame(frame, sapient_message_pb2.SapientMessage)

Framing

The framing convention matches the Rust crate:

  • 4-byte unsigned little-endian payload length
  • followed by the protobuf-encoded SapientMessage bytes

Licensing

This package is licensed under either MIT or Apache-2.0, at your option.

The SAPIENT .proto schema source from which these bindings were generated is derived from the DSTL SAPIENT-Proto-Files repository and is separately attributed to DSTL under Apache License 2.0.

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

sapient_py-0.1.0.tar.gz (33.4 kB view details)

Uploaded Source

Built Distribution

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

sapient_py-0.1.0-py3-none-any.whl (62.0 kB view details)

Uploaded Python 3

File details

Details for the file sapient_py-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for sapient_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 de28a74742c276afceaf9995c56e01075f8966872180990ecff5b9e2b20ed4d2
MD5 477942b2d21717b71cfa43066b09e6b4
BLAKE2b-256 12480198bdf3bf8f7f3787921012303a3c7104a912a0867b3f7532b100a4b3dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for sapient_py-0.1.0.tar.gz:

Publisher: release.yml on tom-mann-ironclad/sapient-bindings

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

File details

Details for the file sapient_py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sapient_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 62.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sapient_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f197cda6802948a22df291df29462e08dc5169fea738e50fba06b9aa8aca55a
MD5 c28c1b2ccc88546e622daec20e0de678
BLAKE2b-256 5f09053df54cb595f81da444120abafc7092140368a8bba75521f6c03fcf9af5

See more details on using hashes here.

Provenance

The following attestation bundles were made for sapient_py-0.1.0-py3-none-any.whl:

Publisher: release.yml on tom-mann-ironclad/sapient-bindings

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