🪨 why input many code when few code do trick. Slashes input tokens by up to ~80% across 9 languages via AST pruning, ultra-dense "caveman" syntax and more for AI coding agents.
-
Updated
Oct 10, 2026 - Python
🪨 why input many code when few code do trick. Slashes input tokens by up to ~80% across 9 languages via AST pruning, ultra-dense "caveman" syntax and more for AI coding agents.
Minipy3 is a powerful Python 3 code minimizer and compressor. It reduces script size by rewriting the Abstract Syntax Tree (AST), consolidating imports, and optimizing integers. It features advanced payload compression using lzma, zlib, and Base85 encoding. Includes a CLI tool and Python API for seamless integration into deployment pipelines.
This tool provides a simple but effective way to obfuscate Python source code. It renames variables, removes comments and whitespace, and optionally wraps the code in Base64 encoding to hinder reverse engineering and source readability.
A lightweight web service and REST API for Python 3 code minimization using minipy3.
To associate your repository with the code-minifier topic, visit your repo's landing page and select "manage topics."