Skip to main content

Official Python client for the Yotel API (Zetta Dialer).

Project description

yotel

Official Python client for the Yotel API.

pip install yotel

Quickstart

import yotel

client = yotel.Client(api_key="yt_test_...")
campaign = client.campaigns.create(name="Demo", dial_mode="predictive")
lead = client.leads.create(campaign_id=campaign.id, phone="9876543210")

Verifying webhooks

from yotel.webhook import verify_and_parse, InvalidSignature

event = verify_and_parse(
    raw_body,
    headers=request_headers,
    signing_secret="your-webhook-secret",
)
# event.event_type, event.data

See the full docs at docs.yotel.in.

Features

  • Sync + async clients
  • Automatic 429 retries with Retry-After respect
  • Typed request / response models via Pydantic
  • Timing-safe webhook signature verification
  • Zero extra deps besides httpx and pydantic

License

Apache-2.0

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

yotel-0.1.0.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

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

yotel-0.1.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yotel-0.1.0.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yotel-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aaa380d8d5e14567c8f17742757b44969fbcd71f86ea0fe0efe2fcb4f94be0a7
MD5 bbf48340db342ff8316a4745164991a4
BLAKE2b-256 82c7def200e7320843ccda7f097b9ddd61f7520e5be831de6662efe6b6bf9c56

See more details on using hashes here.

Provenance

The following attestation bundles were made for yotel-0.1.0.tar.gz:

Publisher: publish-python-sdk.yml on kamal-zetta/dialer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: yotel-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yotel-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8ec4beebf8003867b570cc76cfc6f76c1924cb8f1a97e89692e3452b4c821fb
MD5 9f522debb89c5760d782a66cdedfe17e
BLAKE2b-256 ab1fd7e333bd97a486eda3681df23cbbf9dd45d8d720613f1a2f7b407cb87412

See more details on using hashes here.

Provenance

The following attestation bundles were made for yotel-0.1.0-py3-none-any.whl:

Publisher: publish-python-sdk.yml on kamal-zetta/dialer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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