%global _empty_manifest_terminate_build 0 Name: python-aiosmsru Version: 0.2.1 Release: 1 Summary: (A)sync client for sms.ru with pydantic responses License: Mozilla Public License 2.0 URL: https://github.com/WhiteApfel/aiosmsru Source0: https://mirrors.aliyun.com/pypi/web/packages/79/1e/4087f2fe3eecd0a0ad245dfcb97c54bd422583a37b0ffc8c7f49e64f11e3/aiosmsru-0.2.1.tar.gz BuildArch: noarch Requires: python3-httpx Requires: python3-pydantic %description # 🚧 aioSMSru - [x] Send SMS - [x] Check SMS status - [x] Get SMS cost - [x] Get balance - [x] Get limit - [x] Get free limit - [x] Get my senders - [x] Check api_id or login and password - [ ] Add to stoplist - [ ] Remove from stoplist - [x] Get stoplist - [ ] Add callback - [ ] Remove callback - [ ] Get callbacks - [x] Callcheck ## 🧑‍💻 How to use I gave an example for an async client, but sync is no different, you just don't need to use await. Get satisfaction 😌 ```python from smsru import AioSMSru, SMSru client = AioSMSru("app_id") async def main(): print(await client.sms_cost("79991398805", "I'm in serious shit")) # 79991398805 and 79956896018 <- I feel totally lost scend = await client.send_sms( recipients=['79991398805', '79956896018'], messages="I feel totally lost" ) print(await client.check_sms([m_id for m_id in sensed.sms.keys()])) # 79991398805 <- If i'm asking for help # 79956896018 <- it's only because scend = await client.send_sms( recipients=['79991398805', '79956896018'], messages=["If i'm asking for help", "it's only because"] ) call = await client.callcheck('79991398805') print(call.code == input("Last 4 digits of incoming call number: ")) ``` %package -n python3-aiosmsru Summary: (A)sync client for sms.ru with pydantic responses Provides: python-aiosmsru BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-aiosmsru # 🚧 aioSMSru - [x] Send SMS - [x] Check SMS status - [x] Get SMS cost - [x] Get balance - [x] Get limit - [x] Get free limit - [x] Get my senders - [x] Check api_id or login and password - [ ] Add to stoplist - [ ] Remove from stoplist - [x] Get stoplist - [ ] Add callback - [ ] Remove callback - [ ] Get callbacks - [x] Callcheck ## 🧑‍💻 How to use I gave an example for an async client, but sync is no different, you just don't need to use await. Get satisfaction 😌 ```python from smsru import AioSMSru, SMSru client = AioSMSru("app_id") async def main(): print(await client.sms_cost("79991398805", "I'm in serious shit")) # 79991398805 and 79956896018 <- I feel totally lost scend = await client.send_sms( recipients=['79991398805', '79956896018'], messages="I feel totally lost" ) print(await client.check_sms([m_id for m_id in sensed.sms.keys()])) # 79991398805 <- If i'm asking for help # 79956896018 <- it's only because scend = await client.send_sms( recipients=['79991398805', '79956896018'], messages=["If i'm asking for help", "it's only because"] ) call = await client.callcheck('79991398805') print(call.code == input("Last 4 digits of incoming call number: ")) ``` %package help Summary: Development documents and examples for aiosmsru Provides: python3-aiosmsru-doc %description help # 🚧 aioSMSru - [x] Send SMS - [x] Check SMS status - [x] Get SMS cost - [x] Get balance - [x] Get limit - [x] Get free limit - [x] Get my senders - [x] Check api_id or login and password - [ ] Add to stoplist - [ ] Remove from stoplist - [x] Get stoplist - [ ] Add callback - [ ] Remove callback - [ ] Get callbacks - [x] Callcheck ## 🧑‍💻 How to use I gave an example for an async client, but sync is no different, you just don't need to use await. Get satisfaction 😌 ```python from smsru import AioSMSru, SMSru client = AioSMSru("app_id") async def main(): print(await client.sms_cost("79991398805", "I'm in serious shit")) # 79991398805 and 79956896018 <- I feel totally lost scend = await client.send_sms( recipients=['79991398805', '79956896018'], messages="I feel totally lost" ) print(await client.check_sms([m_id for m_id in sensed.sms.keys()])) # 79991398805 <- If i'm asking for help # 79956896018 <- it's only because scend = await client.send_sms( recipients=['79991398805', '79956896018'], messages=["If i'm asking for help", "it's only because"] ) call = await client.callcheck('79991398805') print(call.code == input("Last 4 digits of incoming call number: ")) ``` %prep %autosetup -n aiosmsru-0.2.1 %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-aiosmsru -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Jun 20 2023 Python_Bot - 0.2.1-1 - Package Spec generated