A simple asynchronous wrapper for the PokeAPI.co API.
Project description
async_pokepy
An, in the works, asynchronous wrapper for the PokeAPI.co API.
Documentation
Available available @ readthedocs.
Installing
At the moment you can only install it from git with:
pip install git+github.com/PendragonLore/async_pokepy.git
Example
import asyncio
import async_pokepy
async def main(query):
client = await async_pokepy.Client.connect()
pokemon = await client.get_pokemon(query)
fmt = " ".join(map(str, pokemon.abilities))
print("{0} has the abilities {1}".format(pokemon, fmt))
await client.close()
loop = asyncio.get_event_loop()
loop.run_until_complete(main("Snorlax"))
This will output: "snorlax has the abilities gluttony thick-fat immunity"
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
async_pokepy-0.0.6a0.tar.gz
(8.4 kB
view hashes)
Built Distributions
async_pokepy-0.0.6a0-py3.7.egg
(31.2 kB
view hashes)
Close
Hashes for async_pokepy-0.0.6a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb7be028a92571c4a739aee62085f96d283b838117faa4a46fae8c7ebf044dc3 |
|
MD5 | fa051da36ff8f252458b6cc44349345b |
|
BLAKE2b-256 | 52f85bbb32ac8582292a62d4dcdb9622835b8d281f56a9d68e278c77163cf1aa |