> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sendkit.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Python

> Send emails from Python using the SendKit SDK.

<CardGroup cols={2}>
  <Card title="Source Code" icon="github" href="https://github.com/sendkitdev/sendkit-python">
    View on GitHub
  </Card>

  <Card title="Package" icon="box" href="https://pypi.org/project/sendkit">
    View on PyPI
  </Card>
</CardGroup>

## Install

```bash theme={null}
pip install sendkit
```

## Send email

```python theme={null}
from sendkit import SendKit

client = SendKit("sk_your_api_key")

result = client.emails.send(
    from_="Your Name <you@yourdomain.com>",
    to="recipient@example.com",
    subject="Hello from SendKit",
    html="<h1>Welcome!</h1><p>Your first email with SendKit.</p>",
)

print(result["id"])
```
