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.1.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.1-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for comicon-1.3.1.tar.gz
Algorithm Hash digest
SHA256 1aa58fb64d8ee3d73410a73ffaa6b7b67d512da962c26676189fcfef18643623
MD5 afe707faf36787dd9957bf9c2aa3779c
BLAKE2b-256 54f9a11a0ed7c935cc85420cfb6d3091e2297350eefe6df7369a7435880b2731

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for comicon-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 960442963e46d499678ebe83207adf0b0d0be1c8518dc880acc464b1f0c288c0
MD5 e392abd2e1fb09bccfb3945edcc1d3e2
BLAKE2b-256 706723d14a887529e99c8409826add7320a58fdf33286589817bb84946a2487b

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