Skip to main content

aamio-sim-radio

A simulated radio for aamio: a transport under contract 3 that sends frames over UDP on 127.0.0.1. It behaves like a poor radio on purpose, with small frames, a slow rate, and frames that are lost, doubled or put out of order, so what is built on aamio can be tried where nothing is certain, before any radio is at hand. Nothing leaves this machine.

The aamio runtimes run their own tests over it, and the exchange between the Python, PHP and Node runtimes over a medium other than HTTPS.

Use

pip install aamio-sim-radio
aamio addon enable sim-radio
aamio partner add NAME KEY
aamio transport bind NAME sim-radio

aamio-sim-radio needs aamio 0.7.0 or later. From then on a message to that partner goes over the simulated radio, and never over HTTPS instead. Only the process that owns the home runs the transport: aamio serve, and aamio send or aamio read --wait while they run.

Two homes on one machine talk over it with a port each and the other's port as their peer. Each home has the add-on enabled and the other as a partner bound to sim-radio, as above with --home: b in the home sim-a, and a in sim-b. In PowerShell, in one window:

$env:AAMIO_SIM_PORT = "47001"; $env:AAMIO_SIM_PEERS = "47002"
aamio --home sim-a read --wait 25

and in another, within those 25 seconds:

$env:AAMIO_SIM_PORT = "47002"; $env:AAMIO_SIM_PEERS = "47001"
aamio --home sim-b send a "hello over the radio"

In bash the same lines set the variables with export AAMIO_SIM_PORT=47001. In PowerShell, set NAME=value makes a variable of the shell and not of the environment, so nothing reaches aamio.

Settings

The manifest declares these variables, and the core passes them on:

Variable Meaning
AAMIO_SIM_PORT the UDP port this radio listens on
AAMIO_SIM_PEERS the ports of the other radios, comma separated
AAMIO_SIM_MAX_FRAME the largest frame, 64 bytes if left out
AAMIO_SIM_RATE bytes a second, 4000 if left out
AAMIO_SIM_LOSS the share of frames lost, 0 to 1
AAMIO_SIM_DUPLICATE the share of frames sent twice
AAMIO_SIM_REORDER the share of frames held back behind the next one
AAMIO_SIM_SEED the seed for the random draws, so a run can be repeated

An address is sim:<port>. A frame to nobody in particular goes to every peer, the way everyone in range hears a radio.

Where it runs

Python on Windows, macOS and Linux. PHP and Node have no simulated radio of their own; their tests run this one as a process, the way their core runs any transport.

What a transport is, and how to write one, is at https://aamio.at/docs/addons#transports. This one is a whole transport in about 130 lines, to read before writing one's own.

Metadata

Release files for aamio-sim-radio 0.1.0

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

Source distribution (sdist)

Source distribution for aamio-sim-radio 0.1.0
File Size Uploaded Provenance Actions
aamio_sim_radio-0.1.0.tar.gz 8.5 kB Without provenance Details for aamio_sim_radio-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aamio-sim-radio 0.1.0
File Interpreter ABI Platform Actions
aamio_sim_radio-0.1.0-py3-none-any.whl Python 3 none any Details for aamio_sim_radio-0.1.0-py3-none-any.whl

Total release size: 16.6 kB

Release files / aamio_sim_radio-0.1.0.tar.gz

Download URL aamio_sim_radio-0.1.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
04b3136e5a675718e812ef340fc2831c2fd6babf3c05fdbe2c02952a13544db7
BLAKE2b-256 checksum
How to use checksums
c727edc3684fa4c6e7f0b6f244957f9e29d0a4f262c2637cb66047fc5bbe70b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / aamio_sim_radio-0.1.0-py3-none-any.whl

Download URL aamio_sim_radio-0.1.0-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
984799529c44793d3873573000f3246a5a7529f7472f023b48b1c272cad5765a
BLAKE2b-256 checksum
How to use checksums
35f55b4aaa52f86fd6a9c729d1e84530f2a8487cdbd187edba70ffa6d69dbe8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for aamio-sim-radio 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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