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.2.0.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

comicon-1.2.0-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: comicon-1.2.0.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.9-zen1-2-zen

File hashes

Hashes for comicon-1.2.0.tar.gz
Algorithm Hash digest
SHA256 fa1a5d35b738a00262997a1b01f69b09e8c540be6c2281d4856aeb9949d381ee
MD5 25238731fa377a4af57f8453e5ccace4
BLAKE2b-256 49b86698a337d76de6947112effe1a9a119000e682901dd5759d03938ccb6b24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: comicon-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 30.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.9-zen1-2-zen

File hashes

Hashes for comicon-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6e2359bdbdd66d93e1cf177d9c88a7b21a23089aebda362d4a8cefbd188f864
MD5 b328a0318b0aa93a4d3b47afe07316a6
BLAKE2b-256 bda1b85107903b19aff288c8dadcaf6967307eb2d28ed38ea132625112cd6f1f

See more details on using hashes here.

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