This release is a pre-release and may not be stable for production use.
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
Better caching
It's very recommended to install the library with lru-dict, you can do this by installing the wrapper with this command:
pip install async_pokepy[lru]
The wrapper will throw a warning if you try to use it without this extra package.
Tests and docs
If you also want to be able to run the tests/lint install it with:
pip install async_pokepy[tests]
The best way to run tests is by using tox.
For docs building:
pip install async_pokepy[docs]
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".
You can check out more examples in the example folder in the github repository or in the introduction section of the docs.
Metadata
Release files for async-pokepy 0.1.5a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| async_pokepy-0.1.5a0.tar.gz | 18.3 kB | Without provenance | Details for async_pokepy-0.1.5a0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| async_pokepy-0.1.5a0-py3.7.egg | Legacy Egg format | - | - | Details for async_pokepy-0.1.5a0-py3.7.egg |
| async_pokepy-0.1.5a0-py3.6.egg | Legacy Egg format | - | - | Details for async_pokepy-0.1.5a0-py3.6.egg |
| async_pokepy-0.1.5a0-py3.5.egg | Legacy Egg format | - | - | Details for async_pokepy-0.1.5a0-py3.5.egg |
| async_pokepy-0.1.5a0-py3-none-any.whl | Python 3 | none | any | Details for async_pokepy-0.1.5a0-py3-none-any.whl |
Total release size: 250.0 kB
Release files / async_pokepy-0.1.5a0.tar.gz
| Download URL | async_pokepy-0.1.5a0.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1422a0e914f71072a65bd8c8b8fca22e21583d1470a134de491687db85b5c8af
|
|
BLAKE2b-256 checksum How to use checksums |
b05f2b7a1b5932e8b6c4dfa8dd504a4e5d6178d20dbf2325f55a62955540fad0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / async_pokepy-0.1.5a0-py3.7.egg
| Download URL | async_pokepy-0.1.5a0-py3.7.egg |
|---|---|
| Size | 66.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
a87ba574c19e42682f50659dcd05162dfae42ff9703a1d44efc7f534324a27a3
|
|
BLAKE2b-256 checksum How to use checksums |
be65d92ce681ebb6343b6ef8c68df0c3ff411775244f2f55ae420f40c852274d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / async_pokepy-0.1.5a0-py3.6.egg
| Download URL | async_pokepy-0.1.5a0-py3.6.egg |
|---|---|
| Size | 67.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
88adde7674a4df381aa94364e19587eca655faa27e08c7262e26325e2fc2db82
|
|
BLAKE2b-256 checksum How to use checksums |
88394aaaef7f7653dfd926eec5ac8f361d8b30b6bfb2e42ff9fa1ad35ec64464
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / async_pokepy-0.1.5a0-py3.5.egg
| Download URL | async_pokepy-0.1.5a0-py3.5.egg |
|---|---|
| Size | 67.6 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
6babc5ac1aea291ac4941ba9fb41302ca52437918931e31407077f3c3f0cc8cc
|
|
BLAKE2b-256 checksum How to use checksums |
01670fcfdc6a82f9be8d7542f3cf2b56679c2e8f400ffeb0d77e8bd8a4781c16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / async_pokepy-0.1.5a0-py3-none-any.whl
| Download URL | async_pokepy-0.1.5a0-py3-none-any.whl |
|---|---|
| Size | 30.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45972ef4c76d3ff9849d4480395063b162720fb8e464134edabb60df758982ed
|
|
BLAKE2b-256 checksum How to use checksums |
2d9b9623ec01885cfe613a010e89e9af91a498f2ca01df7dc8f99b016dcf7868
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for async-pokepy 0.1.5a0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.