summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 07:55:25 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 07:55:25 +0000
commit209d37f7aaefb30cfac4b297a64a4d25abfd2578 (patch)
treefa820ff978ae4fdf67726998002421595c33f688
parente205b12b57620491f0cc51214cde48664ef739a8 (diff)
automatic import of python-onlinesimruopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-onlinesimru.spec327
-rw-r--r--sources1
3 files changed, 329 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b958edc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/onlinesimru-2.0.4.tar.gz
diff --git a/python-onlinesimru.spec b/python-onlinesimru.spec
new file mode 100644
index 0000000..ebc8d5f
--- /dev/null
+++ b/python-onlinesimru.spec
@@ -0,0 +1,327 @@
+%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 <Python_Bot@openeuler.org> - 2.0.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..f001e66
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0d52acb5d34e4941527924e7a18d1c87 onlinesimru-2.0.4.tar.gz