pyobelix
Pure-Python decoder for EUROCONTROL ASTERIX surveillance data. Sibling library to pyModeS for Mode-S / ADS-B decoding.
Install
pip install "pyobelix>=0.1"
Python 3.11+ required. Zero runtime dependencies.
Quick start
from pyobelix import iter_records
for rec in iter_records("path/to/asterix.bin"):
if rec.cat == 48 and "rho" in rec:
print(rec["icao"], rec["rho"], rec["theta"])
Accepts file paths, bytes/bytearray, or any BinaryIO stream.
Streaming from a socket
from pyobelix import AsterixDecoder
dec = AsterixDecoder()
while True:
chunk = sock.recv(4096)
if not chunk:
break
dec.feed(chunk)
for rec in dec.records():
process(rec)
Decoding Mode-S Comm-B (MB) with pyModeS
pyobelix emits CAT 048 I/250 MB payloads as opaque 14-char uppercase hex strings. To decode the Mode-S fields:
import pyModeS
from pyobelix import iter_records
for rec in iter_records(path):
if rec.cat != 48:
continue
for mb in rec.get("mode_s_mb", []):
decoded = pyModeS.Message.from_payload(
mb["mb"], df=20, icao=rec["icao"]
).decode()
print(decoded)
See docs/pymodes-bridge.md for the full recipe.
Supported categories (v.0.1.0)
- CAT 048 — Monoradar Target Reports (EUROCONTROL-SPEC-0149-4 Ed. 1.32)
- CAT 034 — Monoradar Service Messages (EUROCONTROL-SPEC-0149-2B Ed. 1.29)
Additional categories (021, 062, …) planned for v.0.2.0. See the design spec for the full roadmap.
License
MIT. See LICENSE.
Metadata
Release files for pyobelix 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyobelix-0.1.0.tar.gz | 17.6 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyobelix-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.4 kB
Release files / pyobelix-0.1.0.tar.gz
| Download URL | pyobelix-0.1.0.tar.gz |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc8d755011ee740c0e59b9ca910076cb959dd690cb854f0816a06a562f90f849
|
|
BLAKE2b-256 checksum How to use checksums |
99be973ef5e58a4ff57cbcdc11c9db367787fcfa9b66e914d8e0985334cd5d3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 17, 2026.
Transparency logRelease files / pyobelix-0.1.0-py3-none-any.whl
| Download URL | pyobelix-0.1.0-py3-none-any.whl |
|---|---|
| Size | 20.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83d665048772dd54783d65f265491f8ab70d34545eb08612b61e28a1ebb3a06e
|
|
BLAKE2b-256 checksum How to use checksums |
75d416551433e687a35bd04767f0dcc074e66e397006c28edf3f3066c094cd6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 17, 2026.
Transparency logSecurity for pyobelix 0.1.0
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pyobelix-0.1.0.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 Apr 17, 2026.
Transparency logA 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.