# relayway

Python helper for enqueueing background jobs via the Relayway API.

## Installation

```bash
pip install .
```

## Run tests

```bash
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

```python
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"])
```
