PayamResan
SMS sending module for payam-resan.com
📦 Installation
pip install payamresan
🚀 Quick Usage
from payamresan import Payamak
payam = Payamak(api_key="YOUR_API_KEY", sender="YOUR_SENDER_NUMBER")
payam.send_sms("Hello!", "+989123456789")
📝 Note: The sender must be an integer (e.g., 50004075014432). You can also omit it if you want the default sender to be used by the API.
✅ Checking for Success or Error
You can store the result of send_sms() in a variable and check its status:
result = payam.send_sms("Hello!", "+989123456789")
if result["Success"] == True:
print("✅ Message sent successfully!")
else:
print("❌ Error:", result["ErrorCode"])
💡 Notes
-
Make sure your API key and sender number are active on payam-resan.com.
-
You can send to multiple recipients:
payam.send_sms("Hello everyone!", "+989111111111", "+989122222222", "+989133333333")
☕️ Support
if you enjoy, buy me a coffee
Metadata
Release files for payamresan 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| payamresan-0.1.5.tar.gz | 2.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| payamresan-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.9 kB
Release files / payamresan-0.1.5.tar.gz
| Download URL | payamresan-0.1.5.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fecaf425b299c20f4c020848f617c23cb043fa4e80f02a115e336027020d5935
|
|
BLAKE2b-256 checksum How to use checksums |
ed17a41f5fc96ee7babb47a2956db272b73ea183266d369c44b11170c019e186
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / payamresan-0.1.5-py3-none-any.whl
| Download URL | payamresan-0.1.5-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad188fc3cf2354b26f943f5603eaa16a1564041f03fef5457d7413aff4d9e72a
|
|
BLAKE2b-256 checksum How to use checksums |
575a0205a4d14b01f421d6425e6d2e57e09c23972789e15130230c33d6f12e82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for payamresan 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.