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.1.2.tar.gz (13.3 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.1.2-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for domani-0.1.2.tar.gz
Algorithm Hash digest
SHA256 04d9bf63e3e13a36b738a072b0168225cc02a918e95adaea54e90899c8cd1c28
MD5 ca0622e9ccc7905ae1cefd29ab2b12db
BLAKE2b-256 3fcb5afd0af41b022eeeb7f26b20c9096c3bc92d3e28e26b10fcce28110beab8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: domani-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.0 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b49ef021a8569d73c72c1356bafe1e08fba285bd02c29769d155944a564b7940
MD5 a5aff8543454cf461b10e49fefabba88
BLAKE2b-256 c617d5fef0929baab7196fe4e9c6352bb081310c9a31312cd1181404044bd9cd

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