Pixilab
Home › Companies › Show HN launch › Bydantic – Pydantic-style bitfields for Python

Bydantic – Pydantic-style bitfields for Python

Show HN: Bydantic – Pydantic-style bitfields for Python

Bydantic – Pydantic-style bitfields for Python operates in show hn launch.

Profile

Hi HN! I’d like to share Bydantic, a Python library for declaratively defining bitfields using Python type hints and dataclass-like field types. It automatically handles serialization and deserialization, so you can focus on structure, not boilerplate.I built Bydantic while reverse-engineering the Bluetooth protocol used by a family of inexpensive HT radios [1]. The protocol was messy and complex, and I quickly got tired of writing ad hoc parsing and packing code. What I really wanted was something like Pydantic—but for binary data. So I made this!Finding the right balance between expressiveness and type safety was a big challenge, especially with the limits of Python’s type hinting system.

Bydantic – Pydantic-style bitfields for Python is positioned in show hn launch, a segment that rewards a clear, focused offering.

It is recorded at the Show HN launch stage.

SectorShow HN launch
StageShow HN launch

Website: kylehusmann.com/bydantic

Browse related

Contact details and direct channels are available to signed-in members.
Create a free account