Metadata-Version: 2.1
Name: aiopokeapi
Version: 0.1.0
Summary: An asynchronous API wrapper for the pokeapi.
Home-page: UNKNOWN
Author: beastmatser
License: MIT
Platform: unix
Platform: linux
Platform: osx
Platform: cygwin
Platform: win32
Classifier: Natural Language :: English
Classifier: Framework :: AsyncIO
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiofiles (==0.8.0)
Requires-Dist: aiohttp (>=3.7.4)
Provides-Extra: testing
Requires-Dist: pytest (>=6.0) ; extra == 'testing'
Requires-Dist: pytest-cov (>=2.0) ; extra == 'testing'
Requires-Dist: mypy (>=0.910) ; extra == 'testing'
Requires-Dist: flake8 (>=3.9) ; extra == 'testing'
Requires-Dist: tox (>=3.24) ; extra == 'testing'

# Aiopokeapi

![Tests](https://github.com/beastmatser/aiopokeapi/actions/workflows/tests.yml/badge.svg)
![Pypi](https://img.shields.io/pypi/v/aiopokeapi.svg)
![Python](https://img.shields.io/pypi/pyversions/aiopokeapi.svg)
![License](https://img.shields.io/pypi/l/aiopokeapi.svg)
![Style](https://img.shields.io/badge/style-black-000000.svg)

 An asynchronous API wrapper for the [pokeapi](https://pokeapi.co/) 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

```sh
pip install aiopokeapi
```

## Getting started

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

```py
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:

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

```


