https://github.com/ravencentric/mangainfo
Libary and a CLI tool to generate mediainfo for manga archives.
https://github.com/ravencentric/mangainfo
Last synced: over 1 year ago
JSON representation
Libary and a CLI tool to generate mediainfo for manga archives.
- Host: GitHub
- URL: https://github.com/ravencentric/mangainfo
- Owner: Ravencentric
- License: unlicense
- Created: 2024-05-11T13:37:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-13T08:19:46.000Z (about 2 years ago)
- Last Synced: 2025-02-22T00:38:05.992Z (over 1 year ago)
- Language: Python
- Homepage: https://ravencentric.github.io/mangainfo/
- Size: 650 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mangainfo
[](https://pypi.org/project/mangainfo/)






[](https://codecov.io/gh/Ravencentric/mangainfo)
## Table Of Contents
* [About](#about)
* [Installation](#installation)
* [Docs](#docs)
* [License](#license)
## About
`mangainfo` is both a library and CLI tool to generate mediainfo for manga archives. This relies on [archivefile](https://ravencentric.github.io/archivefile/) for reading the archives and [pymediainfo](https://pymediainfo.readthedocs.io/en/stable/) for generating the mediainfo.
## Installation
`mangainfo` is available on [PyPI](https://pypi.org/project/mangainfo/), so you can simply use [pip](https://github.com/pypa/pip) to install it.
```sh
pip install mangainfo
```
## Usage
As a library:
```py
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:
```sh
❯ 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](https://ravencentric.github.io/mangainfo/api-reference/mangaparser/) for more details.
## Docs
Checkout the complete documentation [here](https://ravencentric.github.io/mangainfo/).
## License
Distributed under the [Unlicense](https://choosealicense.com/licenses/unlicense/) License. See [UNLICENSE](https://github.com/Ravencentric/mangainfo/blob/main/UNLICENSE) for more information.