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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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