Metadata-Version: 2.4
Name: moonemail
Version: 0.2.0
Summary: Moonemail API
Home-page: https://github.com/halyard-labs/moonemail-sdks
Author: OpenAPI Generator community
Author-email: Halyard Labs Pty Ltd <support@moonemail.co>
License-Expression: MIT
Project-URL: Repository, https://github.com/halyard-labs/moonemail-sdks
Keywords: OpenAPI,OpenAPI-Generator,Moonemail API
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: urllib3<3.0.0,>=2.7.0
Requires-Dist: python-dateutil>=2.8.2
Requires-Dist: pydantic>=2.11
Requires-Dist: typing-extensions>=4.7.1
Dynamic: author
Dynamic: home-page
Dynamic: license-file

# Moonemail Python

Install the wheel linked in the [release](https://github.com/halyard-labs/moonemail-sdks/releases/tag/v0.1.0).
Python 3.10+; synchronous urllib3 transport and typed Pydantic models.

```python
import os
from moonemail import Moonemail

with Moonemail(os.environ['MOONEMAIL_API_KEY']) as email:
    sent = email.emails.send({
        'from': 'Acme <hello@your-verified-domain.com>',
        'to': ['recipient@example.com'],
        'subject': 'Your receipt',
        'text': 'Thanks for your order.',
    }, idempotency_key='order-123-receipt')
    print(sent.id)
    page = email.emails.list_emails(limit=20, _request_timeout=30)
    health = email.domains.get_domain_health('domain-id', _request_timeout=30)
```

`emails.send` accepts a wire-format dictionary or a generated `SendEmailRequest`.
The generated methods use typed models; see `docs/` for their signatures.
Resources: `emails`, `receiving`, `inboxes`, `domains`, `api_keys`, `webhooks`,
`suppressions`, `permissions`. `ApiException` exposes `status`, `headers`, and
`body`; inspect them before retrying. Reuse the idempotency key and payload.

Send convenience calls default to a 30-second timeout. Pass `_request_timeout`
to other generated methods. Constructor `base_url` is configurable for tests;
only point it at trusted servers, because it receives your key. Use the context
manager to release connections. No automatic retries or background pagination.
