Skip to main content

Official Python SDK for the Vendel SMS gateway API

Project description

vendel-sdk

Official Python SDK for the Vendel SMS gateway API.

Install

pip install vendel-sdk

Usage

from vendel_sdk import VendelClient

client = VendelClient("https://app.vendel.cc", "vk_your_api_key")

# Send an SMS
result = client.send_sms(["+1234567890"], "Hello from Vendel!")
print(result["batch_id"])

# Check quota
quota = client.get_quota()
print(f"{quota['sms_sent_this_month']}/{quota['max_sms_per_month']} SMS used")

Webhook verification

from vendel_sdk import verify_webhook_signature

is_valid = verify_webhook_signature(
    payload=request.body,
    signature=request.headers["X-Webhook-Signature"],
    secret="your_webhook_secret",
)

Requirements

  • Python >= 3.9

License

MIT

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

vendel_sdk-0.2.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

vendel_sdk-0.2.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vendel_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bc005a6588901b1c46384a4e31b307adef70a36f032bd2275dfb000059532c80
MD5 d9d103e88fc5441a85e0e650822f6ee0
BLAKE2b-256 7cbcffefc8666f1bdde8f25902169fb26f9a35d3db351c47e79c2b084f9ea8fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for vendel_sdk-0.2.0.tar.gz:

Publisher: publish.yml on JimScope/vendel-sdk-python

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

File details

Details for the file vendel_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: vendel_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vendel_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c144007ab6a6f2b0731549812491c02b400e57cc8a53b5de0206fbb24f852894
MD5 94d147e564ac8b5f2a4833ef78171b08
BLAKE2b-256 2a7a4a40cdbd4f3940c0e3d2e8b2ced6eda1cc567df7ec5601627e44a9b9845a

See more details on using hashes here.

Provenance

The following attestation bundles were made for vendel_sdk-0.2.0-py3-none-any.whl:

Publisher: publish.yml on JimScope/vendel-sdk-python

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