From 433578fc9b13a4eadb88d578e8dfb0fcc2ad7e61 Mon Sep 17 00:00:00 2001 From: hyugogirubato <65763543+hyugogirubato@users.noreply.github.com> Date: Tue, 30 Aug 2022 14:54:02 +0200 Subject: [PATCH] Update README.md --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2289b7c..690415a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,25 @@ # CBZ-Helper -Python library allowing the creation of CBZ files with metadata. +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 +```python +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](https://discord.com/invite/g6JzYbh) for more information on projects in development.*