Skip to main content

mal.py

Downloads

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 .venv and 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)

Source distribution for mal-api.py 0.10.1
File Size Uploaded
mal_api_py-0.10.1.tar.gz 32.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mal-api.py 0.10.1
File Interpreter ABI Platform
mal_api_py-0.10.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.10.1 This release

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5

2 release files

0.4.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page