Skip to main content

Wrapper for automatic reception of SMS-messages by sms-activate.ru

Project description

python-sms-activate-ru

Описание на русском ниже

Wrapper for automatic reception of SMS-messages by sms-activate.ru

N|Solid

Installation

You can install or upgrade package with:

$ pip install smsactivateru --upgrade

Or you can install from source with:

$ git clone https://github.com/tezmen/python-sms-activate-ru
$ cd python-sms-activate-ru
$ python setup.py install

...or install from source buth with pip

$ pip install git+https://github.com/tezmen/python-sms-activate-ru

Example

from smsactivateru import Sms, SmsService, GetNumber

wrapper = Sms('API KEY')

activation = GetNumber(
	service=SmsService().Youla,
).request(wrapper)

input('Press enter if you sms was sent')

activation.was_sent().request(wrapper)
code = activation.wait_code(wrapper=wrapper)
print(code)

More examples located in /example/ dir


Библиотека на python для работы с api сервиса автоматического приёма смс – sms-activate.ru

N|Solid

Установка

Установка с помощью стандартного пакетного менеджера pip:

$ pip install smsactivateru --upgrade

Либо установка напрямую из репозитория, с ручной сборкой

$ git clone https://github.com/tezmen/python-sms-activate-ru
$ cd python-sms-activate-ru
$ python setup.py install

...либо установка через pip но из репозитория, минуя сервера pypi

$ pip install git+https://github.com/tezmen/python-sms-activate-ru

Простой пример

from smsactivateru import Sms, SmsService, GetNumber

wrapper = Sms('API KEY')

activation = GetNumber(
	service=SmsService().Youla,
).request(wrapper)

input('Press enter if you sms was sent')

activation.was_sent().request(wrapper)
code = activation.wait_code(wrapper=wrapper)
print(code)

Это пример использует встроенный обработчик. Вы можете вручную устанавливать статусы и управлять процессом, а так же много чего ещё. Больше примеров находится в папке /example/

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

smsactivateru-1.2.4.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smsactivateru-1.2.4-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file smsactivateru-1.2.4.tar.gz.

File metadata

  • Download URL: smsactivateru-1.2.4.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for smsactivateru-1.2.4.tar.gz
Algorithm Hash digest
SHA256 a4112110035afacf13e1eac6c2ea852f02fcc08b7a9ed4c4d679b02f019ef1a3
MD5 64e89549cc659b982083abceddaaf98a
BLAKE2b-256 750e558b4c72071848b42096d0a3daada4a539dce2774f7db22e86f71ad5040c

See more details on using hashes here.

File details

Details for the file smsactivateru-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: smsactivateru-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for smsactivateru-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e611b5d018446b7eba99785e31075148efc001638dd1c1c06b5ffc342d3cdbf2
MD5 969037954127278162676cdb2c3c587b
BLAKE2b-256 1ae21b085167ede3def2dcebcd859f1b43033ab0e24dd23309d02ace407f7b99

See more details on using hashes here.

Supported by

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