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? Supports table of contents?
CBZ :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
EPUB :heavy_check_mark: :heavy_check_mark: :heavy_check_mark:
PDF :heavy_check_mark: :heavy_check_mark: :x:
MOBI :x: :heavy_check_mark: :heavy_check_mark:

Format discrepancies

  • Formats that do not support a table of contents will encode them so that they are restored if converted back to a format that supports them.
  • 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.5.0.tar.gz (25.3 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.5.0-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: comicon-1.5.0.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.2 Linux/6.14.2-zen1-1-zen

File hashes

Hashes for comicon-1.5.0.tar.gz
Algorithm Hash digest
SHA256 699566387ad339a773aad292aec7ea19bc02c133725500f79182dd56f2861f1f
MD5 94c9b4db5cf7d87ad3d9acd155707b08
BLAKE2b-256 fb07bd544bfe0baa6e341c59a5bbf613cbde55063829f2dfff7a0a8c5637cf50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: comicon-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 32.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.2 Linux/6.14.2-zen1-1-zen

File hashes

Hashes for comicon-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e3d00985d38680423be4be4161fc5e16df6959b47b943fa0c6100c213d3c34e
MD5 828047f3feeea917c50f2dd0fb01e2fd
BLAKE2b-256 31d34fc23203e658fbdc42e1b5795ef63f3b90d1aa81b99c3e44d98eb5aa43fc

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