An asynchronous Python API wrapper for the PokeAPI
Project description
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>
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
asyncpokepy-0.1.4.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for asyncpokepy-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d023a099e503b936dee4138a1860f90df4982e3bd7331cd0af25d4026794307 |
|
MD5 | 3050799f97c29a28e9269276e90ff46b |
|
BLAKE2b-256 | 7137c8ea363b7ed86b2ba4ad7bdafae5ef3d5b41e3316f03a25ef7d1d6a2bff5 |