From da855ccf6eb43b6ca739a58bc3f9b24a170240b2 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 29 May 2023 09:25:55 +0000 Subject: automatic import of python-carbonnow --- .gitignore | 1 + python-carbonnow.spec | 254 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 256 insertions(+) create mode 100644 python-carbonnow.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..bd7554a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/carbonnow-0.0.1.tar.gz diff --git a/python-carbonnow.spec b/python-carbonnow.spec new file mode 100644 index 0000000..a9761be --- /dev/null +++ b/python-carbonnow.spec @@ -0,0 +1,254 @@ +%global _empty_manifest_terminate_build 0 +Name: python-carbonnow +Version: 0.0.1 +Release: 1 +Summary: carbon.now.sh API Wrapper powered by Carbonara +License: GNU Lesser General Public License v3 (LGPLv3) +URL: https://github.com/OpenRestfulAPI/carbon-now-sh-API-Wrapper +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7b/43/64d4443e90c94340ffb0b9752c2f34dd973b1f5d54f1c2d6c34e0664ac64/carbonnow-0.0.1.tar.gz +BuildArch: noarch + +Requires: python3-aiohttp +Requires: python3-asyncio + +%description +## Carbonara API Wrapper + +### âŦ‡ī¸ Installing Carbon-Now via 🐍 pip: + +``` +pip install carbonnow +``` + +### 🆕 Upgrading Carbon-Now via 🐍 pip: + +``` +pip install -U carbonnow +``` + +### âŦ‡ī¸ Installing Carbon-Now via 🌐 source: + +``` +git clone https://github.com/OpenRestfulAPI/carbon-now-sh-API-Wrapper carbon-now +cd carbon-now +make install +``` + + +### 📖 Example Usage: + +``` +import asyncio + +from carbonnow import Carbon + +code = """ +import asyncio + +async def func(): + return "Hello from Carbonara" + +if __name__ == '__main__': + asyncio.run(func()) +""" + +async def main(): + carbon = Carbon( + code=code, + ) + print(await carbon.save('carbon_photo')) + +if __name__ == '__main__': + asyncio.run(main()) +``` + +### 📖 Advance Usage Example: + +Check [example.py](https://github.com/OpenRestfulAPI/carbon-now-sh-API-Wrapper/blob/master/example.py) + + +### ÂŠī¸ Copyrights + +Licensed with GPLv3, +This Project was made by an indivial on [Telegram](https://t.me/DeprecatedUser). The person who made this API wrapper has nothing to do with [Carbon](https://carbon.now.sh) or [Carbonara](https://github.com/petersolopov/carbonara). Therefore All rights reserved to [Carbon](https://carbon.now.sh) and [Carbonara](https://github.com/petersolopov/carbonara)'s Rightful Owner [Peter Solopov](https://github.com/petersolopov) Himself. + + + +%package -n python3-carbonnow +Summary: carbon.now.sh API Wrapper powered by Carbonara +Provides: python-carbonnow +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-carbonnow +## Carbonara API Wrapper + +### âŦ‡ī¸ Installing Carbon-Now via 🐍 pip: + +``` +pip install carbonnow +``` + +### 🆕 Upgrading Carbon-Now via 🐍 pip: + +``` +pip install -U carbonnow +``` + +### âŦ‡ī¸ Installing Carbon-Now via 🌐 source: + +``` +git clone https://github.com/OpenRestfulAPI/carbon-now-sh-API-Wrapper carbon-now +cd carbon-now +make install +``` + + +### 📖 Example Usage: + +``` +import asyncio + +from carbonnow import Carbon + +code = """ +import asyncio + +async def func(): + return "Hello from Carbonara" + +if __name__ == '__main__': + asyncio.run(func()) +""" + +async def main(): + carbon = Carbon( + code=code, + ) + print(await carbon.save('carbon_photo')) + +if __name__ == '__main__': + asyncio.run(main()) +``` + +### 📖 Advance Usage Example: + +Check [example.py](https://github.com/OpenRestfulAPI/carbon-now-sh-API-Wrapper/blob/master/example.py) + + +### ÂŠī¸ Copyrights + +Licensed with GPLv3, +This Project was made by an indivial on [Telegram](https://t.me/DeprecatedUser). The person who made this API wrapper has nothing to do with [Carbon](https://carbon.now.sh) or [Carbonara](https://github.com/petersolopov/carbonara). Therefore All rights reserved to [Carbon](https://carbon.now.sh) and [Carbonara](https://github.com/petersolopov/carbonara)'s Rightful Owner [Peter Solopov](https://github.com/petersolopov) Himself. + + + +%package help +Summary: Development documents and examples for carbonnow +Provides: python3-carbonnow-doc +%description help +## Carbonara API Wrapper + +### âŦ‡ī¸ Installing Carbon-Now via 🐍 pip: + +``` +pip install carbonnow +``` + +### 🆕 Upgrading Carbon-Now via 🐍 pip: + +``` +pip install -U carbonnow +``` + +### âŦ‡ī¸ Installing Carbon-Now via 🌐 source: + +``` +git clone https://github.com/OpenRestfulAPI/carbon-now-sh-API-Wrapper carbon-now +cd carbon-now +make install +``` + + +### 📖 Example Usage: + +``` +import asyncio + +from carbonnow import Carbon + +code = """ +import asyncio + +async def func(): + return "Hello from Carbonara" + +if __name__ == '__main__': + asyncio.run(func()) +""" + +async def main(): + carbon = Carbon( + code=code, + ) + print(await carbon.save('carbon_photo')) + +if __name__ == '__main__': + asyncio.run(main()) +``` + +### 📖 Advance Usage Example: + +Check [example.py](https://github.com/OpenRestfulAPI/carbon-now-sh-API-Wrapper/blob/master/example.py) + + +### ÂŠī¸ Copyrights + +Licensed with GPLv3, +This Project was made by an indivial on [Telegram](https://t.me/DeprecatedUser). The person who made this API wrapper has nothing to do with [Carbon](https://carbon.now.sh) or [Carbonara](https://github.com/petersolopov/carbonara). Therefore All rights reserved to [Carbon](https://carbon.now.sh) and [Carbonara](https://github.com/petersolopov/carbonara)'s Rightful Owner [Peter Solopov](https://github.com/petersolopov) Himself. + + + +%prep +%autosetup -n carbonnow-0.0.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-carbonnow -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot - 0.0.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..c1381cd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +bee61ea19a4f220f36d0dd2d560b6588 carbonnow-0.0.1.tar.gz -- cgit v1.2.3