python-aaronia
Python bindings for
sdr-aaronia-rs.
Stream IQ samples from Aaronia SPECTRAN V6 devices, through an
RTSA-Suite PRO HTTP server block or the native SDK, or play back
recorded .rtsa files, into NumPy or Apache Arrow.
- PyPI package:
python-aaronia· importable module:aaronia - Wheels: abi3, CPython ≥ 3.9, one wheel per OS and architecture, plus an sdist for other platforms. Building from the sdist requires a Rust toolchain.
- License: GPL-3.0-or-later
Install
pip install python-aaronia
From a checkout, which requires Rust and maturin:
cd python-aaronia
maturin develop --release
Quickstart
import aaronia
cfg = aaronia.AaroniaConfig()
cfg.http_base_url = "http://localhost:54664" # RTSA-Suite HTTP server block
cfg.center_freq = 2.44e9 # Hz
cfg.sample_rate = 15.36e6 # Hz
cfg.format = "F32" # wire format: F32, F16, or I16
src = aaronia.AaroniaSource()
src.start_streaming(cfg)
samples = src.read_samples_numpy(65536) # numpy complex64 array
batch = src.read_samples_arrow(65536) # pyarrow FixedSizeListArray of [re, im]
src.set_center_frequency(2.41e9) # live retune, no teardown
print(src.cumulative_drops(), src.take_overrun(), src.last_timestamp_ns())
src.stop_streaming()
File playback: set cfg.file_path = "capture.rtsa" instead of
http_base_url.
The quickstart covers configuring the RTSA-Suite HTTP Server block, which everything above depends on.
Configuration (AaroniaConfig)
Every field is readable and writable.
| Field | Meaning |
|---|---|
http_base_url |
RTSA-Suite HTTP server URL; pins the HTTP backend |
file_path |
Path to a recorded .rtsa file; pins the file backend |
device_serial |
Device selection for the native-SDK backend |
center_freq |
Center frequency, Hz |
sample_rate |
IQ sample rate, Hz (the Aaronia "span") |
reference_level |
Reference level, dBm |
format |
HTTP wire format: "F32", "F16" or "I16". I16 is the low-bandwidth network mode |
receiver_channel |
"Rx1" (default), "Rx2", or "Rx1And2" (native SDK, full V6) |
read_timeout |
Seconds a blocking read waits before AaroniaTimeoutError (default 30.0) |
auto_reconnect |
Reconnect the HTTP stream after a drop (default True) |
Unknown format/receiver_channel strings raise ValueError instead of
silently defaulting.
Behaviour
- One copy per read. Samples are copied once from the Rust receive buffer into a NumPy or Arrow owned buffer, which is then safe to hold indefinitely. This is not zero-copy; one copy is the accurate count.
- Blocking calls release the GIL. Other Python threads keep running;
KeyboardInterruptis delivered between calls. Reads block untilcountsamples arrive orcfg.read_timeoutseconds (default 30) elapse, which raisesAaroniaTimeoutError. - Connecting retries transient failures, up to 4 attempts within a
10 second budget, so a cold
*.localhostname or a server that is still starting does not fail on the first attempt. - Dropped streams reconnect automatically when
auto_reconnectis enabled, which is the default. The reader reopens the stream, re-applies the current tuning, and flags the first read after the gap throughtake_overrun(). After five failed attempts the stream ends and reads raiseAaroniaConnectionError. - Typed exceptions.
AaroniaConnectionError(unreachable endpoint),AaroniaTimeoutError,AaroniaHardwareError(device and SDK errors) andValueError(invalid configuration), mapped from the Rust error enum with the full cause chain in the message. - Dual-channel reads (
receiver_channel = "Rx1And2"withread_samples_dual_numpy(count), returning two time-aligned arrays) require the native-SDK backend: Windows or Linux with the Aaronia SDK installed, and a two-input V6. This path is hardware-unverified; the development device is a single-channel V6 ECO.
Source methods
| Method | Purpose |
|---|---|
start_streaming(cfg) / stop_streaming() |
Session lifecycle |
read_samples_numpy(count) |
NumPy complex64 array |
read_samples_arrow(count) |
PyArrow FixedSizeListArray of [re, im] float32 pairs |
read_samples_dual_numpy(count) |
(rx1, rx2) NumPy arrays (dual-channel captures) |
set_center_frequency(hz) / set_sample_rate(hz) / set_reference_level(dbm) |
Live retuning |
cumulative_drops() |
Total server-reported dropped samples |
take_overrun() |
True once per detected receive-side overrun |
last_timestamp_ns() |
Epoch-ns timestamp of the last received block (HTTP backend; 0 otherwise) |
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
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 python_aaronia-0.6.0.tar.gz.
File metadata
- Download URL: python_aaronia-0.6.0.tar.gz
- Upload date:
- Size: 373.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbf2f8c8b6c29164fda985fbed813df00bd6006d66ac8e27946cf35326b447ad
|
|
| MD5 |
28caaa4c488e3c407bb33d897ad4b0ec
|
|
| BLAKE2b-256 |
574a856bb2dd7aac7c48603142cdd37b5d45dc6784badecf33081e26674b93e6
|
Provenance
The following attestation bundles were made for python_aaronia-0.6.0.tar.gz:
Publisher:
release.yml on isaacbentley/sdr-aaronia-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_aaronia-0.6.0.tar.gz -
Subject digest:
cbf2f8c8b6c29164fda985fbed813df00bd6006d66ac8e27946cf35326b447ad - Sigstore transparency entry: 2430942521
- Sigstore integration time:
-
Permalink:
isaacbentley/sdr-aaronia-rs@6f7d34731b502dee2751aed5ccf214fc1504f7ad -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/isaacbentley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6f7d34731b502dee2751aed5ccf214fc1504f7ad -
Trigger Event:
push
-
Statement type:
File details
Details for the file python_aaronia-0.6.0-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: python_aaronia-0.6.0-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 2.9 MB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b6dcf1462e58c8faf725465b3294d86560dbb51ad5b0c98db2014b1e9c66731
|
|
| MD5 |
63ddf37cb3559eed88b8b34a69a223ee
|
|
| BLAKE2b-256 |
8ffb0c3e6dafe86f84bde2b5296be126b0da01c7e6805b425c95b354a9b57f6b
|
Provenance
The following attestation bundles were made for python_aaronia-0.6.0-cp39-abi3-win_amd64.whl:
Publisher:
release.yml on isaacbentley/sdr-aaronia-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_aaronia-0.6.0-cp39-abi3-win_amd64.whl -
Subject digest:
9b6dcf1462e58c8faf725465b3294d86560dbb51ad5b0c98db2014b1e9c66731 - Sigstore transparency entry: 2430942767
- Sigstore integration time:
-
Permalink:
isaacbentley/sdr-aaronia-rs@6f7d34731b502dee2751aed5ccf214fc1504f7ad -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/isaacbentley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6f7d34731b502dee2751aed5ccf214fc1504f7ad -
Trigger Event:
push
-
Statement type:
File details
Details for the file python_aaronia-0.6.0-cp39-abi3-manylinux_2_39_x86_64.whl.
File metadata
- Download URL: python_aaronia-0.6.0-cp39-abi3-manylinux_2_39_x86_64.whl
- Upload date:
- Size: 3.9 MB
- Tags: CPython 3.9+, manylinux: glibc 2.39+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79ca3d1b848dd149f876457ebff41c261a7296ede41ba27f2d7c455f0194165a
|
|
| MD5 |
9410d846460232520f511938baf5a34e
|
|
| BLAKE2b-256 |
c54bd721417e29a9b8c0e69b9ab08cf5e5917a5b048cba74d41a7a3886add1ad
|
Provenance
The following attestation bundles were made for python_aaronia-0.6.0-cp39-abi3-manylinux_2_39_x86_64.whl:
Publisher:
release.yml on isaacbentley/sdr-aaronia-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_aaronia-0.6.0-cp39-abi3-manylinux_2_39_x86_64.whl -
Subject digest:
79ca3d1b848dd149f876457ebff41c261a7296ede41ba27f2d7c455f0194165a - Sigstore transparency entry: 2430942978
- Sigstore integration time:
-
Permalink:
isaacbentley/sdr-aaronia-rs@6f7d34731b502dee2751aed5ccf214fc1504f7ad -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/isaacbentley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6f7d34731b502dee2751aed5ccf214fc1504f7ad -
Trigger Event:
push
-
Statement type:
File details
Details for the file python_aaronia-0.6.0-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: python_aaronia-0.6.0-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb2cd8ec4306f85a52c0d7df76da1bef873148fcee7fcec17688d21ca28df346
|
|
| MD5 |
491c0c844ff64831108bc029cd2b3780
|
|
| BLAKE2b-256 |
2a2db446490e562b81415fdc9863be7b09b6af265e901567ef66dab599623d2e
|
Provenance
The following attestation bundles were made for python_aaronia-0.6.0-cp39-abi3-macosx_11_0_arm64.whl:
Publisher:
release.yml on isaacbentley/sdr-aaronia-rs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_aaronia-0.6.0-cp39-abi3-macosx_11_0_arm64.whl -
Subject digest:
bb2cd8ec4306f85a52c0d7df76da1bef873148fcee7fcec17688d21ca28df346 - Sigstore transparency entry: 2430943205
- Sigstore integration time:
-
Permalink:
isaacbentley/sdr-aaronia-rs@6f7d34731b502dee2751aed5ccf214fc1504f7ad -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/isaacbentley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6f7d34731b502dee2751aed5ccf214fc1504f7ad -
Trigger Event:
push
-
Statement type: