Python asyncio wrapper for sms-activate.io API
Project description
AioSmsActivate
Getting Started
Simple usage
from aiosmsactivate import SmsActivate
from aiosmsactivate.types import SetActivationStatus
import asyncio
sa = SmsActivate('token')
async def main():
balance = await sa.get_balance()
print(balance) # 6.25
number = await sa.purchase('ya')
number.activation_id # 3807035855
number.phone_number # '79238944456'
number.operator # 'mtt'
print(number)
# activation_id=3807035855 phone_number='79238944456' activation_cost=0.2
# country_code='0' can_get_another_sms=True activation_time='2025-07-08 10:49:27'
# operator='mtt'
code = await number.wait_sms_code(timeout=300)
print(code) # 1234
status = await number.get_activation_status()
await number.set_activation_status(SetActivationStatus.CANCEL) # Отменить номер || Cancel number
await number.set_activation_status(8) # Отменить номер || Cancel number
asyncio.run(main())
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
aiosmsactivate-1.0.0.tar.gz
(103.2 kB
view details)
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 aiosmsactivate-1.0.0.tar.gz.
File metadata
- Download URL: aiosmsactivate-1.0.0.tar.gz
- Upload date:
- Size: 103.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91ab190d0d81d90c4a2c486aedb24faa86c74820110450c092462887a8e86e08
|
|
| MD5 |
d4855e326d92d54860d10361a5c0b8ab
|
|
| BLAKE2b-256 |
abd92825d44700e9b7dca6a87ea9727123759d3217720c4cb3a1359efe590f30
|
File details
Details for the file aiosmsactivate-1.0.0-py3-none-any.whl.
File metadata
- Download URL: aiosmsactivate-1.0.0-py3-none-any.whl
- Upload date:
- Size: 34.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abbd396c52ab0916ad36d736c97afa30d0923c7ae443a682121fba4fa6f0af80
|
|
| MD5 |
6e471adb7c10f8642e0be0c7fdd032b8
|
|
| BLAKE2b-256 |
332d21ed17b5fd72da93f89b9b04a2ea45c88df11e5bfa483754cb869f348b94
|