an asynchronous api wrapper for https://popcat.xyz/api
pip install git+https://github.com/EpiclyRaspberry/popcat
coming on pypi soon ™
- You need to download the source by:
Desktop mode
- Set this window to desktop mode
- Press
Code
(green button) thenDownload ZIP
- Extract the downloaded zip to somewhere
- do
git clone https://github.com/EpiclyRaspberry/popcat
on any directory except$HOME
Pocket Git(Paid)
- Share this page's link then select Pocket Git
- Press HTTP
- Press the save icon on top left
- Find the Repo, Press on it, Then Press Clone
-
Now Open Terminal on PyDroid
-
now
cd
to the parent directory of the downloaded sourceso if your directory is like this:
/storage/emulated/0/ |_some folders.... |_python |_pkgs |_popcat |_blah balh blah.... |_readme.md |_setup.py |_some folders/files...
do
cd python/pkgs/popcat
if you used the Pocket Git method on downloading, docd git/popcat
-
Now run
pip install .
to install the package
import asyncio
from popcat import PopCat
async def main():
async with PopCat() as cat:
color=await cat.color("ff8844")
print (color.name,color.rgb,color.hex,sep=" - ")
asyncio.run(main())
/color
/lyrics
/screenshot
/showerthoughts
/chatbot
/subreddit
/quote
/joke
/fact
/lulcat
/mock
/welcomecard - unstable function
/sadcat
/oogway
/communism
/car