This is a python script to extract the contents of a PyInstaller generated Windows executable file.
The contents of the pyz file (usually pyc files) present inside the executable are also extracted.
The pyc files are made valid so that a python bytecode decompiler will recognise it.
Script can run on both python 2.x and 3.x.
Pyinstxtractor can be downloaded from the following location:
Usage: pyinstxtractor.py <filename>
See an example usage here.