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_extended.py_extended
# Windows
py -3 -m pip install -U kitsu_extended.py_extended
Usage
Search for an anime:
import kitsu_extended
import asyncio
client = kitsu_extended.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
File details
Details for the file kitsu.py_extended-1.0.4.tar.gz
.
File metadata
- Download URL: kitsu.py_extended-1.0.4.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.17.1-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58572df8cd2ce8e054531dc6212df5e41dd816a408e65b9655f8628e7b52ba34 |
|
MD5 | f6f18e1da8905087246e4b6bdfd799bb |
|
BLAKE2b-256 | 1febceb3631ed5481061d18c567b917fb4c62c4bcd9d4a995012cbb85d3275a9 |
File details
Details for the file kitsu.py_extended-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: kitsu.py_extended-1.0.4-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.17.1-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b67892481417be2e2cfa9eb542584c371b58574b190ffaf16806b025d4866875 |
|
MD5 | 681f3be4566d05e38fdac3fc31cdae28 |
|
BLAKE2b-256 | 67c538c505a876e93c5ff9d896a1120cdeb9260132198094484b443af256b4b4 |