An asynchronous API wrapper for the pokeapi.
Project description
Aiopokeapi
An asynchronous API wrapper for the pokeapi written in Python.
Key Features
- Use of modern Python keywords:
async
andawait
. - Fully typehinted, no need to look at documentations!
- Objects get cached, this increases speed and avoids unnecessary API requests.
Installation
pip install aiopokeapi
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.0.tar.gz
(28.6 kB
view hashes)
Built Distribution
aiopokeapi-0.1.0-py3-none-any.whl
(54.0 kB
view hashes)
Close
Hashes for aiopokeapi-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d75046eebfc2cf82bbd0bb05e44a3dfe0961b31d4e15c884783b6b3032bd4de8 |
|
MD5 | 1972118e1be4b33467fde635514920a6 |
|
BLAKE2b-256 | e5dd446d89957ae43e474351027ac5a468c573e6f30dd715a2a4fae2f301a136 |