Metadata-Version: 2.5
Name: mailhuset
Version: 0.2.0
Summary: Official Python client for the Mailhuset transactional email API.
Project-URL: Homepage, https://mailhuset.com
Project-URL: Repository, https://github.com/Dalysie-ceo/mailhuset-sdks
Author: Dalysie
License: MIT
Keywords: api,email,mailhuset,transactional
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Communications :: Email
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# mailhuset

Official Python client for [Mailhuset](https://mailhuset.com), with no dependencies
beyond the standard library.

## Install

```bash
pip install mailhuset
```

## Send an email

```python
from mailhuset import Mailhuset

mh = Mailhuset("mh_live_…")

mh.emails.send(
    sender="you@yourdomain.com",
    to="user@example.com",
    subject="Verify your email",
    html="<p>Welcome 👋</p>",
)
```

`send` returns `{"id": ..., "status": ...}`. You can also `mh.emails.get(id)` and
`mh.emails.list(limit=20)`.

A non-2xx response raises `MailhusetError` with `.status` and `.code`. Point it at
another host with `Mailhuset(key, base_url="https://api.mailhuset.com/v1")`.
