%global _empty_manifest_terminate_build 0 Name: python-Tamako.py Version: 0.7 Release: 1 Summary: Simple API Wrapper for Tamako API. License: MIT License URL: https://github.com/Tamako-Tech/Tamako.py Source0: https://mirrors.aliyun.com/pypi/web/packages/c0/79/a0b17ae867794e8c9a06b53a9df89c9d662af4eaac654aa4b4c62642dd39/Tamako.py-0.7.tar.gz BuildArch: noarch Requires: python3-requests %description # Tamako.py An easy to use and actually updated Python wrapper for the Tamako API. ## State of the project: The wrapper is in constent development and will continue to be. Everything in the Tamako API. ## How to install: ```py Windows: pip install Tamako.py ``` ```py Linux/MacOS: pip install Tamako.py ``` ## Getting Started Using Tamako.py is quite simple, see the documentation for more details. Nearly all of the features included in this API wrapper work without any api keys. To use the ChatBot feature please take a look at the [Tamako documentation](https://tamako.tech/docs/api/chatapi). ## Quick example of the chatbot: ```py chatbot = Tamako.chatbot(prvid='', svcid='', svcsecret='', name='', gender='', prefix='', dev='', userid='', message='') print(chatbot) ``` where `prvid`, `svcid` and `svcsecret` are the Provision ID, Service ID & Service Secret respectively on the [SDC](https://devcenter.skyfallen.org/accounts/login) ## A quick example of printing a joke: ```py import Tamako from Tamako import Tamako joke = Tamako.joke() print(joke) ``` ## A quick example of printing lyrics of a song: ```py lyrics = Tamako.lyrics(song_name='Lucid Dreams') print(lyrics) ``` ## A quick example of printing facts of an animal: ```py fact = Tamako.animal_fact(animal='cat') print(fact) ``` ## A quick example of printing the url of an image ```py img = Tamako.image(animal='bird') print(img) ``` %package -n python3-Tamako.py Summary: Simple API Wrapper for Tamako API. Provides: python-Tamako.py BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-Tamako.py # Tamako.py An easy to use and actually updated Python wrapper for the Tamako API. ## State of the project: The wrapper is in constent development and will continue to be. Everything in the Tamako API. ## How to install: ```py Windows: pip install Tamako.py ``` ```py Linux/MacOS: pip install Tamako.py ``` ## Getting Started Using Tamako.py is quite simple, see the documentation for more details. Nearly all of the features included in this API wrapper work without any api keys. To use the ChatBot feature please take a look at the [Tamako documentation](https://tamako.tech/docs/api/chatapi). ## Quick example of the chatbot: ```py chatbot = Tamako.chatbot(prvid='', svcid='', svcsecret='', name='', gender='', prefix='', dev='', userid='', message='') print(chatbot) ``` where `prvid`, `svcid` and `svcsecret` are the Provision ID, Service ID & Service Secret respectively on the [SDC](https://devcenter.skyfallen.org/accounts/login) ## A quick example of printing a joke: ```py import Tamako from Tamako import Tamako joke = Tamako.joke() print(joke) ``` ## A quick example of printing lyrics of a song: ```py lyrics = Tamako.lyrics(song_name='Lucid Dreams') print(lyrics) ``` ## A quick example of printing facts of an animal: ```py fact = Tamako.animal_fact(animal='cat') print(fact) ``` ## A quick example of printing the url of an image ```py img = Tamako.image(animal='bird') print(img) ``` %package help Summary: Development documents and examples for Tamako.py Provides: python3-Tamako.py-doc %description help # Tamako.py An easy to use and actually updated Python wrapper for the Tamako API. ## State of the project: The wrapper is in constent development and will continue to be. Everything in the Tamako API. ## How to install: ```py Windows: pip install Tamako.py ``` ```py Linux/MacOS: pip install Tamako.py ``` ## Getting Started Using Tamako.py is quite simple, see the documentation for more details. Nearly all of the features included in this API wrapper work without any api keys. To use the ChatBot feature please take a look at the [Tamako documentation](https://tamako.tech/docs/api/chatapi). ## Quick example of the chatbot: ```py chatbot = Tamako.chatbot(prvid='', svcid='', svcsecret='', name='', gender='', prefix='', dev='', userid='', message='') print(chatbot) ``` where `prvid`, `svcid` and `svcsecret` are the Provision ID, Service ID & Service Secret respectively on the [SDC](https://devcenter.skyfallen.org/accounts/login) ## A quick example of printing a joke: ```py import Tamako from Tamako import Tamako joke = Tamako.joke() print(joke) ``` ## A quick example of printing lyrics of a song: ```py lyrics = Tamako.lyrics(song_name='Lucid Dreams') print(lyrics) ``` ## A quick example of printing facts of an animal: ```py fact = Tamako.animal_fact(animal='cat') print(fact) ``` ## A quick example of printing the url of an image ```py img = Tamako.image(animal='bird') print(img) ``` %prep %autosetup -n Tamako.py-0.7 %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-Tamako.py -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Thu Jun 08 2023 Python_Bot - 0.7-1 - Package Spec generated