%global _empty_manifest_terminate_build 0 Name: python-onlinesimru Version: 2.0.4 Release: 1 Summary: Wrapper for automatic reception of SMS-messages by onlinesim.ru License: Apache License, Version 2.0, see LICENSE file URL: https://github.com/s00d/onlinesim-python-api Source0: https://mirrors.aliyun.com/pypi/web/packages/dd/21/6e10f9c96e001de22e7e1ebd53555f2a96eb1d8d63db07fac6bef8587ef5/onlinesimru-2.0.4.tar.gz BuildArch: noarch Requires: python3-httpx Requires: python3-dacite Requires: python3-pydantic %description # Onlinesim Python API Wrapper for automatic reception of SMS-messages by onlinesim.ru [![N|Solid](https://img.shields.io/pypi/pyversions/onlinesimru.svg)](https://pypi.python.org/pypi/onlinesimru) ![Python publish](https://github.com/s00d/onlinesim-python-api/workflows/Python%20publish/badge.svg) ### Installation You can install or upgrade package with: ``` $ pip install onlinesimru --upgrade ``` Or you can install from source with: ``` $ git clone https://github.com/s00d/onlinesim-python-api $ cd onlinesim-python-api $ python setup.py install ``` ...or install from source buth with pip ``` $ pip install git+https://github.com/s00d/onlinesim-python-api ``` ### Example ```python from onlinesimru import FreeNumbersService, RentNumbersService, ProxyService, UserService, NumbersService def main(): client = UserService('YOUR_TOKEN') balance = client.balance() print(balance) main() ``` ### Example2 ```python from onlinesimru import FreeNumbersService, RentNumbersService, ProxyService, UserService, NumbersService def main(): numbers = NumbersService('YOUR_TOKEN') input('Press enter if you sms was sent') tzid = numbers.get('service') print(tzid) code = numbers.wait_code(tzid) print(code) main() ``` ### Example3 ```python # multiple driver using from onlinesimru import Driver def main(): driver = Driver('YOUR_TOKEN') tzid = driver.numbers().get('service') print(tzid) code = driver.numbers().wait_code(tzid) print(code) main() ``` ## Documentation All documentation is in the wiki of this project - **[Documentation](https://github.com/s00d/onlinesim-python-api/wiki)** ## Bugs If you have any problems, please create Issues [here](https://github.com/s00d/onlinesim-python-api/issues) %package -n python3-onlinesimru Summary: Wrapper for automatic reception of SMS-messages by onlinesim.ru Provides: python-onlinesimru BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-onlinesimru # Onlinesim Python API Wrapper for automatic reception of SMS-messages by onlinesim.ru [![N|Solid](https://img.shields.io/pypi/pyversions/onlinesimru.svg)](https://pypi.python.org/pypi/onlinesimru) ![Python publish](https://github.com/s00d/onlinesim-python-api/workflows/Python%20publish/badge.svg) ### Installation You can install or upgrade package with: ``` $ pip install onlinesimru --upgrade ``` Or you can install from source with: ``` $ git clone https://github.com/s00d/onlinesim-python-api $ cd onlinesim-python-api $ python setup.py install ``` ...or install from source buth with pip ``` $ pip install git+https://github.com/s00d/onlinesim-python-api ``` ### Example ```python from onlinesimru import FreeNumbersService, RentNumbersService, ProxyService, UserService, NumbersService def main(): client = UserService('YOUR_TOKEN') balance = client.balance() print(balance) main() ``` ### Example2 ```python from onlinesimru import FreeNumbersService, RentNumbersService, ProxyService, UserService, NumbersService def main(): numbers = NumbersService('YOUR_TOKEN') input('Press enter if you sms was sent') tzid = numbers.get('service') print(tzid) code = numbers.wait_code(tzid) print(code) main() ``` ### Example3 ```python # multiple driver using from onlinesimru import Driver def main(): driver = Driver('YOUR_TOKEN') tzid = driver.numbers().get('service') print(tzid) code = driver.numbers().wait_code(tzid) print(code) main() ``` ## Documentation All documentation is in the wiki of this project - **[Documentation](https://github.com/s00d/onlinesim-python-api/wiki)** ## Bugs If you have any problems, please create Issues [here](https://github.com/s00d/onlinesim-python-api/issues) %package help Summary: Development documents and examples for onlinesimru Provides: python3-onlinesimru-doc %description help # Onlinesim Python API Wrapper for automatic reception of SMS-messages by onlinesim.ru [![N|Solid](https://img.shields.io/pypi/pyversions/onlinesimru.svg)](https://pypi.python.org/pypi/onlinesimru) ![Python publish](https://github.com/s00d/onlinesim-python-api/workflows/Python%20publish/badge.svg) ### Installation You can install or upgrade package with: ``` $ pip install onlinesimru --upgrade ``` Or you can install from source with: ``` $ git clone https://github.com/s00d/onlinesim-python-api $ cd onlinesim-python-api $ python setup.py install ``` ...or install from source buth with pip ``` $ pip install git+https://github.com/s00d/onlinesim-python-api ``` ### Example ```python from onlinesimru import FreeNumbersService, RentNumbersService, ProxyService, UserService, NumbersService def main(): client = UserService('YOUR_TOKEN') balance = client.balance() print(balance) main() ``` ### Example2 ```python from onlinesimru import FreeNumbersService, RentNumbersService, ProxyService, UserService, NumbersService def main(): numbers = NumbersService('YOUR_TOKEN') input('Press enter if you sms was sent') tzid = numbers.get('service') print(tzid) code = numbers.wait_code(tzid) print(code) main() ``` ### Example3 ```python # multiple driver using from onlinesimru import Driver def main(): driver = Driver('YOUR_TOKEN') tzid = driver.numbers().get('service') print(tzid) code = driver.numbers().wait_code(tzid) print(code) main() ``` ## Documentation All documentation is in the wiki of this project - **[Documentation](https://github.com/s00d/onlinesim-python-api/wiki)** ## Bugs If you have any problems, please create Issues [here](https://github.com/s00d/onlinesim-python-api/issues) %prep %autosetup -n onlinesimru-2.0.4 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-onlinesimru -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Jun 20 2023 Python_Bot - 2.0.4-1 - Package Spec generated