Skip to main content

Developers Toolbox

Relay

Relay is a local message broker. A program publishes an event, and Relay stores it before acknowledging the publish. Other programs can subscribe to a topic pattern and receive those events. A queue leases each job to one worker until that worker acknowledges it, retries it, or dead-letters it. Programs do not need Redis, RabbitMQ, or another external service.

Note: A durable subscription keeps its place across restarts and waits for an acknowledgement before the next event. A queue keeps a pending job, and an unexpired lease, across a broker restart. A binding copies a published event onto a queue in that same commit. relay history can filter with a topic pattern, and --message includes deliveries and acknowledgements. relay tui shows queues, events, subscriptions, and dead letters when the tui extra is installed. Destructive commands accept --dry-run.

The PyPI name is lupaxa-relay. The import path is lupaxa.relay. The console script is relay. lupaxa is a namespace package — there is no lupaxa/__init__.py.

Install

pip install lupaxa-relay

Python 3.11 or newer is required.

Run

relay serve
relay publish build.completed --json '{"version":"1.2.0"}'
relay subscribe "build.*"
relay subscribe "build.*" --durable auditor
relay enqueue image.resize --json '{"image":"a.jpg"}'
relay worker consume image.resize
relay status
relay queue list
relay history --topic "build.*"
relay history --message <id>
relay doctor
relay queue purge image.resize --dry-run
relay daemon start
relay tui
relay --help
relay --version

relay serve listens on a Unix socket. relay publish prints the message id and sequence after the event is stored. Stop the broker with Ctrl-C. Events already stored are still there the next time it starts.

Samples

The repository has three ready-to-run directories under samples/. Start the broker from the sample directory. This is the smallest:

cd samples/hello
relay --config relay.yml serve

From another terminal, in that same directory:

python publish.py
relay --config relay.yml history --topic build.completed

samples/queue enqueues a job and acknowledges it. samples/subscribe keeps a durable subscription and copies the event onto a queue.

Documentation

The guide lives in mkdocs/ and publishes to https://relay.thelupaxaproject.org/. It has install steps, events and queues, a command reference, and a walkthrough of each sample with commands you can paste.

pip install -r requirements.txt
mkdocs serve
The Lupaxa Project Footer

Metadata

Release files for lupaxa-relay 0.1.1

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

Source distribution (sdist)

Source distribution for lupaxa-relay 0.1.1
File Size Uploaded Provenance Actions
lupaxa_relay-0.1.1.tar.gz 44.2 kB With provenance Details for lupaxa_relay-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lupaxa-relay 0.1.1
File Interpreter ABI Platform Actions
lupaxa_relay-0.1.1-py3-none-any.whl Python 3 none any Details for lupaxa_relay-0.1.1-py3-none-any.whl

Total release size: 94.3 kB

Release files / lupaxa_relay-0.1.1.tar.gz

Download URL lupaxa_relay-0.1.1.tar.gz
Size 44.2 kB
Tags Source
SHA-256 checksum
How to use checksums
acf1fc753c976a124f4648402d132825776c1ae0f1ba6247f05b720a338bdcd9
BLAKE2b-256 checksum
How to use checksums
ddb29fe19f92ca34eafe42dff438361de543bd02dc912150d3eaf7a375c8081b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / lupaxa_relay-0.1.1-py3-none-any.whl

Download URL lupaxa_relay-0.1.1-py3-none-any.whl
Size 50.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e83e541fe09c2b409902f401bdb62822bace9e88f0150bc682729156953546d
BLAKE2b-256 checksum
How to use checksums
cb7f736d92899e2c96e2df6b565e10c24f39dabf75ae70b8fe8a0014821c674d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for lupaxa-relay 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lupaxa_relay-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

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.1 This release

2 release files Full 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