How ahmetcolak16/izkod works
IzKod is a lossless CSV compression library and command-line comparison tool. Its user workflow is to provide CSV bytes or a file, choose among six archive levels, and receive a compressed archive; decoding restores the original bytes. The CLI also measures encode/decode size and time, checks round-trip equality, and compares reference codecs. The graph preserves the levels’ distinct strategies and the shared block-selection layer. Evidence is limited to the README title, source index references, and the excerpts shown; unsampled modules are represented only where their paths and connections are supported.
Main entry points: compare_codecs.py Comparison CLI · api.py Compression API · level_2.py Level 2 · level_3.py Level 3
Components 16
Entry points
- Comparison CLI
algorithms/compare_codecs.py - Compression API
algorithms/izkod/api.py
Archive levels
- Level 1
algorithms/compression_levels/level_1.py - Level 2
algorithms/compression_levels/level_2.py - Level 3
algorithms/compression_levels/level_3.py - Level 4 Greedy
algorithms/compression_levels/level_4.py - Level 5 DP
algorithms/compression_levels/level_5.py - Level 6 Dictionary
algorithms/compression_levels/level_6.py
Block strategies
- Adaptive Boundaries
algorithms/izkod/adaptive_blocks.py - Fixed Blocks
algorithms/izkod/fixed_blocks.py
Codecs
- RLE Codec
algorithms/codecs/rle/rle.py - Huffman Codec
algorithms/codecs/huffman/huffman.py
Other components
- CLI User
- Library Client
- CSV Bytes
- IZK Archive
Connections 36
- CLI User → Comparison CLI: runs comparison
algorithms/compare_codecs.py - CSV Bytes → Comparison CLI: provides file
algorithms/compare_codecs.py - Comparison CLI → Level 1: measures
algorithms/compare_codecs.py - Comparison CLI → Level 2: measures
algorithms/compare_codecs.py - Comparison CLI → Level 3: measures
algorithms/compare_codecs.py - Comparison CLI → Level 4 Greedy: measures
algorithms/compare_codecs.py - Comparison CLI → Level 5 DP: measures
algorithms/compare_codecs.py - Comparison CLI → Level 6 Dictionary: measures
algorithms/compare_codecs.py - Comparison CLI → RLE Codec: measures reference
algorithms/compare_codecs.py - Comparison CLI → Huffman Codec: measures reference
algorithms/compare_codecs.py - Comparison CLI → Fixed Blocks: measures reference
algorithms/compare_codecs.py - Comparison CLI → Adaptive Boundaries: prepares candidates
algorithms/compare_codecs.py - Library Client → Compression API: calls
algorithms/izkod/api.py - Compression API → Level 1: dispatches
algorithms/izkod/api.py - Compression API → Level 2: dispatches
algorithms/izkod/api.py - Compression API → Level 3: dispatches
algorithms/izkod/api.py - Compression API → Level 4 Greedy: dispatches
algorithms/izkod/api.py - Compression API → Level 5 DP: dispatches
algorithms/izkod/api.py - Compression API → Level 6 Dictionary: dispatches
algorithms/izkod/api.py - Compression API → CSV Bytes: compresses bytes
algorithms/izkod/api.py - Compression API → IZK Archive: returns archive
algorithms/izkod/api.py - Level 2 → Level 1: falls back
algorithms/compression_levels/level_2.py - Level 2 → Huffman Codec: encodes with
algorithms/compression_levels/level_2.py - Level 3 → Level 2: falls back
algorithms/compression_levels/level_3.py - Level 3 → Fixed Blocks: encodes blocks
algorithms/compression_levels/level_3.py - Level 4 Greedy → Level 3: uses fallback
algorithms/compression_levels/level_4.py - Level 4 Greedy → Adaptive Boundaries: selects boundaries
algorithms/compression_levels/level_4.py - Level 5 DP → Level 3: uses fallback
algorithms/compression_levels/level_5.py - Level 5 DP → Adaptive Boundaries: optimizes boundaries
algorithms/compression_levels/level_5.py - Level 6 Dictionary → Level 5 DP: uses fallback
algorithms/compression_levels/level_6.py - Level 6 Dictionary → Level 2: encodes dictionary
algorithms/compression_levels/level_6.py - Level 6 Dictionary → Level 1: uses header
algorithms/compression_levels/level_6.py - Adaptive Boundaries → Fixed Blocks: measures blocks
algorithms/izkod/adaptive_blocks.py - Fixed Blocks → RLE Codec: encodes with
algorithms/izkod/fixed_blocks.py - Fixed Blocks → Huffman Codec: encodes with
algorithms/izkod/fixed_blocks.py - Level 1 → RLE Codec: encodes with
algorithms/compression_levels/level_1.py