Skip to main content

Managed email identities for AI agents — the Python client for Sente (import sente).

Project description

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sente_sdk-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sente_sdk-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file sente_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: sente_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for sente_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cef209e3f498bc7bebf7811f5936a528875ce7f68167270c9264f5d5b1d8a615
MD5 20df897bb1e6cdb5eeea934a8331437f
BLAKE2b-256 afe948dd71a35a9a2e992799a6338c40bc433491727f412d470aaea52045094b

See more details on using hashes here.

File details

Details for the file sente_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sente_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for sente_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2dfe8ff5ee83d1fbff28e8be7e662b854fcac0bc7b8d880e9b098e75bfcdac09
MD5 574d68d086b4817b873a04f13689b5b5
BLAKE2b-256 fb85a1953f233118b5b0efa670faeacea1a8cde3031ac80ef3d36da375c373c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page