Minimalist Python wrapper for CFR Decompiler to quickly handle .jar files.
- Inplace: Replaces
.classwith.javainside the original JAR. - Unpack: Extracts everything (sources + resources) to a folder.
- Project: Creates a structured Gradle project (
src/main/java,src/main/resources).
- Java installed (
javacommand available). cfr-0.152.jarin the script folder.- Python 3.x.
- Download files(with
cfr-0.152.jarinside). - Run:
python cfr_decompiler.py - Enter the path to your JAR and choose a mode.
- Done!
from cfr_decompiler import CFRDecompiler
decompiler = CFRDecompiler("cfr-0.152.jar")
decompiler.mode_2_to_folder("target.jar", "output_dir")