Official Python SDK for the GateWire SMS Infrastructure.
Project description
GateWire Python SDK
The official Python library for the GateWire SMS Infrastructure.
Send OTPs, alerts, and notifications to North African carriers (Mobilis, Djezzy, Ooredoo) using our decentralized mesh network.
Features
- 🚀 Simple: Easy to use synchronous client.
- 🛡️ Typed: Works great with modern Python type hinting.
- ⚡ Reliable: Automatic error handling for API failures.
Installation
pip install gatewire
Quick Start
1. Initialize
from gatewire import GateWireClient, GateWireException
client = GateWireClient(api_key="sk_live_YOUR_API_KEY")
2. Send SMS
try:
response = client.dispatch(
phone="+213555123456",
message="Your verification code is 1234"
)
print(f"SMS Queued: {response['reference_id']}")
except GateWireException as e:
print(f"Failed: {e}")
3. Use Templates (Priority)
response = client.dispatch(
phone="+213555123456",
template_key="login_otp", # Configured in Dashboard
priority=True
)
4. Check Balance
balance = client.get_balance()
print(f"Remaining: {balance['balance']} {balance['currency']}")
License
The GateWire flutter package is open-sourced software licensed under the MIT license.
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 gatewire-1.0.0.tar.gz.
File metadata
- Download URL: gatewire-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd845e0837df3f6cf528660ab213506a30dfb44934b1c1553db2510016ed1a61
|
|
| MD5 |
d1fb292fe247bebeff3e24cdef91a6ea
|
|
| BLAKE2b-256 |
6ff395f00ed84b2f09e68bf9a8ff3c04f5aa6f3df44e9cba40198d6b5635cdd6
|
File details
Details for the file gatewire-1.0.0-py3-none-any.whl.
File metadata
- Download URL: gatewire-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2c97ab75477111c2dc9f247234efd3a39c701515e29a2475e1c9799ec80eb12
|
|
| MD5 |
ceebd236b18b0682505cf0142f1f5d65
|
|
| BLAKE2b-256 |
b2e0f4e3fbeb1809d0cf416e30efad1525ae324e9ba890e7b1f27676250cde59
|