unpy2exe

Extract pyc files from py2exe executable.


Keywords
py2exe, pyc, extract
License
MIT
Install
pip install unpy2exe==0.4

Documentation

unpy2exe
---------

usage: unpy2exe.py [-h] [-o OUTPUT_DIR] [-p PYTHON_VERSION] filename

Extract pyc files from py2exe executable.

positional arguments:
  filename              The py2exe executable

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT_DIR, --output-dir OUTPUT_DIR
                        Output directory
  -p PYTHON_VERSION, --python-version PYTHON_VERSION
                        Python version for pyc

DEPS:
 - pefile (http://code.google.com/p/pefile/, already in repo)
 - argparse (Python < 2.7)

TODO:
 - Extract archived files (from zip/from exe)

See also:
 - http://py2exe.svn.sourceforge.net/viewvc/py2exe/trunk/py2exe/py2exe/build_exe.py?view=markup