Skip to main content

sapient-pydantic

SAPIENT (BSI Flex 335 v2.0) messages as hand-written pydantic models: idiomatic construction with real, correctly-typed protobuf enums, ICD-aware validation (UUID/ULID formats at construction; mandatory-field checks at conversion), and bidirectional conversion to/from the google-protobuf classes shipped by sapient-proto (pulled in automatically).

from sapient_msg_pydantic.bsi_flex_335_v2_0.registration import Registration

reg = Registration(name="radar-1")
pb = reg.to_pb2()                     # model -> google-protobuf (ICD-checked)
back = Registration.from_pb2(pb)      # google-protobuf -> model (validated)

See the repository for details and licensing (proto definitions are Dstl (c) Crown Copyright 2024, implementing BSI Flex 335 © The British Standards Institution).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sapient_pydantic-0.1.0.tar.gz (38.7 kB view details)

Uploaded Source

Built Distribution

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

sapient_pydantic-0.1.0-py3-none-any.whl (36.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sapient_pydantic-0.1.0.tar.gz
  • Upload date:
  • Size: 38.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sapient_pydantic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a318af9078a260cde4b34832cbdbc8033db724e37aa242aebfafc12db295bacb
MD5 f94f31586fc21e2f2b996b8c914c1657
BLAKE2b-256 c1c5cef1042ae4849de48d6436e200115bbe2f1bbc15a11bd135f49f42425ab7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sapient_pydantic-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 36.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sapient_pydantic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5ea31dbfb579d334a2b9a5ddcc60c58e08a464bbcf311b156ef3a3216d156e7
MD5 0e9f9c7a16fb5684fe36c2de4986bdad
BLAKE2b-256 890cc0f011107f7168da8fc28c96a11033d168eba51419f2c6f63a1013fe3521

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page