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.1.0.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.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file relayway-0.1.0.tar.gz.

File metadata

  • Download URL: relayway-0.1.0.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.1.0.tar.gz
Algorithm Hash digest
SHA256 0940332909c9b0d93c3843bb635150c0703f042df93f381e655d34ebbee5e611
MD5 aa64594396a0ed6325eae7d0c5be82d1
BLAKE2b-256 7139eab0720d3710bc313746ceab7ddc44912c7e8d603876fc457c892b7c536c

See more details on using hashes here.

File details

Details for the file relayway-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: relayway-0.1.0-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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9d9ab56aaf887f92d91eaf7396f0340fe811b55925dddd2ccd683fbf044d250
MD5 6e2bed6ad83ef9db42b37dda204e15b7
BLAKE2b-256 0dfcece973eb6a72833d8aa16e1da899f8fccb6c6c0e682de5f67fa198bd39b3

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