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.4.0.tar.gz (9.2 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.4.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vendel_sdk-0.4.0.tar.gz
Algorithm Hash digest
SHA256 4dbb53f4da5448922a08f652bfe6e89c0eca8c8c6d4a4c37b4260d95dcfb40c1
MD5 8e5e2656cf6b0b6d8653601504c4af5d
BLAKE2b-256 7cfda319dd7c00ee42baac7c2c0b79c29f06387baea21a57384e5ac73d60ca96

See more details on using hashes here.

Provenance

The following attestation bundles were made for vendel_sdk-0.4.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.4.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for vendel_sdk-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81ba07629a41fe75f1d5b85cd230e209a75c82f480b870dd463f3da4a70ee215
MD5 9362b93de491441b43d15e1ad4d30c5b
BLAKE2b-256 b111e77f6b48dfa1e7de9d3c8554c2e3c67f2c4de93faf1fb286c778fd88205d

See more details on using hashes here.

Provenance

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