pymal
Python access to MyAnimeList data. Objects are lazy-loading: MAL is only contacted when you first access a property.
Docs: https://varyg1001.github.io/pymal/
Install
The package is published as pymal-ng; the import name is pymal.
pip install pymal-ng # or: uv add pymal-ng
Requires Python 3.11–3.14.
Quick start
from pymal.anime import Anime
a = Anime(52991) # no network call yet
print(a.title) # first access fetches from MAL
print(a.score, a.episodes)
print(a.genres)
With an account (private lists, add/update/delete entries). MAL's website login has a captcha, so pymal can't log in with a password; there are two ways:
from pymal.account import Account
account = Account("your-username")
# 1. The official API (stable; everything works). Create an app once at
# https://myanimelist.net/apiconfig and log in once; tokens are saved and refreshed.
account.authorize("your-client-id")
# 2. Experimental: the cookies of your browser (status, score and progress only).
account.login_with_cookie("cookies.txt") # an export of your browser's cookies
for entry in account.animes:
print(entry.title, entry.my_score)
entry = Anime(1887).add(account) # add to the list (Plan to Watch)
entry.my_score = 9
entry.update()
Anime, manga, search, seasons and anyone's public list need no login. See the account docs for the details and limits.
Also available: Manga, Seasons/Season, and search via
SearchAnimesProvider / SearchMangasProvider. See the
tutorial and API reference.
Development
git clone https://github.com/varyg1001/pymal
cd pymal
uv sync
uv run pytest # offline tests; live account tests skip
MAL_USERNAME=you MAL_SESSIONID=cookies.txt uv run pytest # include live account tests
# or MAL_CLIENT_ID=… MAL_ACCESS_TOKEN=… (see docs/testing.md)
See docs/changelog.md for release history.
Credits
Originally created by tomer gelber and Aur Saraf (pymal-developers/pymal).
The 1.0 revival was done mostly with AI, to fix breakage from outdated dependencies and MAL's HTML changes.
License
BSD 3-Clause — see LICENSE.
Metadata
Release files for pymal-ng 2.0.0
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 |
|---|---|---|---|---|
| pymal_ng-2.0.0.tar.gz | 36.6 kB | With provenance | Details for pymal_ng-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pymal_ng-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for pymal_ng-2.0.0-py3-none-any.whl |
Total release size: 87.6 kB
Release files / pymal_ng-2.0.0.tar.gz
| Download URL | pymal_ng-2.0.0.tar.gz |
|---|---|
| Size | 36.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
685611a9a9ac16eb0b83c0e6d7bbe02c7e8e281cbb81b9e8e3fb1fc8c395c14d
|
|
BLAKE2b-256 checksum How to use checksums |
f2883dc2928d6a5b8442999855eeae7326eec091835a7164a2ce82c855c836f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / pymal_ng-2.0.0-py3-none-any.whl
| Download URL | pymal_ng-2.0.0-py3-none-any.whl |
|---|---|
| Size | 51.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9eca5810df34b3f9c46e71b8409274d01f5a352c27d7c4df36f74a3a85f9985f
|
|
BLAKE2b-256 checksum How to use checksums |
a3eac10ecd6817c14d865309975d645f22297da9ce1ed46f8eff914ce71bf429
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logSecurity for pymal-ng 2.0.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pymal_ng-2.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logA 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.