Python SDK for background job processing via Relayway API
Project description
relayway
Python helper for enqueueing background jobs via the Relayway API.
Installation
pip install .
Run tests
uv run --group dev pytest -q
Configuration
relayway.configure(api_key=...) is optional: the SDK reads the API key from RELAYWAY_API_KEY automatically (for example, from a .env file if your application loads it into environment variables).
Usage
from relayway import configure, background
configure(api_key="demo")
@background()
def send_email(user_id, payload):
pass # The decorated function never runs locally.
response = send_email(123, {"subject": "hello"})
print(response["job_id"])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file relayway-0.0.1.tar.gz.
File metadata
- Download URL: relayway-0.0.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab939fb06b7dae34904ec827ef28077a58e87e3e1653d371b06602a10e60af28
|
|
| MD5 |
5ad9d4a50a57dc82d1d0f04ad3955dca
|
|
| BLAKE2b-256 |
cbb4f470c72ab9b5b7b5dd84a8fa215e8f7559c29601eb0573a6b2b07c23118b
|
File details
Details for the file relayway-0.0.1-py3-none-any.whl.
File metadata
- Download URL: relayway-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb843c11d3bf12fb76d999f836f42acc911bc68e0b7862447218e4e50f6b341e
|
|
| MD5 |
4dd96bdfa6a33d3a4d7200212a261163
|
|
| BLAKE2b-256 |
f01e15aaf9f06878ac14576f245f7ed993a5c1e3873b3da606c85b831341cde8
|