An async API wrapper around popcat-api
Get started || Documentation
pip install -U popcatapiwrapper
pip install -U git+https://github.com/Infernum1/PopCatWrapper
(make sure you have git installed)
For a list of examples of each endpoint, take a look at the examples directory
import discord
import PopCatWrapper
client = PopCatWrapper.PopCatAPI()
bot = discord.ext.commands.Bot()
@bot.command()
async def element(element: str): #you can feed either the atomic number, symbol, or element name
image = await client.get_element_info(element)
await ctx.send(content=element.summary)