Pure-Python decoder for EUROCONTROL ASTERIX surveillance data
Project description
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.
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 pyobelix-0.1.0.tar.gz.
File metadata
- Download URL: pyobelix-0.1.0.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc8d755011ee740c0e59b9ca910076cb959dd690cb854f0816a06a562f90f849
|
|
| MD5 |
19aa6823078e5b37bcd1c244ad9d1a92
|
|
| BLAKE2b-256 |
99be973ef5e58a4ff57cbcdc11c9db367787fcfa9b66e914d8e0985334cd5d3c
|
Provenance
The following attestation bundles were made for pyobelix-0.1.0.tar.gz:
Publisher:
release.yml on junzis/pyobelix
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyobelix-0.1.0.tar.gz -
Subject digest:
cc8d755011ee740c0e59b9ca910076cb959dd690cb854f0816a06a562f90f849 - Sigstore transparency entry: 1328224809
- Sigstore integration time:
-
Permalink:
junzis/pyobelix@d34289a777d40a3092bb530c7304926d2da29b49 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/junzis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d34289a777d40a3092bb530c7304926d2da29b49 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyobelix-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyobelix-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83d665048772dd54783d65f265491f8ab70d34545eb08612b61e28a1ebb3a06e
|
|
| MD5 |
2577ead038e22ad8112cdd9878d9238f
|
|
| BLAKE2b-256 |
75d416551433e687a35bd04767f0dcc074e66e397006c28edf3f3066c094cd6c
|
Provenance
The following attestation bundles were made for pyobelix-0.1.0-py3-none-any.whl:
Publisher:
release.yml on junzis/pyobelix
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyobelix-0.1.0-py3-none-any.whl -
Subject digest:
83d665048772dd54783d65f265491f8ab70d34545eb08612b61e28a1ebb3a06e - Sigstore transparency entry: 1328224823
- Sigstore integration time:
-
Permalink:
junzis/pyobelix@d34289a777d40a3092bb530c7304926d2da29b49 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/junzis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d34289a777d40a3092bb530c7304926d2da29b49 -
Trigger Event:
push
-
Statement type: