DEV Community

robert19066
robert19066

Posted on

Inflate - Next level compression,straight from the terminal!

Inflate is a Python-based compression and archival utility that supports two compression methods:

  • ACS (Abstract Compression System): Local compression using 7z format with .acs extension.
  • CBAC (Cloud-Based Abstract Compression): Cloud-enabled compression using Dawnbond(Supabase abstraction layer made by me) for remote storage

The system creates file maps and content files, compresses them using py7zr (7-Zip), and optionally uploads to cloud storage with retrieval codes.

Inner works

How ACS Works

ACS(or Abstract Compression System) generates 2 blueprints of the selected folder: filemap.txt(map of all files) and filecntt.txt(file contents). Then the 2 files get packed into an .acs arhive. ACS is 3% faster than ZIP and 53% smaller than ZIP(tested on the latest CURL build)

How CBAC Works

CBAC(or Cloud Based Abstract Compression) uses ACS to create an arhive,and then it stores it using Dawnbond,an supabase abstraction.You can purge,upload and take down from CBAC.

Core Components

  • inflate.py: Main CLI interface and orchestration layer
  • acsmain.py: ACS compression/decompression engine with 7z handling
  • dawnbond.py: Supabase cloud storage interface (DawnbondCloud class)

Data Flow

  1. Compression: Files → filemap.txt + filecntt.txt → 7z archive → .acs file → (optional) cloud upload
  2. Decompression: .acs/.cbac file → extract 7z → parse filemap/filecntt → reconstruct directory structure

Top comments (0)