Skip to main content

domani

Official Python SDK for the domani API - domains, email, and identity for AI agents. Typed, generated from the OpenAPI spec, standard-library only (no dependencies).

Install

pip install domani

Requires Python 3.8+.

Quickstart

from domani import Domani, DomaniError

domani = Domani(api_key="domani_sk_...")

# Search availability + pricing
results = domani.search(query={"q": "myagent.com"})

# Give an agent an inbox
domani.create_mailbox_by_address(body={"address": "hi@myagent.com"})

# Send mail
domani.send_email_by_address(
    "hi@myagent.com",
    body={"to": "user@example.com", "subject": "Hello", "text": "Sent from my domani mailbox."},
)

# Errors carry the API's structured code + hint
try:
    domani.send_email_by_address("hi@myagent.com", body={"to": "bounced@example.com", "text": "..."})
except DomaniError as e:
    print(e.status, e.code, e.hint)  # e.g. 400 RECIPIENTS_SUPPRESSED

API

Domani(api_key, base_url=..., timeout=...) exposes one method per API operation (named after its operationId in snake_case). Path parameters are positional; request bodies (body=) and query objects (query=) are keyword arguments. Every method returns the parsed JSON response and raises DomaniError (status, code, hint, documentation_url) on non-2xx.

Full endpoint reference: https://domani.run/docs · OpenAPI spec: https://domani.run/.well-known/openapi.json

Generated

domani/__init__.py is generated from the domani OpenAPI spec - do not edit it by hand. It is regenerated whenever the API surface changes.

License

MIT

Download files

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

Source Distribution

domani-0.2.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

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

domani-0.2.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file domani-0.2.0.tar.gz.

File metadata

  • Download URL: domani-0.2.0.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for domani-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fe9e02851e4c15080915afb262f6e9a9fae69dd6fea144fc51c241b7e9c2c968
MD5 563cef6bf8ad20576f9defb5b02065fe
BLAKE2b-256 4637467be240a32c5a8f70fbb044ef0b1a1ab930c34114382d681ebd0d647b59

See more details on using hashes here.

File details

Details for the file domani-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: domani-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for domani-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f6bf2e8cd9b4ab80f769d9cc23b9123211ed35bf70b9c0be2ab366b23b1babc
MD5 adb9f458d2e82d8e44159729e9e8fb45
BLAKE2b-256 22b22be0f7ef566ade02c2c01b287ce64ea09c2e4dd94a516e5b9d8411c98aa2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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