A MyAnimeListAPI wrapper written in Python.
Project description
mal.py
A MyAnimeList API wrapper written in Python.
The objective for now is to cover queries for the publicly available information, support for taking actions on a user list is not planned.
Features
- anime and manga search given a keyword
- fetch details of an anime or manga given its id or its url
- list characters of an anime
- accessing public lists of users
- retrieving seasonal anime
- retrieve rankings for anime and manga
- retrieve forum boards and discussions
The next features that are planned to be implemented are:
- retrieve more information on recommendations and related entries
Installation
Python 3.8+ is needed.
To use this library:
- (optional) create a virtual environment
python -m venv .venvand activate it - install with
pip install mal-api.py - to perform requests you need an API token log in on MAL -> account settings -> API -> create ID
Usage
from mal import client
cli = client.Client('your token here')
anime = cli.get_anime(16498)
anime.title
>> Shingeki_no_Kyojin
Full documentation available here.
Code samples can be found in the examples folder.
Logging
This library uses the logging module to keep track of configuration changes and possible network errors. If you want to see the logs you need to configure the logging module yourself, for example:
import logging
logging.basicConfig(logging.level=INFO)
For more information on how to use logging refer to the documentation of python:
This project is still a work in progress, if you have problems or find bugs feel free to open an issue or start a discussion.
Useful links
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mal_api_py-0.10.1.tar.gz.
File metadata
- Download URL: mal_api_py-0.10.1.tar.gz
- Upload date:
- Size: 32.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32772857c00a9256af493ea34fc503ac670b5e176ef22d19a047caebc0d900fd
|
|
| MD5 |
bd519ccac904e515fcf847c2dc7d87cf
|
|
| BLAKE2b-256 |
6ea46b448963adf146a36eb78d336b0fc7a9c48de1c77fc3ef64ae50e8b900d2
|
File details
Details for the file mal_api_py-0.10.1-py3-none-any.whl.
File metadata
- Download URL: mal_api_py-0.10.1-py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41b78813e44b1f7af0597223105ebad5c8fc9ddc1422c972478b61bb4ef35865
|
|
| MD5 |
c41037ade74c3b30d14c2fa04ea00b09
|
|
| BLAKE2b-256 |
81d1eb43d261d862bb5546a13d2ab77318460965900aef1924f0cf5374800f33
|