Skip to main content

KizamuManga

📚 KizamuManga State License

KizamuManga is a command-line tool to search, download, and convert manga chapters into CBZ files from different online sources.

✨ Main Features

  • 🔎 Interactive search for manga and chapter selection directly from the terminal.
  • ⚡ Asynchronous downloads with concurrency control, automatic CBZ export, and cleanup of temporary files.
  • 🖼️ Optional image processing: grayscale conversion, margin cropping, and proportional resizing.
  • 🌐 Multi-source support (WeebCentral, InManga, and LeerMangaEsp) with an extensible scraping system based on Playwright.
  • 📊 Progress indicators and rotating logs for easy tracking of execution.

⚡ Quick Start

  1. Install the program package via pip
pip install kizamu-manga
  1. Install the playwright browsers
playwright install
  1. start searching or installing a manga
kizamumanga search "One Piece"
kizamumanga install "One Piece"

🧾 Requirements

  • Python 3.9 or higher.
  • Dependencies listed in requirements.txt.
  • Playwright installed along with its browsers (playwright install).
  • Access to the supported websites to fetch online chapters.

⚙️ Installation

If you just want to use the tool:

pip install kizamu-manga
playwright install

Option 2: Install from source (for developers)

# Clone the repository
git clone https://github.com/<your-user>/kizamu-manga.git
cd kizamu-manga

# (Optional) Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate   # Linux/Mac
.venv\Scripts\activate      # Windows

# Install dependencies and the package in editable mode
pip install -e .

# Install Playwright browsers
playwright install

Now you can run the tool directly using the kizamumanga command or:

python -m kizamumanga.main

🔧 Configuration

The config.toml file (at the project root) allows customization of parameters such as:

Key Description
cbz_path Destination folder for CBZ files (default: Documents/manga_downloads).
website Active source (weeb_central -> stable, inmanga-> unstable, leermangaesp) -> unstable
multiple_tasks Maximum number of concurrent downloads.
color Export in color (true) or grayscale (false).
cropping_mode Enable automatic margin cropping.
width / height Target resolution; leave empty to keep original size.

You can also modify configuration directly from the terminal. Here are some common use cases:

Change scraper source and concurrency:

  kizamumanga config scraper --website "inmanga" --multiple_tasks 5
  • This switches the active scraper to inmanga and sets the maximum number of parallel download tasks to 5.

Change output folder for CBZ files:

  kizamumanga config paths --cbz_path "./my_manga"
  • This updates the destination directory where downloaded CBZ files are stored.

Apply a predefined resolution profile:

Currently supported device presets: boox_go_7 (more coming soon).

  kizamumanga config dimensions --device "boox_go_7"
  • This automatically assigns width/height settings based on the Boox Go 7 device preset.

Manually set output resolution:

  kizamumanga config dimensions --width 1080 --height 1440
  • This forces a custom resolution (1080×1440 px), overriding any preset device profile.

Export in grayscale with margin cropping enabled:

  kizamumanga config output --color false --cropping_mode true
  • This configures exported images to be grayscale and have automatic margin cropping applied.

🕹️ Basic Usage

  • Search for manga: kizamumanga search "One Piece"
  • Download all chapters: kizamumanga install "One Piece"
  • Download a specific chapter or range:
    • kizamumanga install "One Piece" 5
    • kizamumanga install "One Piece" 10-15

By default CBZ files are saved in:

  • Linux/Mac: $HOME/Documents/manga_downloads
  • Windows: %USERPROFILE%\Documents\manga_downloads

You can change the location by using kizamumanga config paths --cbz_path "./my_manga".

🔄 Internal Workflow

  1. The Runner validates arguments, loads configuration, and sets up the selected scraper.
  2. Manga and chapter lists are fetched using Playwright + BeautifulSoup.
  3. Each chapter is downloaded via aiohttp, optionally processed, and packed into a CBZ.

🗂️ Project Structure

├── config.toml
├── pyproject.toml
├── requirements.txt
└── src/
    └── kizamumanga/
        ├── main.py
        ├── handlers/
        │   └── args_handler.py
        ├── engine/
        │   ├── runner.py
        │   ├── downloader.py
        │   ├── image_converter.py
        │   └── paths.py
        ├── scraping/
        │   ├── base.py
        │   ├── weeb_central.py
        │   ├── inmanga.py
        │   └── leermangaesp.py
        └── utils/
            ├── logger.py
            ├── loading_spinner.py
            └── general_tools.py

📜 License

This project is under the license MIT.

Metadata

Release files for kizamu-manga 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kizamu-manga 1.2.0
File Size Uploaded Provenance Actions
kizamu_manga-1.2.0.tar.gz 21.5 kB Without provenance Details for kizamu_manga-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kizamu-manga 1.2.0
File Interpreter ABI Platform Actions
kizamu_manga-1.2.0-py3-none-any.whl Python 3 none any Details for kizamu_manga-1.2.0-py3-none-any.whl

Total release size: 51.2 kB

Release files / kizamu_manga-1.2.0.tar.gz

Download URL kizamu_manga-1.2.0.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
482d611cc46c9664341fbd59f173fe2f9e033a1894e144bcad498cb6fe1f7a56
BLAKE2b-256 checksum
How to use checksums
d6efcce2c88615a7a7c7617a23d6338b33762984d565cb79ca83afb0575406f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / kizamu_manga-1.2.0-py3-none-any.whl

Download URL kizamu_manga-1.2.0-py3-none-any.whl
Size 29.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f991c9131431c23ef20485fb7f7dc064c7d30aee8e7893f48e9f77a2f51bfef8
BLAKE2b-256 checksum
How to use checksums
73176354ec359e17694151c0bd85a3d52d9a638a3c9c5e47f754f195fd2ea22a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Security for kizamu-manga 1.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page