2022-08-30 14:54:02 +02:00
2022-08-30 14:45:28 +02:00
2022-08-30 14:54:02 +02:00

CBZ-Helper

In order to be able to save digital books from images while saving metadata, this library will allow you to do it simply in python without having to go through a graphical client or external commands.

Use

import cbzhelper

if __name__ == '__main__':
    pages = [{'page_number': 0, 'content': b'', 'double_page': False}]
    helper = cbzhelper.Helper('eBook', 'Volume 1', replace=True)
    for page in pages:
        helper.addPage(page['page_number'], page['content'], double_page=page['double_page'])
    helper.addMetadata({
        'Title': 'Volume 1',
        'Series': 'Exemples',
        'Number': '1',
        'Volume': 1
    })
    helper.saveCBZ()


This scripts are created by hyugogirubato.
Find us on discord for more information on projects in development.

S
Description
CBZ simplifies creating, managing, and viewing comic book files in CBZ, CBR, and PDF formats, offering seamless packaging, metadata handling and built-in viewing capabilities.
Readme MIT
34 MiB
Languages
Python 100%