Bit (and enum) oriented binary serialization library for Python and embedded systems
Project description
BitSchema
BitSchema is a Python library for modeling, parsing, and serializing binary data at the bit and field level. It is ideal for embedded development and scenarios where you need to extract or organize small integers and bit groups from binary frames, such as CAN messages. The library lets you define data models that map directly to binary layouts, supporting bit, float, integer and enum fields, and provides easy serialization/deserialization.
Features
- Define data models that map directly to binary layouts, from single bits to multi-byte fields
- Parse small integers and bit groups from binary frames (e.g., CAN frames)
- Parse float32
- Support for integer fields, bit fields, and int-enums for command semantics
- Simple serialization and deserialization for binary data
Installation
pip install bitschema
Usage
See the examples directory for sample BitSchema models and usage demonstrations.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bitschema-0.0.1a1.tar.gz.
File metadata
- Download URL: bitschema-0.0.1a1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ea376166e664fb20aeeef06c32147df3ffe263c3ef3c36b2f1065a0bbf8a10b
|
|
| MD5 |
8d6a00eb402b251f7af7132ad2ad2b6c
|
|
| BLAKE2b-256 |
da6d08d1cad1f88a21faca00e7ae1f2d601f99a8a7fda50d4e902d13fa50b622
|
File details
Details for the file bitschema-0.0.1a1-py3-none-any.whl.
File metadata
- Download URL: bitschema-0.0.1a1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43f91a4f8573b9d623082f84518eb082cfc3172ae930f5e88a9835f81d1e4665
|
|
| MD5 |
42be7f48a07bd286dbe9d72f36f1c771
|
|
| BLAKE2b-256 |
ac4d07bc7dbdc894bd7eb9149f5c5493f73cb1bef1ffff1f69e203ea09071680
|