All formats

CBT libraries

A CBT is a plain TAR archive, and tar support is easy to find: Go, Python, .NET and PHP have it built in. TAR has no index, so libraries read entries in order; to show page N, scan once and remember offsets, or extract all pages into memory. For general TAR information see the TAR page.

Language Library Read Write Notes
C/C++ libarchive yes yes one API for CBZ, CBR, CB7, CBT
C# System.Formats.Tar yes yes built into .NET 7+
C# SharpCompress yes yes one API for ZIP, RAR, 7z, TAR
Java Apache Commons Compress yes yes TarFile with random access, streams
Go archive/tar yes yes standard library
Python tarfile yes yes standard library
Python comicbox yes converts to CBZ comic-specific metadata, pages, covers
Ruby minitar yes yes pure Ruby
Ruby ffi-libarchive yes yes libarchive binding
Rust tar yes yes pure Rust
PHP PharData yes yes bundled phar extension

By language#