Skip to main content

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

Metadata

Release files for comicon 1.5.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 comicon 1.5.0
File Size Uploaded
comicon-1.5.0.tar.gz 25.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for comicon 1.5.0
File Interpreter ABI Platform
comicon-1.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 57.4 kB

Release files / comicon-1.5.0.tar.gz

Download URL comicon-1.5.0.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
699566387ad339a773aad292aec7ea19bc02c133725500f79182dd56f2861f1f
BLAKE2b-256 checksum
How to use checksums
fb07bd544bfe0baa6e341c59a5bbf613cbde55063829f2dfff7a0a8c5637cf50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.13.2 Linux/6.14.2-zen1-1-zen

Release files / comicon-1.5.0-py3-none-any.whl

Download URL comicon-1.5.0-py3-none-any.whl
Size 32.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e3d00985d38680423be4be4161fc5e16df6959b47b943fa0c6100c213d3c34e
BLAKE2b-256 checksum
How to use checksums
31d34fc23203e658fbdc42e1b5795ef63f3b90d1aa81b99c3e44d98eb5aa43fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.13.2 Linux/6.14.2-zen1-1-zen

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

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