Python cross-version byte-code decompiler targeting Python 3.7-3.8 bytecode. Current version is 3.9.3 (2025). Releases are sporadic, roughly once per year. Requires xdis (6.x) and spark-parser. Supports running on CPython up to 3.13 but only decompiles bytecode up to 3.8.
pip install decompyle3Verified import paths — ran on the pinned version, not inferred.
Decompile a .pyc file to stdout. Requires Python 3.7-3.8 bytecode.
Use uncompyle6 for Python 2.7-3.8, or try pycdc/decompyle3-fork for newer bytecode.
Use a virtual environment to isolate decompyle3 from other projects with different xdis requirements.
Install and run `decompyle3 filename.pyc`.
Install uncompyle6 for Python 2 decompilation.