Skip to main content

Package for eskiz.uz/sms

Project description

eskiz-sms

eskiz-sms package for eskiz.uz/sms

Downloads Downloads Downloads

: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.3.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

eskiz_sms-0.2.3-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file eskiz_sms-0.2.3.tar.gz.

File metadata

  • Download URL: eskiz_sms-0.2.3.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.9 Windows/10

File hashes

Hashes for eskiz_sms-0.2.3.tar.gz
Algorithm Hash digest
SHA256 488b992fe5e645996902ac5bf0a2789639312c48728f66e549c17f3c2072766c
MD5 bf024784860360f949edb51b74d50e4e
BLAKE2b-256 8b78380a303f2decd7a1802304f0e7239c4891e0706dab3686bb93ba612dd622

See more details on using hashes here.

File details

Details for the file eskiz_sms-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: eskiz_sms-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.9 Windows/10

File hashes

Hashes for eskiz_sms-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a0131636df52589602cc093cf514e7ec00ca44d4eea4483b8140fcdcbcef93b5
MD5 f50f6c275dda0525a9acee75a1371de5
BLAKE2b-256 c819d63718e396c5fbd88f60130b014ac06c5c836d9bb0fa8c73330bc9bacf63

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page