An asynchronous API wrapper for the pokeapi.
Project description
AioPokéApi
An Asynchronous API wrapper for the PokéApi written in Python.
Report issue · Request feature · Fork project
:old_key: Key Features
- Use of modern Python keywords:
async
andawait
. - Every object is fully type hinted.
- Objects get cached, this increases speed and avoids unnecessary API requests.
:comet: Installation
pip install aiopokeapi
:gear: Didn't work?
Depending on your Python installation, you might need to use one of the following:
-
Python is not in PATH
path/to/python.exe -m pip install aiopokeapi
-
Python is in PATH but pip is not
python -m pip install aiopokeapi
-
Unix systems can use pip3/python3 commands
pip3 install aiopokeapi
python3 -m pip install aiopokeapi
-
Using multiple Python versions
py -m pip install aiopokeapi
:rocket: Getting started
Aiopoke's goal is to be simple and easy to use:
import asyncio
import aiopoke
async def main():
client = aiopoke.AiopokeClient()
ability = await client.get_ability(1)
print(ability)
await client.close()
asyncio.run(main())
Or even better, using a context manager:
# in main()
async with aiopoke.AiopokeClient() as client:
ability = await client.get_ability(1)
print(ability)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiopokeapi-0.1.1.tar.gz
(29.1 kB
view hashes)
Built Distribution
aiopokeapi-0.1.1-py3-none-any.whl
(54.0 kB
view hashes)
Close
Hashes for aiopokeapi-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09b631034dc4b506a8c61b08685cbde89a1c7189e4e4f0633069ebc06b99c05a |
|
MD5 | 24cd57196c9ff4e7bfd4324f543f00df |
|
BLAKE2b-256 | e8c7a13a68648f71de7c893f2468e443f74a7994551056e6e8af5e1c3400997e |