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-Afterrespect - Typed request / response models via Pydantic
- Timing-safe webhook signature verification
- Zero extra deps besides
httpxandpydantic
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
462064a5edb0abb9011f340bce247276edb645e028f84aeb5dc191fdd7b689d9
|
|
| MD5 |
6a8a9ad5263d85291d9c1cecb2376a87
|
|
| BLAKE2b-256 |
a13a328666232573469a82d51285e9aa1019f8b5e51e0c169f31b5af6920a61d
|
Provenance
The following attestation bundles were made for yotel-0.2.0.tar.gz:
Publisher:
publish-python-sdk.yml on kamal-zetta/dialer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yotel-0.2.0.tar.gz -
Subject digest:
462064a5edb0abb9011f340bce247276edb645e028f84aeb5dc191fdd7b689d9 - Sigstore transparency entry: 1437040242
- Sigstore integration time:
-
Permalink:
kamal-zetta/dialer@0b92b65282bd2a45837f89bbb84ea41f47479145 -
Branch / Tag:
refs/tags/sdk-python-v0.2.0 - Owner: https://github.com/kamal-zetta
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-sdk.yml@0b92b65282bd2a45837f89bbb84ea41f47479145 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3efe01699c5d038e9ad2a16ef6d4b1248b514e1de03de7555f03cf5814791a6e
|
|
| MD5 |
b07f5e5304e89962ca109a9a3ea85643
|
|
| BLAKE2b-256 |
d9620d25e8aed97cdc0dc64ff97f953811b70ae74c8fe4ffeab9340378611399
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yotel-0.2.0-py3-none-any.whl -
Subject digest:
3efe01699c5d038e9ad2a16ef6d4b1248b514e1de03de7555f03cf5814791a6e - Sigstore transparency entry: 1437040243
- Sigstore integration time:
-
Permalink:
kamal-zetta/dialer@0b92b65282bd2a45837f89bbb84ea41f47479145 -
Branch / Tag:
refs/tags/sdk-python-v0.2.0 - Owner: https://github.com/kamal-zetta
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-sdk.yml@0b92b65282bd2a45837f89bbb84ea41f47479145 -
Trigger Event:
push
-
Statement type: