icon

Reversing PYC (Python Compiled File)

Last modified: 2023-02-18

A PYC file is a compiled file generated from source code written in Python.

Decompile

uncompyle6 is a PYC decompiler.

We can install easily using pip.

pip install uncompyle6

Then decompile the pyc file.

uncompyle6 example.pyc