Decompyle++ – A great python dissasembler/decompiler

Decompyle++

A Python Byte-code Disassembler/Decompiler

Decompyle++ aims to translate compiled Python byte-code back into valid and human-readable Python source code. While other projects have achieved this with varied success, Decompyle++ is unique in that it seeks to support byte-code from any version of Python.

Decompyle++ includes both a byte-code disassembler (pycdas) and a decompiler (pycdc).

As the name implies, Decompyle++ is written in C++. If you wish to contribute, please fork us on github at https://github.com/zrax/pycdc

I’ve tested it in Windows 7 32bit and Arch Linux i686, and works good. It supports from py10 to py34 (according to list of map files in /bytes folder, tried with pyc compiled by py34 but not cecompiled yet, maybe support for py34 should be updated in future)

How to make it run under Linux:
Grab files from git and build it:

git clone git://github.com/zrax/pycdc
cd pycdc
make

Compiled files are pycdas for Python Disassembler and pycdc for Python decompiler.
Usage:

pycdas [FILE_NAME]

to disassemble pyc/pyo file
or

pycdc [FILE_NAME]

to decompile pyc/pyo file

Enjoy and best regards,
Levis

6 thoughts on “Decompyle++ – A great python dissasembler/decompiler

  1. Hi.
    I came across your website while trying to figure out how to decompile a .pyc file. I tried running Decompyle++ on my Mac in terminal but could not get it to work.

    If I send you the .pyc file could you decompile it and send me back the .py file?

    Thanks,
    Andrew

    Like

  2. I have a .pyc file I am trying to decompile. I tried using Decompyle++ on my Mac in terminal but was not successful. If I sent you the .pyc file, would you be able to decompile it and sent me the .py file?

    Like

Leave a kudo...