Skip to main content
Pre-release

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

Logo async_pokepy

PyPI pyversions PyPI status PyPI license Documentation Status Pipelines Status Build Status CircleCI AppYevorCI

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

If you also want to be able to run the tests/lint install it with:

pip install async_pokepy[tests]

For building the docs:

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.

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.1.4a0.tar.gz (17.4 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.1.4a0-py3.7.egg (62.4 kB view details)

Uploaded Egg

async_pokepy-0.1.4a0-py3.6.egg (62.7 kB view details)

Uploaded Egg

async_pokepy-0.1.4a0-py3.5.egg (63.3 kB view details)

Uploaded Egg

async_pokepy-0.1.4a0-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: async_pokepy-0.1.4a0.tar.gz
  • Upload date:
  • Size: 17.4 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

Hashes for async_pokepy-0.1.4a0.tar.gz
Algorithm Hash digest
SHA256 52e839f8ad57a6ea7e23a6db57ad01483ebaff858676cf57e0e63a75e62f96d7
MD5 4c7bcfc08e5497a8311d4aa824657e8b
BLAKE2b-256 968a06fecb7031eaebb780d539ec8cc7d14af3d4e2c2a5cf82896cbcae61775f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: async_pokepy-0.1.4a0-py3.7.egg
  • Upload date:
  • Size: 62.4 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

Hashes for async_pokepy-0.1.4a0-py3.7.egg
Algorithm Hash digest
SHA256 5c9ffeb001cbe780e778ee48984481543a8dc3cb0eb4b1e26b1d19b90858ad0d
MD5 67a144b8fff4e024142b829b85a26967
BLAKE2b-256 66bbe5c8457ed161b9ed48b50b1c84632a9b093b8ccb888932d60f5a53c60ea6

See more details on using hashes here.

File details

Details for the file async_pokepy-0.1.4a0-py3.6.egg.

File metadata

  • Download URL: async_pokepy-0.1.4a0-py3.6.egg
  • Upload date:
  • Size: 62.7 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

Hashes for async_pokepy-0.1.4a0-py3.6.egg
Algorithm Hash digest
SHA256 2617b1418bc417d622e649d6f17a0d71e41c4f5036567ed0a5a7223455d0dccb
MD5 01ff088b1dcb8b3dcbac29c49a17fab5
BLAKE2b-256 9ed4967283a33a27d93473d2438ebdc19453f3473d5e51cefdb50f9b945c33a8

See more details on using hashes here.

File details

Details for the file async_pokepy-0.1.4a0-py3.5.egg.

File metadata

  • Download URL: async_pokepy-0.1.4a0-py3.5.egg
  • Upload date:
  • Size: 63.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

Hashes for async_pokepy-0.1.4a0-py3.5.egg
Algorithm Hash digest
SHA256 4ebe4c0e674052ac08d5729421551602e074bbb057cdfaec9fc6a44904fa50d6
MD5 2ab2c32b9cce662965dffe0e11c2216a
BLAKE2b-256 34e0be7d92c958e0a59e67c6ab1dc3699a072d6e26f29642a2f51b3ca090a3bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: async_pokepy-0.1.4a0-py3-none-any.whl
  • Upload date:
  • Size: 28.6 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

Hashes for async_pokepy-0.1.4a0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a3ad486892cf2130eff6c11041c4b4fa3d4b19590cb28bf8acea53af49e33a1
MD5 90cc5e3eebaf990a501ffcfd6c6375cc
BLAKE2b-256 ece158c4fe247bead11338044781a3ce040a1d1bfba42159372bc3bdd5d63020

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