Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

async_pokepy

PyPI pyversions PyPI status PyPI license Documentation Status Pipelines Status

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"

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.7a0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

async_pokepy-0.0.7a0-py3.7.egg (31.4 kB view details)

Uploaded Egg

async_pokepy-0.0.7a0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file async_pokepy-0.0.7a0.tar.gz.

File metadata

  • Download URL: async_pokepy-0.0.7a0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for async_pokepy-0.0.7a0.tar.gz
Algorithm Hash digest
SHA256 2be06c896265e8e8c9b614f87e8ee9a1eeeda3115150511029e04025492e7dd5
MD5 ca0558946bb4e261a807ac0b1cbf7b83
BLAKE2b-256 ee9fa85923a86a35c99e0a2d561cd8f43ffbb130d318281586fee233404b8800

See more details on using hashes here.

File details

Details for the file async_pokepy-0.0.7a0-py3.7.egg.

File metadata

  • Download URL: async_pokepy-0.0.7a0-py3.7.egg
  • Upload date:
  • Size: 31.4 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for async_pokepy-0.0.7a0-py3.7.egg
Algorithm Hash digest
SHA256 d4ff4f9739e5fda2b7a785b8707b684be5f2b08940af4421139d4edb65d40458
MD5 243743afc5bbab745f0a4b77f7d87396
BLAKE2b-256 c318164ecd1a435b470e00c27f2f54437af4a2ec47ab97ba738c724a26a179d1

See more details on using hashes here.

File details

Details for the file async_pokepy-0.0.7a0-py3-none-any.whl.

File metadata

  • Download URL: async_pokepy-0.0.7a0-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for async_pokepy-0.0.7a0-py3-none-any.whl
Algorithm Hash digest
SHA256 79a669eddaf09c0a34520dcf56183391ef5a3931e403906dff6329a06b61dcb1
MD5 a8213df92b13cc80592bd792ebb45093
BLAKE2b-256 33547f209d970a10347f41e76850fe58f765ac8f9928ceb79a0ae2a97f92cd3b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page