Skip to main content

A simple comic conversion library between CBZ/EPUB/MOBI/PDF

Project description

Comicon

Comicon is a lightweight comic converter library between CBZ, PDF, EPUB, and MOBI that preserves metadata. Once Comicon has converted a comic, it is guaranteed that the reverse conversion will restore the original comic with all of its original metadata.

Usage

For a command line interface, please see Mandown.

import comicon

comicon.convert("comic.cbz", "comic.epub")

Installation

Amazon's Kindlegen is required if you want to convert to MOBI. See here for more information.

Comicon is available from PyPI:

pip install comicon

Supported conversions

Format Convert from? Convert to?
CBZ :heavy_check_mark: :heavy_check_mark:
EPUB :heavy_check_mark: :heavy_check_mark:
PDF :heavy_check_mark: :heavy_check_mark:
MOBI :x: :heavy_check_mark:

Format discrepancies

  • Only EPUB supports a table of contents. CBZ and PDF will encode the table of contents so that it is restored upon converting to EPUB.
  • PDF does not support importing genre data due to a lack of library support. This may be worked around in the future.

Notes

Under the hood, Comicon converts each format into the Comicon Intermediate Representation (CIR) — more or less a strictly structured folder, which allows for many guarantees to be made for each input and output plugin. See comicon.cirtools for more information.

For new input and output formats to be added, they should be added in comicon.inputs or comicon.outputs respectively as a new module and in the __init__.py file(s).

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

comicon-1.3.0.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

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

comicon-1.3.0-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file comicon-1.3.0.tar.gz.

File metadata

  • Download URL: comicon-1.3.0.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.12.4-zen1-1-zen

File hashes

Hashes for comicon-1.3.0.tar.gz
Algorithm Hash digest
SHA256 ce3cd51899bb9dbddd01460c5e43bb200974fb4238cf799082d1bac0a41bda1c
MD5 bb2b101ed85b9f1393ffc28d4989c6e4
BLAKE2b-256 99b133bc44867d674259a5638c2157f25f58d3d82d0db60d613f71847cfd60d1

See more details on using hashes here.

File details

Details for the file comicon-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: comicon-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 31.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.12.4-zen1-1-zen

File hashes

Hashes for comicon-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e766a975cb335e1927abc61f885d902ffa325ff592fd179ce5b1c18737e8aea7
MD5 78e5d515c8a7dc6d48d1c462279d0658
BLAKE2b-256 24d0c2518ad452beb2019a2577f98e51031323ffbacda8596202a6cf5168e94e

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