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.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 lupaxa-relay 0.1.0
File Size Uploaded Provenance Actions
lupaxa_relay-0.1.0.tar.gz 44.2 kB With provenance Details for lupaxa_relay-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 94.3 kB

Release files / lupaxa_relay-0.1.0.tar.gz

Download URL lupaxa_relay-0.1.0.tar.gz
Size 44.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fc8f547ab21fd5ac05513f9e12ecc093c7a91d1d23b6923209fd2d5d089455f7
BLAKE2b-256 checksum
How to use checksums
6ba37214bf3dc33980bb2b1015f87d4ed560ba37bf8d0152bf8a0f8e8ba34b7a
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.0-py3-none-any.whl

Download URL lupaxa_relay-0.1.0-py3-none-any.whl
Size 50.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ca82780c8d483fb191f2eab439f7dc498b301818130face727bb8be049c23bb
BLAKE2b-256 checksum
How to use checksums
54daf2ff7bfdd11543d6ab377b354a11644dd88800c411d0c3dc1d52c135c94e
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.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.

Full provenance

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

Select from 2 files

Attestation for lupaxa_relay-0.1.0.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.0 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