CLI tools to manage archive based eBooks.
Allows converting from / to images and RAR / ZIP based archives.
- Python 100%
|
|
||
|---|---|---|
| src/archiveconverter | ||
| tests | ||
| .gitignore | ||
| CODE_OF_CONDUCT.md | ||
| LICENSE | ||
| README.md | ||
| requirements.txt | ||
| setup.py | ||
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: