Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wibiti/uncompyle2
Python 2.7 decompiler
https://github.com/wibiti/uncompyle2
Last synced: about 2 months ago
JSON representation
Python 2.7 decompiler
- Host: GitHub
- URL: https://github.com/wibiti/uncompyle2
- Owner: wibiti
- Fork: true (gstarnberger/uncompyle)
- Created: 2011-01-05T18:43:46.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2021-06-19T23:51:12.000Z (over 3 years ago)
- Last Synced: 2024-07-31T19:17:28.575Z (5 months ago)
- Language: Python
- Homepage:
- Size: 924 KB
- Stars: 1,199
- Watchers: 72
- Forks: 310
- Open Issues: 11
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
- my-awesome-starred - uncompyle2 - Python 2.7 decompiler (Python)
README
uncompyle2
A Python 2.7 byte-code decompiler, written in Python 2.7
0.13
2012-2-22Introduction
------------'uncompyle2' converts Python byte-code back into equivalent Python
source. It accepts byte-code from Python version 2.7 only. Additionally,
it will only run on Python 2.7.The generated source is very readable: docstrings, lists, tuples and
hashes get pretty-printed.'uncompyle2' may also verify the equivalence of the generated source by
by compiling it and comparing both byte-codes.'uncompyle2' is based on John Aycock's generic small languages compiler
'spark' (http://www.csr.uvic.ca/~aycock/python/) and his prior work on
a tool called 'decompyle'. This tool has been vastly improved by
Hartmut Goebel `http://www.crazy-compilers.com/`_Additional note (3 July 2004, Ben Burton):
This software is no longer available from the original website. It
has now become a commercial decompilation service, with no
software available for download.Any developers seeking to make alterations or enhancements to this code
should therefore consider these debian packages an appropriate starting
point.Features
--------* decompiles Python byte-code into equivalent Python source
* decompiles byte-code from Python version 2.7
* pretty-prints docstrings, hashes, lists and tuples
* reads directly from .pyc/.pyo files, bulk-decompile whole
directories* output may be written to file, a directory or to stdout
* option for including byte-code disassembly into generated source
For a list of changes please refer to the 'CHANGES' file.
Requirements
------------uncompyle2 requires Python 2.7
Installation
------------You may either create a RPM and install this, or install directly from
the source distribution.Creating RPMS:
python setup.py bdist_rpm
If you need to force the python interpreter to eg. python2:
python2 setup.py bdist_rpm --python=python2Installation from the source distribution:
python setup.py install
To install to a user's home-dir:
python setup.py install --home=To install to another prefix (eg. /usr/local)
python setup.py install --prefix=/usr/localIf you need to force the python interpreter to eg. python2:
python2 setup.py installFor more information on 'Installing Python Modules' please refer to
http://www.python.org/doc/current/inst/inst.htmlUsage
-----uncompyle2 -h prints short usage
uncompyle2 --help prints long usageKnown Bugs/Restrictions
-----------------------