Skip to main content

An asynchronous Python API wrapper for the PokeAPI

Project description

Zeraora Latest PyPI version MIT License link Python version 3.6 and above

An asynchronous Python API wrapper for the PokéAPI

Installation

MacOS / Linux:

python3 -m pip install -U asyncpokepy

Windows:

py -3 -m pip install -U asyncpokepy

Usage

You must create an instance of the pokeclient in order to utilise its functionality:

from asyncpokepy import pokeclient
pokeclient = pokeclient()

Examples

These examples assume you have created an instance as above.

async def getpikachu():
    # This will return an object, setting object to False will return a dictionary
    return pokeclient.getpokemon('pikachu', object=True)

Output:

<asyncpokepy.objects.Pokemon object at 0x7fa4bb929580>

Authors

asyncpokepy was written by Raj Sharma.

PokéAPI was constructed by Paul Hallett.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asyncpokepy-0.1.4.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

asyncpokepy-0.1.4-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file asyncpokepy-0.1.4.tar.gz.

File metadata

  • Download URL: asyncpokepy-0.1.4.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

File hashes

Hashes for asyncpokepy-0.1.4.tar.gz
Algorithm Hash digest
SHA256 7183c995ac1ec266845d7cece2b96c38f31776cf7fb2d53505ed4af113c57615
MD5 40d6ccd0d8c25e0fcbc21b96a2aa552a
BLAKE2b-256 176997aafa5664d924746a4ad2274240762ca8608125d73f373a3071afe3cab0

See more details on using hashes here.

File details

Details for the file asyncpokepy-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: asyncpokepy-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

File hashes

Hashes for asyncpokepy-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6d023a099e503b936dee4138a1860f90df4982e3bd7331cd0af25d4026794307
MD5 3050799f97c29a28e9269276e90ff46b
BLAKE2b-256 7137c8ea363b7ed86b2ba4ad7bdafae5ef3d5b41e3316f03a25ef7d1d6a2bff5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page