What's New
Unified CLI
Single barecat command with 23 subcommands replaces the old standalone commands (barecat-create, barecat-extract, etc.). Legacy commands still work but emit deprecation warnings.
New Commands
barecat shell— interactive REPL for exploring archivesbarecat browse— ranger-like TUI file browserbarecat ncdu— ncdu-like disk usage viewerbarecat rsync— rsync-like sync between filesystem and archivesbarecat find— search for files (like/usr/bin/find)barecat tree— directory tree displaybarecat du— disk usage summarybarecat subset— create filtered copy of archivebarecat reshard— change shard size limitsbarecat completion-script— bash/zsh shell completions
CLI Improvements
-C/--directoryworks in any position (like tar)barecat verifyprints summary on successbarecat mergegives helpful error on duplicate paths
New I/O Layer
BarecatFileObject— proper file-like objects withread(),write(),seek(),readinto()DecodedView— dict-like wrapper for automatic codec encoding/decoding (replacesauto_codecparameter)
API Improvements
__repr__onBarecat,BarecatFileInfo,BarecatDirInfoBarecat(path)constructor acceptsPathLike- Shard size accepts strings like
"1G","500M" - Core library uses
loggingmodule instead ofprint()
Bug Fixes
readinto()correctly handles buffer slices viamemoryviewopen('w')on a read-only archive raisesValueErrorinstead of silently failingwalk()returns'.'for root directory, matchingos.walkconventionread_index()no longer crashes (was calling non-existent.items())
Deprecations (targeted for removal in 1.0)
barecat.open()→ useBarecat()directlyauto_codecparameter → useDecodedViewget_cached_reader()default will change fromauto_codec=TruetoFalsein 1.0extract(),read_index(),write_index()module-level functions- Legacy CLI commands (
barecat-create, etc.)
Infrastructure
- Package restructured into submodules (
core/,cli/,io/,maintenance/,util/,tui/,formats/) - 608 tests across 15 test files
- CI with Python 3.9, 3.10, 3.11, 3.12, 3.13
- Pre-commit hooks (ruff lint + format)
- Comprehensive Diátaxis-structured documentation