A simple asynchronous wrapper for the PokeAPI.co API.
Project description
async_pokepy
An, in the works, asynchronous wrapper for the PokeAPI.co API.
You can check out the (failing) pipelines @ gitlab.
Documentation
The docs are available @ readthedocs.
Installing
The wrapper is available on PyPi, you can install it with:
pip install async_pokepy
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file async_pokepy-0.1.1a0.tar.gz.
File metadata
- Download URL: async_pokepy-0.1.1a0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98fa429c69ccd6df187631000c4edeb390ed2024c20683d54c120ed4463914d4
|
|
| MD5 |
1cddf0051af8a0b956e9314c613b4448
|
|
| BLAKE2b-256 |
7415fe902eb4047baf9082dc1c6715758bcf67ad60d57b6beb1ec5c799433ed0
|
File details
Details for the file async_pokepy-0.1.1a0-py3.7.egg.
File metadata
- Download URL: async_pokepy-0.1.1a0-py3.7.egg
- Upload date:
- Size: 50.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2150deacdae7548ea14345764137da023bef3affa14c169988f99f4676fdf5ef
|
|
| MD5 |
04f29e2c8e12f72ad94bb4eb6f9090f5
|
|
| BLAKE2b-256 |
c2f641e1ea3ef6baf07f0e485c2379c150e947425be2ccd87358fba4cc22c3a0
|
File details
Details for the file async_pokepy-0.1.1a0-py3.6.egg.
File metadata
- Download URL: async_pokepy-0.1.1a0-py3.6.egg
- Upload date:
- Size: 50.3 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4227a7c0e7feccc2519a61062eabd0aab12a3be7facde8d3be998dd12dda3c7e
|
|
| MD5 |
3b1bba589d18054dd71f04a01af4c354
|
|
| BLAKE2b-256 |
abd38c98345f705f9359bd90e94a166188c81cd0de1881f0f41ef4f0059cce94
|
File details
Details for the file async_pokepy-0.1.1a0-py3.5.egg.
File metadata
- Download URL: async_pokepy-0.1.1a0-py3.5.egg
- Upload date:
- Size: 50.8 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fb5d52c42f2c549bf3f8a161cf7c0927feef176ae20dcf6391bf7b6baddd41a
|
|
| MD5 |
fc1b9ca61a168ef8eea3c98a7a328502
|
|
| BLAKE2b-256 |
53355868772a28bd3903fcc85cc0833f9578480a1192210bfc629766c018112a
|
File details
Details for the file async_pokepy-0.1.1a0-py3-none-any.whl.
File metadata
- Download URL: async_pokepy-0.1.1a0-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32eba929ed5bf64e247df0a9ee143f5285fc45ba8b9aff6a1c2348e9da206054
|
|
| MD5 |
123a2e2538038dc77fe3fe17b92b0164
|
|
| BLAKE2b-256 |
1f7af0c0b4a9cf44dd8b5481df21cbc35c7eff95b0bb04cf4ae7732c5e276f97
|