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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file comicpy-0.1.1.tar.gz.

File metadata

  • Download URL: comicpy-0.1.1.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.6 Linux/6.6.8-100.fc38.x86_64

File hashes

Hashes for comicpy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7649c68b867b20f46c276c86cecc18fde1758043894aea4a79849d7638c7f055
MD5 aca84becd008b513fde00c2b617e7dd5
BLAKE2b-256 22e97b8b9a44537ed50e878ae29ce9aec35522a91a68f71184f929c16dd3515c

See more details on using hashes here.

File details

Details for the file comicpy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: comicpy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.6 Linux/6.6.8-100.fc38.x86_64

File hashes

Hashes for comicpy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 08af2227ca5918101fcade05a9ee20897a621a8831a5aa8fc581192255dab770
MD5 84a150f5329706cbbc217f38023751ed
BLAKE2b-256 41536c8f618ada413982a93dab4a1912d5e4c3ae292ad40d9963449419b4c3ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page