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
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
Установка
Установка с помощью стандартного пакетного менеджера 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 Distributions
Built Distribution
Hashes for smsactivateru-1.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bec37c3ccb1c4b5b3819135f355b2be1994a89ae0c651f7b305e7b4a8e63fb9 |
|
MD5 | 92531dc22505b91783cc90c8902c14fb |
|
BLAKE2b-256 | 3a32b3b155fc5be6103d94b2516bbafaa1fd0a98bfb3747e4714edaa01a2c89b |