Skip to main content

An asynchronous API wrapper for the pokeapi.

Project description

AioPokéApi

An Asynchronous API wrapper for the PokéApi.

Report issue · Request feature · Fork project

🗝️ Key Features

  • Use of modern Python keywords: async and await.
  • Every object is fully type hinted.
  • Objects get cached, this increases speed and avoids unnecessary API requests.

🌍 Documentation

AioPokéApi has a very minimal website, which you can find here. It also has some documentation.

☄️ Installation

pip install aiopokeapi
⚙️ Didn't work?

Depending on your Python installation, you might need to use one of the following:

  • Python is not in PATH

    path/to/python.exe -m pip install aiopokeapi
    
  • Python is in PATH but pip is not

    python -m pip install aiopokeapi
    
  • Unix systems can use pip3/python3 commands

    pip3 install aiopokeapi
    
    python3 -m pip install aiopokeapi
    
  • Using multiple Python versions

    py -m 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)
   generation = await ability.generation.fetch()

   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)
   generation = await ability.generation.fetch()

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.10.tar.gz (12.3 MB view details)

Uploaded Source

Built Distribution

aiopokeapi-0.1.10-py3-none-any.whl (60.4 kB view details)

Uploaded Python 3

File details

Details for the file aiopokeapi-0.1.10.tar.gz.

File metadata

  • Download URL: aiopokeapi-0.1.10.tar.gz
  • Upload date:
  • Size: 12.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for aiopokeapi-0.1.10.tar.gz
Algorithm Hash digest
SHA256 238ac6559e1e6c6c66f1bfafa9f6f4c81a357cb70be5be8f1b4282aa17ba722a
MD5 ff3582f8a16de66a9b8b50ce818046a4
BLAKE2b-256 ad5da29333d0eb45c5b415f92054924901fa74a35f38ef26d19218dae7c9fbd1

See more details on using hashes here.

File details

Details for the file aiopokeapi-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: aiopokeapi-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 60.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for aiopokeapi-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 734f51fcd888671ce5b50436e28f2a88e7ed4fcab3ceb5bde63cd7c90d47776a
MD5 20f6f55f0a2743aa918af299be897c87
BLAKE2b-256 ed851adee4df1986d49781fce3bca2c1c5ab1d556452339404ad731047e24d5a

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