Skip to main content

Tool to create CBR or CBZ files, supports PDF, ZIP, RAR files.

Project description

comicpy

Tool to create CBR or CBZ files.

Extracts images from PDF, ZIP, CBR files, generating comic files respecting their original order.

The original files are not altered.

Installation

pip install comicpy

Usage

>>> from comicpy import ComicPy
>>>
>>> pdf_file = 'pdf_comic.PDF'
>>>
>>> comic = ComicPy(unit='mb')
>>> data = comic.process_pdf(filename=pdf_file, compressor='zip')
>>>
>>> metaFileCompress = comic.write_cbz(currentFileZip=data)
>>> print(metaFileCompress)
{'name': 'FNAE CAPS 01-04 (TOMO1).cbz', 'size': '76.63 MB'}
>>>
>>> comic.check_integrity(filename=metaFileCompress['name'])
File is valid?:  "True"
True
>>> comic.check_integrity(filename=metaFileCompress['name'], show=False)
True

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

comicpy-0.1.1.tar.gz (11.1 kB view hashes)

Uploaded Source

Built Distribution

comicpy-0.1.1-py3-none-any.whl (15.7 kB view hashes)

Uploaded Python 3

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