Skip to main content

aamio-lan

aamio over the local network: a transport under contract 3 that sends each frame as one UDP datagram. Two machines on the same network can then exchange aamio messages directly, also when aamio.at cannot be reached.

The transport is a dumb pipe. The core seals each message for its recipient, signs it, counts it and receipts it (part A of contract 3); the transport only moves frames. Everyone on the network can see that frames go, how big they are, and the four-byte hints in them, and anyone there can send frames, which the core then verifies and refuses when they are not from a partner.

Use

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

aamio-lan needs aamio 0.7.0 or later. From then on a message to that partner goes over the local network, and never over HTTPS instead. The partner binds your key the same way. Only the process that owns the home runs the transport: aamio serve, and aamio send or aamio read --wait while they run.

Settings

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

Variable Meaning
AAMIO_LAN_PORT the UDP port this transport listens on, 47474 if left out
AAMIO_LAN_BIND the address it listens on, 0.0.0.0 if left out
AAMIO_LAN_BROADCAST where a frame to nobody in particular goes, 255.255.255.255 if left out, none for nowhere
AAMIO_LAN_PEERS host:port of other transports it also sends such frames to, comma separated

An address is lan:<ip>:<port>. A frame to nobody in particular, as the first ask to a partner whose address is not known yet, goes to the broadcast address and to the peers; after that the core answers the address a verified envelope came from. Where broadcast does not reach, as on a guest network that keeps devices apart, name the other machine in AAMIO_LAN_PEERS.

On the wire

Each datagram is AL1, eight random bytes that name the transport process, and one frame of contract 3 (A8), at most 1200 bytes, so a datagram stays well inside one Ethernet packet. A transport drops datagrams it sent itself, which a broadcast brings back, and anything that does not start with AL1. The same datagrams are sent by the LAN transports of aamio-php and aamio-js, so any of them can talk to any other.

What a transport is, and how to write one, is at https://aamio.at/docs/addons#transports.

Metadata

Release files for aamio-lan 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-lan 0.1.0
File Size Uploaded Provenance Actions
aamio_lan-0.1.0.tar.gz 6.9 kB Without provenance Details for aamio_lan-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 14.2 kB

Release files / aamio_lan-0.1.0.tar.gz

Download URL aamio_lan-0.1.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3cb279456d2b7404f58e56a3fcad6d9dd2b3d34f19d40588c05d751d307f4cf3
BLAKE2b-256 checksum
How to use checksums
976e0a4091fc1852fcc3056b6e7d900dc545e2c921f346aaa3a604db55ed6d19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

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

Download URL aamio_lan-0.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e33f9f619dd7162bac7e3b54f3b3c4ad197207c05222a09025bad85ea9473c29
BLAKE2b-256 checksum
How to use checksums
4ee3ccaf5b2025f24be57f0b0bdd15e3bd83347c399c90e1577ee23ba10eac7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for aamio-lan 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