Last updated:
0 purchases
asyncpokepy 0.1.4
An asynchronous Python API wrapper for the PokéAPI
Installation
MacOS / Linux:
python3 -m pip install -U asyncpokepy
Windows:
py -3 -m pip install -U asyncpokepy
Usage
You must create an instance of the pokeclient in order to utilise its functionality:
from asyncpokepy import pokeclient
pokeclient = pokeclient()
Examples
These examples assume you have created an instance as above.
async def getpikachu():
# This will return an object, setting object to False will return a dictionary
return pokeclient.getpokemon('pikachu', object=True)
Output:
<asyncpokepy.objects.Pokemon object at 0x7fa4bb929580>
Authors
asyncpokepy was written by Raj Sharma.
PokéAPI was constructed by Paul Hallett.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.