%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