Skip to content

Home

PyPI - Version PyPI - Python Version License Checked with mypy Ruff

GitHub Workflow Status GitHub Workflow Status

Table Of Contents

About

mangainfo is both a library and CLI tool to generate mediainfo for manga archives.

Installation

mangainfo is both a library and CLI tool to generate mediainfo for manga archives. This relies on archivefile for reading the archives and pymediainfo for generating the mediainfo.

pip install mangainfo

Usage

As a library:

from mangainfo import MangaParser

archive = "~/Blue Box (Digital) (1r0n)/Blue Box v06 (2023) (Digital) (1r0n).cbz"

manga = MangaParser(archive).partial_scan()

for page in manga.pages:
    print(page.resolution)

As a CLI:

 mangainfo --help
usage: mangainfo [-h] [--full] path

Generate mediainfo-esque text from a manga archive.

positional arguments:
  path        Path to a manga archive.

options:
  -h, --help  show this help message and exit
  --full      Scan every page. More accurate data but far slower.

Refer to the API reference for more details.

License

Distributed under the Unlicense License. See UNLICENSE for more information.