Skip to main content

kalourmade-arkesel

Python SDK for the Arkesel SMS/OTP gateway.

Install

pip install kalourmade-arkesel

Requires Python 3.9+. Single dependency: httpx.

Quickstart

Two things this SDK does: send SMS messages, and generate/verify OTPs.

import os
from kalourmade_arkesel import ArkeselClient

client = ArkeselClient(os.environ["ARKESEL_API_KEY"])

# Send a message
response = client.sms.send(sender="Arkesel", recipients=["233544919953"], message="Hello from Arkesel")

for result in response.results:
    print(f"{result.recipient} -> {result.id}")

# Generate and verify an OTP
client.otp.generate(
    expiry=5, length=6, medium="sms",
    message="Your code is %otp_code%",
    number="233544919953", sender_id="Arkesel", type="numeric",
)

client.otp.verify(code=user_entered_code, number="233544919953")

Full documentation, runnable examples, and the PHP/Node SDKs: github.com/kalourmade/arkesel-sdk.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kalourmade_arkesel-0.1.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

kalourmade_arkesel-0.1.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file kalourmade_arkesel-0.1.1.tar.gz.

File metadata

  • Download URL: kalourmade_arkesel-0.1.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for kalourmade_arkesel-0.1.1.tar.gz
Algorithm Hash digest
SHA256 471110806004cc5797d90be526929c9a037597c2c227ab65491ca1ebb1c0c2f6
MD5 200a27237208bc684375a77205255835
BLAKE2b-256 aa1007391e5139be3f8eb807b935f97dae78f62e76fd18dee72789ca3fdfd4d9

See more details on using hashes here.

File details

Details for the file kalourmade_arkesel-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for kalourmade_arkesel-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 213ca8388f9ea3b8d33e977fc63b57a47d02388c430ae0bd8049dea7b0c42056
MD5 380e67237707cd6c5b9c3bcaada114e7
BLAKE2b-256 30b643edd44e1ecf84df6d334995bab1c7f888c4ea737c8342d462585c3a1ec2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page