Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

relayway-0.0.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

relayway-0.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

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

Hashes for relayway-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ab939fb06b7dae34904ec827ef28077a58e87e3e1653d371b06602a10e60af28
MD5 5ad9d4a50a57dc82d1d0f04ad3955dca
BLAKE2b-256 cbb4f470c72ab9b5b7b5dd84a8fa215e8f7559c29601eb0573a6b2b07c23118b

See more details on using hashes here.

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

Hashes for relayway-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bb843c11d3bf12fb76d999f836f42acc911bc68e0b7862447218e4e50f6b341e
MD5 4dd96bdfa6a33d3a4d7200212a261163
BLAKE2b-256 f01e15aaf9f06878ac14576f245f7ed993a5c1e3873b3da606c85b831341cde8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page