Metadata-Version: 2.4
Name: novamail
Version: 0.1.1
Summary: Official Python SDK for the NovaMail API
Author-email: NovaMail API <support@novamail.app>
Project-URL: Homepage, https://novamail.app
Project-URL: Source Code, https://github.com/yourusername/novamail-python
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.25.0

# NovaMail Python SDK

The official Python library for the NovaMail API. Easily integrate transactional emails into your Python applications.

## Installation

You can install the package directly via `pip`:

```bash
pip install novamail
```

## Usage

Create an API key in your NovaMail dashboard and use it to initialize the client.

```python
from novamail import NovaMailClient

# Initialize the client with your API key
client = NovaMailClient(api_key="nm_live_your_api_key_here")

# Send an email
response = client.send_email(
    to="recipient@example.com",
    from_email="sender@your-verified-domain.com",
    subject="Welcome to NovaMail",
    html="<h1>Hello!</h1><p>This is a test email sent from the Python SDK.</p>"
)

print("Email sent successfully!")
print(response)
```

## Advanced Usage

If you need to point the SDK to a different base URL (for example, for local testing), you can pass it to the client:

```python
client = NovaMailClient(
    api_key="nm_test_...",
    base_url="http://localhost:54321/functions/v1"
)
```
