Skip to content
TonyD365-Agent edited this page Nov 21, 2026 · 5 revisions

lanpair wiki

lanpair lets devices on the same network pair once and then exchange messages that are encrypted to the recipient, signed by the sender, and checked for replay before your code sees them.

pip install "lanpair[all]"
from lanpair import Host                    from lanpair import Device
host = Host("Front desk"); host.start()     dev = Device("Room 3"); dev.start()
host.pairing_offer().print_qr()             dev.pair(scanned_text)
for msg in host.messages(): ...             dev.send({"type": "checkout"})

Start here

Page For
Quick start Two devices talking securely in five minutes
Host and Device The high-level API: pairing by QR code, storage, options, restarts
Recipe: commands over UDP A complete desk → room example you can run
How it works The envelope, the cryptography, and the order of checks
API reference Every public class and function
Troubleshooting What each EnvelopeError means; discovery and key store problems
FAQ Common questions
Roadmap What is done and what comes next

For contributors and maintainers: Releasing.

Links

Clone this wiki locally