Skip to main content

A MyAnimeListAPI wrapper written in Python.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mal_api_py-0.10.1.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mal_api_py-0.10.1-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

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

Hashes for mal_api_py-0.10.1.tar.gz
Algorithm Hash digest
SHA256 32772857c00a9256af493ea34fc503ac670b5e176ef22d19a047caebc0d900fd
MD5 bd519ccac904e515fcf847c2dc7d87cf
BLAKE2b-256 6ea46b448963adf146a36eb78d336b0fc7a9c48de1c77fc3ef64ae50e8b900d2

See more details on using hashes here.

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

Hashes for mal_api_py-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41b78813e44b1f7af0597223105ebad5c8fc9ddc1422c972478b61bb4ef35865
MD5 c41037ade74c3b30d14c2fa04ea00b09
BLAKE2b-256 81d1eb43d261d862bb5546a13d2ab77318460965900aef1924f0cf5374800f33

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page