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#
- CB7 libraries for C/C++ Open-source C/C++ library to read and write CB7 (7z) comic book archives: libarchive. List pages in natural order, extract the cover, read ComicInfo.xml.
- CB7 libraries for C# Open-source .NET library to read and write CB7 (7z) comic book archives: SharpCompress. Page order, cover, ComicInfo.xml and CB7 to CBZ in C#.
- CB7 libraries for Java Open-source Java library to read and write CB7 (7z) comic book archives: Apache Commons Compress. Page order, cover, ComicInfo.xml and creating a CB7 in Java.
- CB7 libraries for Go Open-source Go libraries to read CB7 (7z) comic book archives: bodgit/sevenzip and mholt/archives. Pure Go, page order, cover and ComicInfo.xml.
- CB7 libraries for Python Open-source Python libraries to read and write CB7 (7z) comic book archives: py7zr and comicbox. Page order, cover extraction and ComicInfo.xml in Python.
- CB7 libraries for Ruby Open-source Ruby library to read and write CB7 (7z) comic book archives: ffi-libarchive. Page order, cover, ComicInfo.xml and creating a CB7 in Ruby.
- CB7 libraries for Rust Open-source Rust libraries to read and write CB7 (7z) comic book archives: sevenz-rust2 and compress-tools. Page order, cover, ComicInfo.xml in Rust.