pyanimeinfo
Python anime information grabber
Installation
You can simply install it with pip command line from the official PyPI site.
pip install pyanimeinfo
For more information about installation, you can refer to Installation.
Quick Start
Accessing Information from Bangumi.tv
We can retrieve information from Bangumi.tv.
from pyanimeinfo.bangumitv import BangumiTVClient
client = BangumiTVClient()
# search subject from bangumi.tv
client.search_subjects('Railgun')
# query specific subject from bangumi.tv
# e.g. Railgun
client.get_subject(2585)
# list characters in this subjects
client.get_subject_characters(2585)
# query specific character
client.get_character(3575)
# list character related persons
# e.g. CV, artists
client.get_character_related_persons(3575)
# list character related subjects
# e.g. Railgun series
client.get_character_related_subjects(3575)
# get person
client.get_person(4670)
Accessing Information from MyAnimeList.net
We can access information from MyAnimeList. However, since the original MyAnimeList site does not provide a useful API, we utilize the unofficial API Jikan V4 to retrieve data from MyAnimeList.
from pyanimeinfo.myanimelist import JikanV4Client
client = JikanV4Client()
# search animes
client.search_anime('Railgun')
# get specific anime
client.get_anime(6213)
# get full information of specific anime
client.get_anime_full(6213)
# get characters in specific anime
client.get_anime_characters(6213)
# search characters
client.search_anime('misaka mikoto')
# get specific character
client.get_character(13701)
# get full information of specific character
client.get_character_full(13701)
# get character related information
client.get_character_related_animes(13701)
client.get_character_related_manga(13701)
client.get_character_voice_actors(13701)
client.get_character_pictures(13701)
Important Notes
-
The
pyanimeinfolibrary is primarily designed for querying anime-related information and is not a comprehensive client for bangumi.tv or any other website. Therefore, we currently do not plan to provide support for operations like user authentication and user sessions in the short term. Your understanding is appreciated. -
The reason this library is not named
pybangumitvis that our intention is not limited to integrating only the bangumi.tv website. In the future, we aim to introduce support for additional websites, including MyAnimeList, Fandom, and others. Stay tuned for updates.
Metadata
Release files for pyanimeinfo 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyanimeinfo-0.0.4.tar.gz | 19.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyanimeinfo-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.4 kB
Release files / pyanimeinfo-0.0.4.tar.gz
| Download URL | pyanimeinfo-0.0.4.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
442a8522649beebc555a2a9bf3e35e6ef9f6089ec58540f2431f6b2932b6791b
|
|
BLAKE2b-256 checksum How to use checksums |
3fd1f463b1179a5003b634a2ccb0bc592ac7ec6a268ac65b38cbb9f691ff0415
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / pyanimeinfo-0.0.4-py3-none-any.whl
| Download URL | pyanimeinfo-0.0.4-py3-none-any.whl |
|---|---|
| Size | 19.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3963d669fa8fae12bdba6118f0362fc1461000da3db214917590e5070b6e735
|
|
BLAKE2b-256 checksum How to use checksums |
09da62d7bae70b7854ae399d270f3d13e1ca2d00c5e6ed3a28e7fdd4eb8df80a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|