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.1.tar.gz (33.1 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.1-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yotel-0.2.1.tar.gz
  • Upload date:
  • Size: 33.1 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.1.tar.gz
Algorithm Hash digest
SHA256 1c5151087a5861d5e630ed7929416ae5796fa1417b3c6651c091f539ca0b6adc
MD5 b55d8fcb06df2cf3703f6be3cc739f1f
BLAKE2b-256 01d1246b42e7e1e5bc022b6ec75bd063f60008905791346dcfbb0d945f119aa2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: yotel-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 26.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0b48a9ae0d3a6a222258bf5878a2e66ea9d9b52acf0341179a053417e1c8b4cf
MD5 968ed52854d5bb501dd45b156b5c7d42
BLAKE2b-256 0fa1c98244d07c3afd75e2e6eba406f37651175858bb3c6d8c7d853f2e133ef7

See more details on using hashes here.

Provenance

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