Skip to main content

sente-sdk

Managed email identities for AI agents — the Python client for Sente. Give your agent a real, reusable email address it owns: send, receive, and react to mail.

Dependency-free (stdlib only). The PyPI distribution is sente-sdk; the import is sente.

pip install sente-sdk
from sente import Sente

sente = Sente(api_key="sk_sente_...")              # get a key with the `sente` CLI: `sente login`

idt = sente.identities.create(name="support-bot")  # -> support-bot@agents.sente.run
sente.messages.send(idt.id, to="user@example.com", subject="hi", text="from your agent")

# React to inbound mail (a long-running consumer; for production prefer a webhook):
for msg in sente.messages.stream(idt.id):
    if msg.direction != "outbound":
        body = (msg.parsed or {}).get("text", "")
        # ... handle msg.from_addr / msg.subject / body

Waiting for a verification email (the agent signed up somewhere with idt.email)? Stamp since before triggering the action, then block for the extracted code or link:

from datetime import datetime, timezone

since = datetime.now(timezone.utc).isoformat()
# ... trigger the app's "send code" action ...
r = sente.messages.wait_for_otp(idt.id, since=since, timeout=60)  # -> OtpResult(code, message) | None
if r:
    print(r.code)  # magic links: wait_for_magic_link(...) -> MagicLinkResult(link, message) | None

Webhook handlers receive a thin event { "type": "message.received", "message": { "id": ... } } with an x-sente-secret header; fetch the full message with sente.messages.get(message_id).

Full onboarding playbook (CLI + framework templates): https://sente.run/skill.md.

Metadata

Release files for sente-sdk 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sente-sdk 0.5.0
File Size Uploaded Provenance Actions
sente_sdk-0.5.0.tar.gz 7.5 kB Without provenance Details for sente_sdk-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sente-sdk 0.5.0
File Interpreter ABI Platform Actions
sente_sdk-0.5.0-py3-none-any.whl Python 3 none any Details for sente_sdk-0.5.0-py3-none-any.whl

Total release size: 15.0 kB

Release files / sente_sdk-0.5.0.tar.gz

Download URL sente_sdk-0.5.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
74e2f6cd2053870f20679ef3589e9791e567b351702475b135d1701998520d07
BLAKE2b-256 checksum
How to use checksums
15301cdaf0086bd97d800321411478ea9270192f366a63eecde1ad2d0e8517c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / sente_sdk-0.5.0-py3-none-any.whl

Download URL sente_sdk-0.5.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd48bd8c3aabff9fe7e5b6c8a3ac6b1588ae05c0739871837d694b3c90086fa9
BLAKE2b-256 checksum
How to use checksums
d59961769001a3bc3101d2d9c44c83dac2795802f87d339b935b8c8df1a4a7b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for sente-sdk 0.5.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page