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.2.0.tar.gz (32.9 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.2.0-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for yotel-0.2.0.tar.gz
Algorithm Hash digest
SHA256 462064a5edb0abb9011f340bce247276edb645e028f84aeb5dc191fdd7b689d9
MD5 6a8a9ad5263d85291d9c1cecb2376a87
BLAKE2b-256 a13a328666232573469a82d51285e9aa1019f8b5e51e0c169f31b5af6920a61d

See more details on using hashes here.

Provenance

The following attestation bundles were made for yotel-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: yotel-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3efe01699c5d038e9ad2a16ef6d4b1248b514e1de03de7555f03cf5814791a6e
MD5 b07f5e5304e89962ca109a9a3ea85643
BLAKE2b-256 d9620d25e8aed97cdc0dc64ff97f953811b70ae74c8fe4ffeab9340378611399

See more details on using hashes here.

Provenance

The following attestation bundles were made for yotel-0.2.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