Skip to main content

Official TurkeySMS API V4 Python SDK

Project description

TurkeySMS Python SDK (Official) 🐍

Official TurkeySMS Python Developer Kit — A robust, Pythonic interface for the V4 API. Streamline your SMS and verification workflows with absolute ease.

🛠 Installation

Install the package via pip:

pip install turkeysms-python

🚀 Quick Start

Initialize Client

from turkeysms import TurkeySmsClient

client = TurkeySmsClient(api_key="your_api_key_here")

Sending Standard SMS

response = client.send_sms(
    title="SENDER",
    mobile="905xxxxxxxxx",
    text="Hello from TurkeySMS Python!",
    lang=0  # 0: English, 1: Turkish, 2: Arabic
)
print(response)

Sending OTP SMS

Ultra-fast delivery for verification:

response = client.send_otp(
    mobile="905xxxxxxxxx",
    lang=1,
    digits=4
)

Advanced OTP (Custom Text)

response = client.send_detailed_otp(
    title="SENDER",
    mobile="905xxxxxxxxx",
    text="Your security code is: TS-CODE",
    lang=1
)

Check Balance

balance = client.get_balance()
print(f"Current Balance: {balance.get('balance')}")

🛡 Security

If you discover any security-related issues, please email support@turkeysms.com.tr.

📄 License

The MIT License (MIT). Please see License File for more information.


© 2026 TurkeySMS Bilişim ve İletيشim Hizmetleri Tic. Ltd. Şti.

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

turkeysms_python-4.0.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

turkeysms_python-4.0.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file turkeysms_python-4.0.0.tar.gz.

File metadata

  • Download URL: turkeysms_python-4.0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for turkeysms_python-4.0.0.tar.gz
Algorithm Hash digest
SHA256 5afabfca9fbfe33e23ca22e47ede26eb4d5a623041bd118a3e63605593b68b36
MD5 d4d464218c1713671864d11c12c8dc51
BLAKE2b-256 4d37117c1242c72c549f219082f38a342a4646ea4d43db2ba989225fd21b59d0

See more details on using hashes here.

File details

Details for the file turkeysms_python-4.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for turkeysms_python-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b59c23927e9ae11b5a2978e1b56aacd14827d01804cafd750d8524795e712f3
MD5 f76b9266e01ae3357a2c8eedc3d1c302
BLAKE2b-256 3b5a51aa563e4e4cae321c74bf4f4f9048d67fff848ecc79fff5148ee9a105e6

See more details on using hashes here.

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