Skip to content

EpiclyRaspberry/popcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

popcat

an asynchronous api wrapper for https://popcat.xyz/api

installation

pip

pip install git+https://github.com/EpiclyRaspberry/popcat coming on pypi soon ™

pydroid

  1. You need to download the source by:

    Desktop mode

  • Set this window to desktop mode
  • Press Code(green button) then Download ZIP
  • Extract the downloaded zip to somewhere

    Termux

  • 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
  1. Now Open Terminal on PyDroid

  2. now cd to the parent directory of the downloaded source

    so 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, do cd git/popcat

  3. Now run pip install . to install the package

basic usage

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())

endpoints covered

/color
/lyrics
/screenshot
/showerthoughts
/chatbot
/subreddit
/quote
/joke
/fact
/lulcat
/mock
/welcomecard - unstable function
/sadcat
/oogway
/communism
/car

Releases

No releases published

Languages