PyBinRPC
A lightweight Python 3 library that enable python libraries to interact with BinRPC backends.
Interoperability notes
Some BIN-RPC peers in the wild (e.g., CCU/CUxD stacks and clients based on hobbyquaker/binrpc) occasionally emit frames where the final double/float value appears truncated. In practice this happens when the 32-bit total length in the BIN header is smaller than the actual payload written, so the transport cuts the frame at the declared size. When this occurs in an event or system.multicall payload, the double’s 8-byte body may be shortened so only the 4-byte exponent is present and the 4-byte mantissa is missing.
To remain compatible with these devices, pybinrpc’s decoder is intentionally lenient:
- Doubles: if the exponent or mantissa is missing, the decoder returns
0.0and advances to the end of the buffer instead of raising. - Strings, binaries, integers, and booleans are decoded best-effort if the payload is shorter than declared.
- Arrays in some
system.multicallpayloads may declare length 0 yet still contain one struct element; pybinrpc treats this as a single-element array.
See tests tests/test_truncated_double.py and tests/test_incoming_event_payload.py for concrete real-world frames and the expected behavior.
Metadata
Release files for pybinrpc 2025.10.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pybinrpc-2025.10.1.tar.gz | 26.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pybinrpc-2025.10.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.5 kB
Release files / pybinrpc-2025.10.1.tar.gz
| Download URL | pybinrpc-2025.10.1.tar.gz |
|---|---|
| Size | 26.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c905263eb0f1531a53b0429416045ee5e66bb49aaf6aa5ab224e7f2ecde508b
|
|
BLAKE2b-256 checksum How to use checksums |
6793616ff7b6e62863f89c8b8aef8fcfa8e23f57b01c5ec5e63767c3db1a461c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / pybinrpc-2025.10.1-py3-none-any.whl
| Download URL | pybinrpc-2025.10.1-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbbf61f94ad4003887609907bc8e9953980e4612841138e20305266e52407fb9
|
|
BLAKE2b-256 checksum How to use checksums |
b54284dfa89573a1190f002798793f13547876fa08292391459cab29158160bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency log