Package for eskiz.uz/sms
Project description
eskiz-sms
eskiz-sms package for eskiz.uz/sms
Discussion group: https://t.me/+xFkMROBeFp45ZmQ0
:warning: Please use the latest version. In previous versions, there are a lot of mistakes, bugs
Installation
pip install eskiz_sms
Quickstart
from eskiz_sms import EskizSMS
email = "your_email@mail.com"
password = "your_password"
eskiz = EskizSMS(email=email, password=password)
eskiz.send_sms('998991234567', 'message', from_whom='4546', callback_url=None)
Using pre-saved token
from eskiz_sms import EskizSMS
your_saved_token = 'eySomething9320'
eskiz = EskizSMS('email', 'password')
eskiz.token.set(your_saved_token)
eskiz.send_sms('998901234567', message='message')
Saving token to env file
If you set save_token=True it will save the token to env file
from eskiz_sms import EskizSMS
eskiz = EskizSMS('email', 'password', save_token=True, env_file_path='.env')
# Don't forget to add env file to .gitignore!
response = eskiz.send_sms('998901234567', message='message')
Async usage
import asyncio
from eskiz_sms.async_ import EskizSMS
async def main():
eskiz = EskizSMS('email', 'password')
response = await eskiz.send_sms('998901234567', 'Hello, World!')
asyncio.run(main())
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
eskiz_sms-0.2.5.tar.gz
(7.9 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
eskiz_sms-0.2.5-py3-none-any.whl
(11.4 kB
view details)
File details
Details for the file eskiz_sms-0.2.5.tar.gz.
File metadata
- Download URL: eskiz_sms-0.2.5.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.0 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72c9c502e3d8a9ee26e7ab5784b78eb32a1fe736516a94333ba2b11a88bdb17a
|
|
| MD5 |
6381815309eefe957b399a3f6411e2ef
|
|
| BLAKE2b-256 |
86d14ff3508807865f02beaf14c924a9f20ee2c9ad1921881d6bdf4366a51bf3
|
File details
Details for the file eskiz_sms-0.2.5-py3-none-any.whl.
File metadata
- Download URL: eskiz_sms-0.2.5-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.0 Darwin/25.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f416ab0d593cde31e36476546d45a271ddd26f568ab22f6e0defeb41e8d2d99
|
|
| MD5 |
096c36148a4f2b94dcf97df518d30934
|
|
| BLAKE2b-256 |
59ee194ffccedff24766e6678ff56ec379b50d73c7601ed6448d8999555ac76c
|