kitsu.py_extened is an asynchronous API wrapper for Kitsu written in Python. (Extend kitsu.py)
Project description
Kitsu.py_extended
Important:
This is a fork of MrArkon/kitsu.py
Key Features
- Simple and modern Pythonic API using
async/await
- Fully typed
Requirements
Python 3.8+
Installing
To install the library, run the following commands:
# Linux/MacOS
python3 -m pip install -U kitsu.py_extended
# Windows
py -3 -m pip install -U kitsu.py_extended
Usage
Search for an anime:
import kitsu
import asyncio
client = kitsu.Client()
async def main():
anime = await client.search_anime("jujutsu kaisen", limit=1)
print("Canonical Title: " + anime.canonical_title)
print("Average Rating: " + str(anime.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 directory.
License
This project is distributed under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for kitsu.py_extended-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66ce258a2c886ccfc0708d7421f7367f2d7b74c0bc54c8683a4a26026a6725a8 |
|
MD5 | b0e72f8b8fb0a96cb28295ae126dcc8f |
|
BLAKE2b-256 | c7ce8bbb684c44f6e6a4571ea56f535540bc8c5822324f8b056e429cd142538c |