Skip to main content

Export and import your MangaDex library to/from MyAnimeList and AniList — with scores, statuses, and chapter progress

Project description

MangaDex Sync

Export and import your MangaDex library to/from MyAnimeList and AniList — with scores, statuses, and optional chapter progress — all from a single clean app.

Python Flask License PyPI Downloads


Features

  • Single app — Export, Import, and Convert in one place, no switching between scripts
  • Import — Restore your library from a MangaDex JSON backup or a MAL/AniList XML file
  • Fast mode — Exports titles + status in minutes (recommended)
  • Deep mode — Also fetches your last read chapter per manga (slower)
  • MAL XML — Ready to import at myanimelist.net/import.php (includes .gz)
  • AniList XML — Same format, ready to import at AniList
  • JSON backup — Full local backup of your library data
  • Scores — Fetches your MangaDex ratings and carries them over
  • Resume — Saves a checkpoint so it can pick up if interrupted
  • Skipped list — Shows exactly which manga had no MAL ID
  • Export history — Logs every export with timestamp and file list
  • Dry run mode — Simulate without writing any files
  • Native window — Opens as a desktop app via pywebview (or falls back to browser)

Requirements


Installation

pip install mangadex-sync

Everything including the native desktop window is included — no extra steps needed.


Usage

mangadex-sync

This opens a native desktop window. You can also open http://localhost:7337 in any browser — useful for accessing it from another device on the same network.


Step-by-step Guide

1. Get your MangaDex API credentials

  1. Go to mangadex.org/settings
  2. Scroll to API Clients → click Create
  3. Give it any name, set type to Personal
  4. Copy your Client ID and Client Secret

2. Export your library

  1. Open the app and go to the Export tab
  2. Fill in:
    • Client ID and Client Secret (from step 1)
    • Username and Password (your MangaDex login)
    • Save folder — where to save the output files
  3. Choose Fast or Deep mode (Fast is recommended)
  4. Click ⚡ Extract Entire Library

MAL User ID and MAL Username are optional. You do not need to fill them in to generate a working XML file. MAL identifies you by your login session when you upload — the ID and username fields in the XML header are just metadata and are ignored during import. Leave them blank if you don't know them.

3. Convert to XML

After export finishes, the Convert tab auto-fills with your exported files. Just:

  1. Click ⚡ Generate XML Files
  2. Files are saved to your chosen folder

4. Import to MAL / AniList

5. Import back to MangaDex

Use the Import tab to restore your library from:

  • A mdex_*.json backup file (exported by this app)
  • A MAL XML file (mal_*.xml)
  • An AniList XML file (anilist_*.xml)
  1. Browse or paste the path to your file
  2. Optionally enable Import Scores to restore your ratings
  3. Click Start Import

Fast vs Deep Mode

Fast Deep
Speed ⚡ Minutes 🐢 15–60+ min
Titles & status
Ratings/scores
Last read chapter
Recommended Only if you need progress

Deep mode fetches every individual chapter you've ever read to find your last one per manga. This can mean 5,000–10,000+ API calls for a large library, which is why Fast mode exists.


Output Files

For each status group (reading, completed, etc.) the app creates:

File Description
mdex_{status}_{timestamp}.xlsx Raw export data — used by Convert tab
mdex_{status}_{timestamp}.json Full JSON backup — used by Import tab
mal_{status}_{timestamp}.xml MAL import file
mal_{status}_{timestamp}.xml.gz Compressed version (also accepted by MAL)
anilist_{status}_{timestamp}.xml AniList import file

Resume

If the export is interrupted (crash, network error, you stopped it), the app saves a checkpoint after each completed status group. Click ▶ Resume on the Export tab to continue from where it left off.

To start fresh, go to Settings → Clear Checkpoint.


Troubleshooting

"Authentication failed"

  • Double-check your Client ID, Client Secret, username, and password
  • Make sure your API client is set to Personal type and is approved on MangaDex
  • Try the ✓ Test Credentials button first

"Failed to set status" during import

  • Make sure your API client exists and is approved at mangadex.org/settings
  • Check that your credentials are correct

Native window doesn't open

  • The app will fall back to your browser automatically with instructions on how to fix it
  • On Linux you may need to install a GTK system package — the app will tell you the exact command for your distro

Manga missing from MAL after import

  • Those titles are listed in the Skipped Manga section — they have no MAL ID on MangaDex
  • Add them manually on MAL

Slow export speed

  • The API enforces rate limits — the app already waits the minimum required between requests
  • Deep mode is inherently slow for large libraries — use Fast mode if chapter progress isn't critical

Dependencies

Package Purpose
flask Local web server
requests MangaDex API calls
pandas Excel file read/write
openpyxl Excel engine for pandas
pywebview Native desktop window
PyQt6 + PyQt6-WebEngine Qt backend for pywebview
qtpy Qt abstraction layer

Credits

Based on the original export scripts by Seriousattempts. Rewritten and extended with a web UI, Fast/Deep mode, import support, resume, score export, and AniList output.

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

mangadex_sync-2.1.0.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

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

mangadex_sync-2.1.0-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

Details for the file mangadex_sync-2.1.0.tar.gz.

File metadata

  • Download URL: mangadex_sync-2.1.0.tar.gz
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for mangadex_sync-2.1.0.tar.gz
Algorithm Hash digest
SHA256 36a46493cc923e7ad5d5054c7330bb7b21bc4a437c6d156aebf053a72c826e95
MD5 1cb8004230e2db242dcefc13c4b0a72f
BLAKE2b-256 39fcc9e2243cfd4139e6c84411069f7125120ac2de36e90b08082bb86bea0c89

See more details on using hashes here.

File details

Details for the file mangadex_sync-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: mangadex_sync-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for mangadex_sync-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3c9880958cb4eba6273979a9332068369d462c3ce773a05b1d8377fb5b6d6de
MD5 070f2d1c402feaefd77716dd7ddc50d5
BLAKE2b-256 ef34ab4c783098dc2a922d15dc8661beb2164bb21a48d5824c5cff286a1c3bc0

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