Metadata-Version: 2.1
Name: kitsu.py
Version: 0.1.1
Summary: A simple async python wrapper for the kitsu.io API.
Home-page: https://github.com/MrArkon/kitsu.py/
License: MIT
Keywords: kitsu,async kitsu,kitsu.py,kitsu api wrapper
Author: MrArkon
Author-email: mrarkon@outlook.com
Maintainer: MrArkon
Maintainer-email: mrarkon@outlook.com
Requires-Python: >=3.8,<4.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Games/Entertainment
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires-Dist: aiohttp (>=3.7.4,<4.0.0)
Requires-Dist: python-dateutil (>=2.8.2,<3.0.0)
Project-URL: Bug Tracker, https://github.com/MrArkon/kitsu.py/issues
Project-URL: Repository, https://github.com/MrArkon/kitsu.py/
Description-Content-Type: text/markdown

# Kitsu.py
[![PyPI](https://badge.fury.io/py/kitsu.py.svg)](https://pypi.org/project/kitsu.py)

A simple async python wrapper for the [Kitsu.io](https://kitsu.io) API.

## Key Features
* Simple and modern Pythonic API using `async/await`
* Fully type checked

## Requirements

Python 3.8+
* [aiohttp](https://pypi.org/project/aiohttp/)
* [python-dateutil](https://pypi.org/project/aiohttp/)

## Installing
To install the library, run the following commands:
```shell
# Linux/MacOS
python3 -m pip install -U kitsu.py

# Windows
py -3 -m pip install -U kitsu.py
```

## Getting started

Search for an anime:
```python
import kitsu
import asyncio

client = kitsu.Client()

async def main():
    data = await client.search_anime("jujutsu kaisen", limit=1)
    
    print("Canonical Title: " + data.canonical_title)
    print("Average Rating: " + str(data.average_rating))
    
    # Close the internal aiohttp ClientSession
    await client.close()

loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```
This prints:
```
Canonical Title: Jujutsu Kaisen
Average Rating: 85.98
```
You can find more examples in the [examples](https://github.com/MrArkon/kitsu.py/tree/master/examples/) directory.

## License

This project is distributed under the [MIT](https://github.com/MrArkon/kitsu.py/blob/master/LICENSE.txt) license.

