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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiopokeapi-0.1.13-py3-none-any.whl (60.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiopokeapi-0.1.13.tar.gz
Algorithm Hash digest
SHA256 43d4eaca945cd2e5f0feed20146d3b924d4279c53dddf344a9b72c0e6dfb83f6
MD5 adc53a387d507cc972f02ff5e3fa1814
BLAKE2b-256 3aedf276c90be9230c69e6cdb6f43d848be03e7d1d759296f97104778fa2b61b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiopokeapi-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 60.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for aiopokeapi-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 1cb08ccc9acb9b037d4a33981362b6c92a89958a3a184290ce6513f1813d5eb0
MD5 9e3f2bb3576ee3a59b5efc5ff4d830e8
BLAKE2b-256 5a4e1545f4b394a2cc2b1cef344b33c2b62b73c1bad7690ecf99a5ec8b8f16cc

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 Pingdom Monitoring Sentry Error logging StatusPage Status page