Skip to main content

pyixblue

PyPI version Python versions Docs License: MIT

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

From PyPI:

pip install pyixblue

For development, from a checkout (installs the package in editable mode along with the test dependencies):

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.3

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.3
File Size Uploaded Provenance Actions
pyixblue-0.9.3.tar.gz 69.9 kB With provenance Details for pyixblue-0.9.3.tar.gz

Built distribution (wheel)

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

Total release size: 83.0 kB

Release files / pyixblue-0.9.3.tar.gz

Download URL pyixblue-0.9.3.tar.gz
Size 69.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e0893404d557db84c5a0e9b1c3023d96980940ba3df0c47145c5fd5784e17ee9
BLAKE2b-256 checksum
How to use checksums
7d9a5b114d8434a86c56d140bbe784e9597541fedce5a1ecfff501e5aaa7cda1
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 7, 2026.

Transparency log

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

Download URL pyixblue-0.9.3-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e6e6f9e41c2f24029d3d3b075875c0c30b33ce6f3c19c5d9c2c3fe490242334
BLAKE2b-256 checksum
How to use checksums
05d5e838e71960a1448e3b5b73d654dd31d0b4a91020ffbc94c79d06236b2044
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 7, 2026.

Transparency log

Security for pyixblue 0.9.3

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.3.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 7, 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