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
Metadata
Release files for mal-api.py 0.10.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mal_api_py-0.10.1.tar.gz | 32.5 kB | Without provenance | Details for mal_api_py-0.10.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mal_api_py-0.10.1-py3-none-any.whl | Python 3 | none | any | Details for mal_api_py-0.10.1-py3-none-any.whl |
Total release size: 65.0 kB
Release files / mal_api_py-0.10.1.tar.gz
| Download URL | mal_api_py-0.10.1.tar.gz |
|---|---|
| Size | 32.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32772857c00a9256af493ea34fc503ac670b5e176ef22d19a047caebc0d900fd
|
|
BLAKE2b-256 checksum How to use checksums |
6ea46b448963adf146a36eb78d336b0fc7a9c48de1c77fc3ef64ae50e8b900d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / mal_api_py-0.10.1-py3-none-any.whl
| Download URL | mal_api_py-0.10.1-py3-none-any.whl |
|---|---|
| Size | 32.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41b78813e44b1f7af0597223105ebad5c8fc9ddc1422c972478b61bb4ef35865
|
|
BLAKE2b-256 checksum How to use checksums |
81d1eb43d261d862bb5546a13d2ab77318460965900aef1924f0cf5374800f33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for mal-api.py 0.10.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.