comicon-0.2.3
توضیحات
A simple comic conversion library between CBZ/EPUB/PDF
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | comicon-0.2.3 |
| نام | comicon |
| نسخه کتابخانه | 0.2.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Daniel Chen |
| ایمیل نویسنده | danielchen04@hotmail.ca |
| آدرس صفحه اصلی | https://github.com/potatoeggy/comicon |
| آدرس اینترنتی | https://pypi.org/project/comicon/ |
| مجوز | AGPL-3.0-only |
# Comicon
Comicon is a lightweight comic converter library between CBZ, PDF, and EPUB 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](https://github.com/potatoeggy/mandown).
```python
import comicon
comicon.convert("comic.cbz", "comic.epub")
```
## Installation
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: |
### 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).
نیازمندی
| مقدار | نام |
|---|---|
| >=0.18,<0.19 | ebooklib |
| >=9.4.0,<10.0.0 | pillow |
| >=4.9.2,<5.0.0 | lxml |
| >=3.2.1,<4.0.0 | pypdf[image] |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl comicon-0.2.3:
pip install comicon-0.2.3.whl
نصب پکیج tar.gz comicon-0.2.3:
pip install comicon-0.2.3.tar.gz