PopCatAPIWrapper documentation#

Important

Project development has been paused till April, 2023

Installation#

To use PopCatWrapper, install it using pip

1(.venv) $ pip install popcatapiwrapper

or install it from the github repo using git with the following command

1(.venv) $ pip install -U git+https://github.com/Infernum1/PopCatWrapper

Examples#

An example of the get_element_info feature

 1import PopCatAPIWrapper
 2import asyncio
 3
 4client = PopCatAPIWrapper.client.PopCatAPI()
 5
 6async def el(element: str):
 7   element = await client.get_element_info(element=element)
 8   print(element.summary)
 9
10if __name__ == "__main__":
11   asyncio.run(el("Oxygen"))

or the get_color_info feature

 1import PopCatAPIWrapper
 2import asyncio
 3
 4client = PopCatAPIWrapper.client.PopCatAPI()
 5
 6async def color(color: str):
 7   color_obj = await client.get_color_info(color=color)
 8   print(color_obj.name)
 9
10if __name__ == "__main__":
11   asyncio.run(color("547df0"))

Take a look at all the methods here