Skip to main content

pyixblue

Python parser for the iXblue stdbin output protocol (versions 2 through 5).

stdbin is the binary navigation output of iXblue inertial systems. This package reassembles and decodes those frames. It does not open a socket or a serial port; pass in the bytes you receive over UDP, TCP, or serial.

The block layout and checksum follow the MIT-licensed ixblue_stdbin_decoder.

Install

pip install .

From a checkout, with the development tests:

uv sync

Usage

from pyixblue import StdBinDecoder

decoder = StdBinDecoder()
decoder.add_new_data(chunk)  # bytes-like; a chunk may be a partial frame
while decoder.parse_next_frame():  # False when more bytes are needed
    header = decoder.last_header
    if header.message_type == "nav":
        nav = decoder.last_nav  # missing blocks are None
        if nav.position is not None:
            print(nav.position.latitude_deg, nav.position.longitude_deg)
    else:
        payload = decoder.last_answer

parse_next_frame raises StdBinError when a frame is recognized but its protocol version or checksum is invalid. The decoder drops the bad version byte, or the whole frame after a bad checksum, so the next call can resync.

Navigation, extended-navigation, and external-sensor blocks are present only when their mask bit is set. INS algorithm and system status words are IntFlag values (1 << bit), so they compare equal to the raw integer:

from pyixblue.models import InsAlgorithmStatus1

if nav.ins_algorithm_status is not None:
    status = nav.ins_algorithm_status.status1
    if InsAlgorithmStatus1.NAVIGATION in status:
        print(hex(status))

Protocol

Supported output frames:

Kind Magic Versions
Navigation IX 2, 3, 4, 5
Answer AN 3, 4, 5

Multi-byte fields are big-endian. The checksum is the low 32 bits of the sum of every preceding byte, stored as a big-endian uint32.

Version 3 adds the extended-navigation mask. Versions 4 and 5 add the navigation-data size. The header also keeps the frame counter, which the reference C++ header discards.

License

MIT. Sample frames under tests/fixtures/ were converted from the ixblue_stdbin_decoder test logs (MIT, Copyright (c) 2019 iXblue SAS).

Metadata

Release files for pyixblue 0.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyixblue 0.9.1
File Size Uploaded Provenance Actions
pyixblue-0.9.1.tar.gz 26.0 kB With provenance Details for pyixblue-0.9.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyixblue 0.9.1
File Interpreter ABI Platform Actions
pyixblue-0.9.1-py3-none-any.whl Python 3 none any Details for pyixblue-0.9.1-py3-none-any.whl

Total release size: 38.7 kB

Release files / pyixblue-0.9.1.tar.gz

Download URL pyixblue-0.9.1.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ca8dd3b1036ce59460bd911f74c9afea356a8b7bfa01a5ce2e99f82e9e689741
BLAKE2b-256 checksum
How to use checksums
d59ef3d469c174b70a1df0710dc01bc12709bbd8e550a6a4fef81a2513e6b6f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 6, 2026.

Transparency log

Release files / pyixblue-0.9.1-py3-none-any.whl

Download URL pyixblue-0.9.1-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
952cb97749f1bc6386843dbbb5e0efd1a2bd732c18c9a22a01c26e051b797327
BLAKE2b-256 checksum
How to use checksums
8e66f9b2459b92ea687a4ca2bd585c64cf8ace57749453ea87b2afcf18b2291e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 6, 2026.

Transparency log

Security for pyixblue 0.9.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyixblue-0.9.1.tar.gz

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 Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page