buchida is the official Python SDK for buchida — an email API built for AI agents. buchida ships a CLI, an MCP server, and SDKs in 5 languages (Node, Python, Go, Ruby, Java), all sharing the same REST API surface. @buchida/email templates render Korean, Japanese, and Chinese natively.
Install
pip install buchida
Send your first email
import os
from buchida import Buchida
client = Buchida(os.environ["BUCHIDA_API_KEY"])
result = client.emails.send(
from_="hello@yourapp.com",
from_name="Your App",
to="user@example.com",
subject="Hello",
html="<h1>Welcome</h1>",
)
print(result["id"], result["status"]) # unwrapped payload
# Lists are plain lists with .cursor / .has_more
page = client.emails.list(limit=20)
for item in page:
print(item["id"], item["status"])
if page.has_more:
next_page = client.emails.list(cursor=page.cursor)
# Batch: one result per input, each with .data or .error
for r in client.emails.send_batch([
{"from": "hello@yourapp.com", "to": "a@example.com", "subject": "A", "text": "hi"},
]):
print(r.data if r.ok else r.error)
# Typed models (snake_case fields)
email = client.emails.get(result["id"])
print(email.from_name, email.created_at)
Upgrading to 0.2
- The API wraps responses in
{"data": ...}; the SDK now returns the unwrapped payload.emails.send()returns the email object (result["id"]),emails.list()returns a list with.cursorand.has_more, andemails.send_batch()returns a list of results that each have.dataor.error. - Backwards compatible:
result["data"](send) andpage["data"],page["cursor"],page["hasMore"](list) still work (no warning is emitted; they are deprecated in docs only), as do"data" in res,res.get("cursor")andres.keys(). Migrate to the unwrapped form; the shim will be removed in a future major version. Caveats: list results are nowlistsubclasses, soisinstance(res, dict)isFalseand an empty page is falsy (if not res). emails.get,domains.get/verify,api_keys.create,webhooks.create,templates.getandmetrics.getpreviously raisedKeyError(they parsed the envelope instead of the payload); they now return populated models. Model date fields (created_at, ...) were read from camelCase keys and are now read from the API's snake_case keys.- New:
from_nameonemails.send()and theEmailmodel; request bodies use snake_case (reply_to,scheduled_at); API errors with a nested{"error": {"message": ...}}body are surfaced correctly.
Documentation
Full docs: buchida.com/docs
- API reference: https://buchida.com/docs/api-reference
- Quickstart guide: https://buchida.com/docs/quickstart
- CJK email templates: https://buchida.com/docs/templates
- MCP server setup: https://buchida.com/docs/mcp
- CLI reference: https://buchida.com/docs/cli
Links
- Website: buchida.com
- Documentation: buchida.com/docs
- Pricing: buchida.com/pricing
- GitHub: https://github.com/Vyblor/buchida-python
License
MIT
Metadata
Release files for buchida 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| buchida-0.2.0.tar.gz | 15.4 kB | Without provenance | Details for buchida-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| buchida-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for buchida-0.2.0-py3-none-any.whl |
Total release size: 23.8 kB
Release files / buchida-0.2.0.tar.gz
| Download URL | buchida-0.2.0.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d13cf69fe02e8e74b191b79dd3737bd91ff734b8c5519c11cdb634d15d7cc2e3
|
|
BLAKE2b-256 checksum How to use checksums |
a7b3e36362e7e7a8a47a4aef81b73980ea459e5ce3df73c61029b0684952f78a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.16
|
Release files / buchida-0.2.0-py3-none-any.whl
| Download URL | buchida-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f96e646edc89ab49be528c69a7b0268a22065c588e8ee4264e22220997fc171
|
|
BLAKE2b-256 checksum How to use checksums |
1788528cf903636f8e15d9774bb2b742a33832e4a5dfd08a366d379d1deb4398
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.16
|
Security for buchida 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.