Metadata-Version: 2.4
Name: python-posthorn
Version: 0.2.0
Summary: Zero-dependency Python client for the Posthorn HTTP API
License: MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# python-posthorn

Zero-dependency Python client for Posthorn's HTTP API.

## Install locally

```bash
pip install -e ./python-posthorn
```

## Basic usage

```python
from python_posthorn import PosthornClient

client = PosthornClient(
    "http://localhost:8888",
    "your-api-key",
    default_path="/api/transactional",
)

response = client.send({"message": "hello"})
print(response)
```

## Features

- `GET /healthz`
- `GET /metrics`
- authenticated JSON send requests
- `Idempotency-Key` support
- typed `200` success and dry-run responses
- typed `422` validation errors
- explicit exception classes for `401`, `409`, `429`, and `502`
