Skip to content

Commit 22e7d22

Browse files
Shanjaiclaude
andcommitted
docs: upgrade README with badges, sharper H1, and code-first example
- H1 now targets "Python SDK for email SMS AI agents" searches - Added PyPI, Python version, MIT, docs badges - Working 4-line code example above the fold - commune.email link in badges Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1deb856 commit 22e7d22

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
1-
# Commune Python SDK
1+
# Python SDK for Email & SMS in AI Agents
22

3-
Email infrastructure for agents — set up an inbox and send your first email in 30 seconds. Programmatic inboxes (~1 line), consistent threads, setup and verify custom domains, send and receive attachments, structured data extraction.
3+
[![PyPI](https://img.shields.io/pypi/v/commune-mail?color=blue&label=PyPI)](https://pypi.org/project/commune-mail/)
4+
[![Python 3.8+](https://img.shields.io/badge/python-3.8%2B-blue)](https://pypi.org/project/commune-mail/)
5+
[![MIT License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
6+
[![commune.email](https://img.shields.io/badge/docs-commune.email-blue)](https://commune.email)
7+
8+
Give your Python agent a real inbox. Send email, receive webhooks, manage threads — in 4 lines.
49

510
```bash
611
pip install commune-mail
712
```
813

14+
```python
15+
from commune import CommuneClient
16+
17+
commune = CommuneClient(api_key="comm_...")
18+
commune.messages.send(
19+
to="user@example.com",
20+
subject="From your agent",
21+
text="Task complete.",
22+
inbox_id="agent@yourdomain.com"
23+
)
24+
```
25+
926
## Table of Contents
1027

1128
- [Quickstart](#quickstart)

0 commit comments

Comments
 (0)