Official client for FarazSMS · IranPayamak (فراز اس ام اس · ایران پیامک) — https://farazsms.com. Send pattern/OTP, bulk SMS, reports, phonebook, and all 63 endpoints.
Project description
farazsms
FarazSMS · IranPayamak — فراز اس ام اس · ایران پیامک 🌐 farazsms.com · iranpayamak.com
Official Python client for the FarazSMS / IranPayamak web services — send pattern/OTP, simple & bulk SMS, pull reports, manage your phonebook, and reach all 63 endpoints through a low-level request().
Python 3.7+ · depends only on requests · raises on API errors.
Install
pip install farazsms
Quick start
from farazsms import FarazSMS, FarazError
sms = FarazSMS("YOUR_API_KEY") # key from the panel → Web Service / API Key
print(sms.balance()) # verify the key — free
sms.send_pattern("SJ3FgPrE0C", "09120000000", {"code": "1234"}) # OTP (instant)
sms.send_simple("Hello!", ["09120000000", "09130000000"]) # bulk
print(sms.inbox(page=1, limit=20)) # inbound replies
try:
sms.send_pattern("BAD", "09120000000", {"code": "1"})
except FarazError as e:
print(e.status, e.body)
Recipients use the local format
09120000000(no+98). Default sender line90008361.
Bundled helpers
| Area | Methods |
|---|---|
| Account | balance() · profile() · lines() |
| Send | send_pattern() · send_simple() · send_variable() |
| Patterns | create_pattern() · patterns() |
| Reports | inbox() · send_requests() · send_request_items() |
| Phonebook | phonebooks() · add_contact() |
| Reference | provinces() · number_banks() |
Anything else (tickets, orders, voice, LBS, …) via request(method, path, body).
License
MIT
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 farazsms-1.1.0.tar.gz.
File metadata
- Download URL: farazsms-1.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa2d5c614f18a8a9b3816a7085c9d6c2370e4f661e2472875d2c7189b35978a2
|
|
| MD5 |
20f5c880ba18f76bcc2b92673a32e89c
|
|
| BLAKE2b-256 |
10c8e4431d5b24573e4e7cf488e3ec876682419fbb380637fbba5513b0d33d2c
|
File details
Details for the file farazsms-1.1.0-py3-none-any.whl.
File metadata
- Download URL: farazsms-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00fe177aa6366efc22f4172fd51a489f7fbd9e93d4b587522ab8bf850b42e030
|
|
| MD5 |
ea8bec2a0b25915d70f0f016c071f93b
|
|
| BLAKE2b-256 |
257e2a7eed5084f11b22a16120dcebf47fd173b2b5817220968e3ad4b61c17de
|