diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 09:24:54 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 09:24:54 +0000 |
| commit | bbce9158d38e2cb7db26e241679d9d621828c7c5 (patch) | |
| tree | 9c48840f67249a468e1aad74c6320b8c8d853ae9 /python-benbotasync.spec | |
| parent | 54fec7ced215a610bda7050ff0fa2809519832ca (diff) | |
automatic import of python-benbotasync
Diffstat (limited to 'python-benbotasync.spec')
| -rw-r--r-- | python-benbotasync.spec | 304 |
1 files changed, 304 insertions, 0 deletions
diff --git a/python-benbotasync.spec b/python-benbotasync.spec new file mode 100644 index 0000000..40c73cd --- /dev/null +++ b/python-benbotasync.spec @@ -0,0 +1,304 @@ +%global _empty_manifest_terminate_build 0 +Name: python-BenBotAsync +Version: 3.0.2 +Release: 1 +Summary: Asynchronous Python wrapper for BenBot API. +License: MIT License +URL: https://github.com/xMistt/BenBot +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5e/40/c14e1954385d4d97b04f983b4d93e3e9d39444e403f4c7c16c3895ef699e/BenBotAsync-3.0.2.tar.gz +BuildArch: noarch + +Requires: python3-aiohttp + +%description +# BenBotAsync
+Python wrapper for the BenBot API.
+
+[](https://pepy.tech/project/benbotasync)
+[](https://pypi.org/project/BenBotAsync/)
+[](https://pypi.org/project/BenBotAsync/)
+
+## Installing:
+### ~~Synchronous~~: **Deprecated, use the async version.**
+~~Windows:~~ ``py -3 -m pip install BenBot``<br>
+~~Linux/macOS:~~ ``python3 -m pip install BenBot``
+
+### Asynchronous:
+Windows: ``py -3 -m pip install BenBotAsync``<br>
+Linux/macOS: ``python3 -m pip install BenBotAsync``
+
+## Examples:
+```py
+import BenBotAsync
+import asyncio
+
+
+async def ben_search():
+ result = await BenBotAsync.get_cosmetic(
+ lang="en",
+ searchLang="en",
+ matchMethod="full",
+ name="Ghoul Trooper"
+ )
+
+ print(result.id)
+
+loop = asyncio.get_event_loop()
+loop.run_until_complete(ben_search())
+
+```
+
+This would output:<br>
+```CID_029_Athena_Commando_F_Halloween```
+
+fortnitepy example:
+```py
+import fortnitepy
+import BenBotAsync
+
+
+client = fortnitepy.Client(
+ auth=fortnitepy.EmailAndPasswordAuth(
+ email='example@email.com',
+ password='password123'
+ )
+)
+
+
+@client.event
+async def event_friend_message(message: fortnitepy.FriendMessage) -> None:
+ args = message.content.split()
+ split = args[1:]
+ content = " ".join(split)
+
+ if args[0] == '!skin':
+ skin = await BenBotAsync.get_cosmetic(
+ lang="en",
+ searchLang="en",
+ matchMethod="contains",
+ name=content,
+ backendType="AthenaCharacter"
+ )
+
+ await client.user.party.me.set_outfit(asset=skin.id)
+
+
+client.run()
+
+```
+
+You can check out the documentation for BenBotAsync [here](https://stoplight.io/p/docs/gh/xMistt/BenBotAsync).
+ + +%package -n python3-BenBotAsync +Summary: Asynchronous Python wrapper for BenBot API. +Provides: python-BenBotAsync +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-BenBotAsync +# BenBotAsync
+Python wrapper for the BenBot API.
+
+[](https://pepy.tech/project/benbotasync)
+[](https://pypi.org/project/BenBotAsync/)
+[](https://pypi.org/project/BenBotAsync/)
+
+## Installing:
+### ~~Synchronous~~: **Deprecated, use the async version.**
+~~Windows:~~ ``py -3 -m pip install BenBot``<br>
+~~Linux/macOS:~~ ``python3 -m pip install BenBot``
+
+### Asynchronous:
+Windows: ``py -3 -m pip install BenBotAsync``<br>
+Linux/macOS: ``python3 -m pip install BenBotAsync``
+
+## Examples:
+```py
+import BenBotAsync
+import asyncio
+
+
+async def ben_search():
+ result = await BenBotAsync.get_cosmetic(
+ lang="en",
+ searchLang="en",
+ matchMethod="full",
+ name="Ghoul Trooper"
+ )
+
+ print(result.id)
+
+loop = asyncio.get_event_loop()
+loop.run_until_complete(ben_search())
+
+```
+
+This would output:<br>
+```CID_029_Athena_Commando_F_Halloween```
+
+fortnitepy example:
+```py
+import fortnitepy
+import BenBotAsync
+
+
+client = fortnitepy.Client(
+ auth=fortnitepy.EmailAndPasswordAuth(
+ email='example@email.com',
+ password='password123'
+ )
+)
+
+
+@client.event
+async def event_friend_message(message: fortnitepy.FriendMessage) -> None:
+ args = message.content.split()
+ split = args[1:]
+ content = " ".join(split)
+
+ if args[0] == '!skin':
+ skin = await BenBotAsync.get_cosmetic(
+ lang="en",
+ searchLang="en",
+ matchMethod="contains",
+ name=content,
+ backendType="AthenaCharacter"
+ )
+
+ await client.user.party.me.set_outfit(asset=skin.id)
+
+
+client.run()
+
+```
+
+You can check out the documentation for BenBotAsync [here](https://stoplight.io/p/docs/gh/xMistt/BenBotAsync).
+ + +%package help +Summary: Development documents and examples for BenBotAsync +Provides: python3-BenBotAsync-doc +%description help +# BenBotAsync
+Python wrapper for the BenBot API.
+
+[](https://pepy.tech/project/benbotasync)
+[](https://pypi.org/project/BenBotAsync/)
+[](https://pypi.org/project/BenBotAsync/)
+
+## Installing:
+### ~~Synchronous~~: **Deprecated, use the async version.**
+~~Windows:~~ ``py -3 -m pip install BenBot``<br>
+~~Linux/macOS:~~ ``python3 -m pip install BenBot``
+
+### Asynchronous:
+Windows: ``py -3 -m pip install BenBotAsync``<br>
+Linux/macOS: ``python3 -m pip install BenBotAsync``
+
+## Examples:
+```py
+import BenBotAsync
+import asyncio
+
+
+async def ben_search():
+ result = await BenBotAsync.get_cosmetic(
+ lang="en",
+ searchLang="en",
+ matchMethod="full",
+ name="Ghoul Trooper"
+ )
+
+ print(result.id)
+
+loop = asyncio.get_event_loop()
+loop.run_until_complete(ben_search())
+
+```
+
+This would output:<br>
+```CID_029_Athena_Commando_F_Halloween```
+
+fortnitepy example:
+```py
+import fortnitepy
+import BenBotAsync
+
+
+client = fortnitepy.Client(
+ auth=fortnitepy.EmailAndPasswordAuth(
+ email='example@email.com',
+ password='password123'
+ )
+)
+
+
+@client.event
+async def event_friend_message(message: fortnitepy.FriendMessage) -> None:
+ args = message.content.split()
+ split = args[1:]
+ content = " ".join(split)
+
+ if args[0] == '!skin':
+ skin = await BenBotAsync.get_cosmetic(
+ lang="en",
+ searchLang="en",
+ matchMethod="contains",
+ name=content,
+ backendType="AthenaCharacter"
+ )
+
+ await client.user.party.me.set_outfit(asset=skin.id)
+
+
+client.run()
+
+```
+
+You can check out the documentation for BenBotAsync [here](https://stoplight.io/p/docs/gh/xMistt/BenBotAsync).
+ + +%prep +%autosetup -n BenBotAsync-3.0.2 + +%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-BenBotAsync -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.0.2-1 +- Package Spec generated |
