Skip to main content

Libary and a CLI tool to generate mediainfo for manga archives

Project description

mangainfo

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

GitHub Workflow Status (with event) GitHub Actions Workflow Status codecov

Table Of Contents

About

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.

Installation

mangainfo is available on PyPI, so you can simply use pip to install it.

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.

Docs

Checkout the complete documentation here.

License

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

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

mangainfo-0.1.1.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

mangainfo-0.1.1-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

Supported by

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