July 16th, 2010, 05:53 AM
-
Need of python decompiler
Hi,
I want to decompile an python application which consits of pyc files.
Since i am working in a conversion project .. from python to java
i need to decompile pyc files to py files.
The application contains number of pyc files.
Any decompiler or free decompiling source available in the internet .
I have tried depython.net and .com but not much of help.
Is there any command to decompile pyc files to py files
Kindly advice me to solve this issue
Thanks
MK
July 16th, 2010, 08:03 AM
-
The dis module can disassemble the bytecode into a human-readable representation (of the bytecode, that is). Hand-decompiling all that could take longer than rewriting the whole thing, though.
There are a few python decompilers spread across the web, but most are old (like, several years since the last change) and about every remotely interesting one is commercial. Stackoverflow had that topic quite a while ago:
http://stackoverflow.com/questions/48211/free-python-decompiler-that-is-not-an-online-service