From de2a01f53559578585833095113d2029f0214569 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 15 May 2023 08:39:57 +0000 Subject: automatic import of python-tamako-py --- .gitignore | 1 + python-tamako-py.spec | 250 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 252 insertions(+) create mode 100644 python-tamako-py.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..3bed317 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Tamako.py-0.7.tar.gz diff --git a/python-tamako-py.spec b/python-tamako-py.spec new file mode 100644 index 0000000..a0d01ec --- /dev/null +++ b/python-tamako-py.spec @@ -0,0 +1,250 @@ +%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.nju.edu.cn/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 +* Mon May 15 2023 Python_Bot - 0.7-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..9ea75a8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +005ff9d6cd262507f4976244d8d48f6f Tamako.py-0.7.tar.gz -- cgit v1.2.3