All formats

CB7 libraries

A CB7 is a 7z archive. Fewer libraries handle 7z than ZIP, and many only read it. 7z archives are often solid: reading entries in archive order is fast, picking one page by name may decompress everything before it. For general 7z information see the 7z page.

Language Library Read Write Notes
C/C++ libarchive yes yes one API for CBZ, CBR, CB7, CBT
C# SharpCompress yes yes pure managed; writes non-solid LZMA/LZMA2 7z
Java Apache Commons Compress yes yes SevenZFile, SevenZOutputFile
Go sevenzip yes no bodgit/sevenzip, pure Go, fs.FS
Go archives yes no mholt/archives: one API for 7z, RAR, ZIP, TAR
Python py7zr yes yes pure Python; LGPL-2.1
Python comicbox yes converts to CBZ comic-specific metadata, pages, covers
Ruby ffi-libarchive yes yes libarchive binding
Rust sevenz-rust2 yes yes pure Rust
Rust compress-tools yes no libarchive binding

There is no maintained open-source 7z library for PHP; call the 7z command line tool or convert to CBZ.

By language#