by SolaraUser123
A simple Python GUI tool to protect and compile your .py scripts into .exe files using Nuitka or PyArmor + PyInstaller.
- Nuitka compilation (native binary, harder to reverse)
- PyArmor + PyInstaller (obfuscate + bundle)
- Tick box options for all flags
- Live command preview + copy
- Auto installs missing dependencies on run
- Scrollable output log
- Python 3.10+
- tkinter (included with Python)
All other dependencies (nuitka, pyarmor, pyinstaller, zstandard) are installed automatically when you click Run.
- Download
py_protection.py - Open CMD and run:
python "C:\Users\YOURNAME\Downloads\py_protection.py"
- Browse for your
.pyfile - Choose a method (Nuitka or PyArmor + PyInstaller)
- Tick your options
- Click Run Protection
Compiles your Python script to a native binary .exe. Harder to reverse than PyInstaller. Takes 2–5 minutes.
Obfuscates your script with PyArmor then bundles it with PyInstaller. Faster, easier, good enough for most use cases.
- Nuitka → same location as your script, e.g.
script.exe - PyArmor + PyInstaller →
dist\script.exe
--disable-consoleand--noconsoleare for GUI apps only — leave unchecked for console scripts- Nuitka requires a C compiler — it downloads zig automatically on first run
- PyArmor free tier has limitations — BCC mode requires a paid license
MIT