Is it possible to decompile a compiled .pyc file into a .py file?


Is it possible to get some information out of the .pyc file that is generated from a .py file?

10/30/2018 3:28:13 PM

Uncompyle6 works for Python 3.x and 2.7 - recommended option as it's most recent tool, aiming to unify earlier forks and focusing on automated testing. The GitHub page has more details.

The older Uncompyle2 supports Python 2.7 only. This worked well for me some time ago to decompile the .pyc bytecode into .py, whereas unpyclib crashed with an exception.

4/21/2019 6:16:29 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow