Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.18 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.18 KB

An async API wrapper around popcat-api

Project development has been paused till April, 2023

Get started || Documentation

to get started, type this in your terminal

pip install -U popcatapiwrapper

or to install the main branch

pip install -U git+https://github.com/Infernum1/PopCatWrapper
(make sure you have git installed)

Examples

For a list of examples of each endpoint, take a look at the examples directory

If you plan to use the lib in a discord bot
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)
these are just examples! it's upto you how you want to use this lib.

Add Infernum#7041 on discord for help

You're welcome to make a Pull Request if you feel something can be improved :)