CLI tools to manage archive based eBooks. Allows converting from / to images and RAR / ZIP based archives.
This repository has been archived on 2025-12-25. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
NaeiKinDus 155f48b74f
Merge pull request #1 from NaeiKinDus/remove_dryrun
Removed incorrect dry-run
2020-08-08 12:55:14 +02:00
src/archiveconverter Removed incorrect dry-run 2020-08-08 12:52:30 +02:00
tests Renamed script 2020-08-07 23:25:42 +02:00
.gitignore corrected gitignore 2020-08-07 23:25:42 +02:00
CODE_OF_CONDUCT.md Added CoC 2020-08-07 23:34:00 +02:00
LICENSE Initial commit 2020-08-07 23:20:46 +02:00
README.md Renamed script name in doc 2020-08-07 23:34:12 +02:00
requirements.txt Working CBR packer; natsort source files through get_files; working repack base 2020-08-07 23:25:42 +02:00
setup.py Tests + egg packaging 2020-08-07 23:25:41 +02:00

Introduction

Requirements

Usage

Basics

img_to_archive

Creating one CBZ archive from a directory containing images, using the default ("directory") naming scheme

# Source directory layout:
# -> source_dir/Awesome Comic/The first adventure - T1/
# +-> img1.jpg
# +-> [ ... ]
# +-> imgX.png

./img_to_archive.py "source_dir/Awesome Comic/The first adventure - T1" "dst_dir/Awesome Comic"

# Output:
# -> dst_dir/Awesome Comic/
# +-> The first adventure - T1.cbz

Creating several CBZ archives from images, in multiple directories (1 comic / directory), using the "context" naming scheme

# Source directory layout:
# -> source_dir/Awesome Comic/
# +-> The first adventure - T1/
# ++-> img1.jpg
# ++-> [ ... ]
# ++-> imgX.jpg
# +-> Another Adventure - T2/
# ++-> img1.png
# ++-> [ ... ]
# ++-> imgX.png

./img_to_archive.py --naming-method context --naming-format 'Awesome Comic - {dir}.cbz' "source_dir/Awesome Comic" "dst_dir/Awesome Comic"

# Output:
# -> dst_dir/Awesome Comic/
# +-> Awesome Comic - The first adventure - T1.cbz
# +-> Awesome Comic - Another Adventure - T2.cbz

arc_repack

Renaming target files / directory

Examples

img_to_archive:


arc_repack: