Skip to main content

An asynchronous API wrapper for the pokeapi.

Project description

Aiopokeapi

Tests Pypi Python License Style

An asynchronous API wrapper for the pokeapi written in Python.

Key Features

  • Use of modern Python keywords: async and await.
  • Fully typehinted, no need to look at documentations!
  • Objects get cached, this increases speed and avoids unnecessary API requests.

Installation

pip install aiopokeapi

Getting started

Aiopoke's goal is to be simple and easy to use:

import asyncio
import aiopoke


async def main():
    client = aiopoke.AiopokeClient()

    ability = await client.get_ability(1)
    print(ability)

    await client.close()

asyncio.run(main())

Or even better, using a context manager:

# in main()
async with aiopoke.AiopokeClient() as client:
    ability = await client.get_ability(1)
    print(ability)

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

aiopokeapi-0.1.0.tar.gz (28.6 kB view hashes)

Uploaded Source

Built Distribution

aiopokeapi-0.1.0-py3-none-any.whl (54.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