X Tutup
Skip to content

Commit b820316

Browse files
committed
first commit
0 parents  commit b820316

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+83963
-0
lines changed

MANIFEST.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
include MANIFEST
2+
include MANIFEST.in
3+
include README
4+
include ANNOUNCE CHANGES TODO
5+
include uncompyle
6+
include test_pythonlib
7+
include test_one
8+
include compile_tests
9+
graft test
10+
graft scripts
11+
global-exclude *~ .*~

PKG-INFO

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Metadata-Version: 1.1
2+
Name: uncompyle
3+
Version: 1.1
4+
Summary: Python byte-code to source-code converter
5+
Home-page: http://github.com/sysfrog/uncompyle
6+
Author: Hartmut Goebel
7+
Author-email: hartmut@oberon.noris.de
8+
License: GPLv3
9+
Description: UNKNOWN
10+
Platform: UNKNOWN

README

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
2+
uncompyle2
3+
A Python 2.5, 2.6, 2.7 byte-code decompiler, written in Python 2.7
4+
0.13
5+
2012-6-5
6+
7+
Introduction
8+
------------
9+
10+
'uncompyle2' converts Python byte-code back into equivalent Python
11+
source. It accepts byte-code from Python version 2.5, 2.6 & 2.7. Additionally,
12+
it will only run on Python 2.7.
13+
14+
The generated source is very readable: docstrings, lists, tuples and
15+
hashes get pretty-printed.
16+
17+
'uncompyle2' may also verify the equivalence of the generated source by
18+
by compiling it and comparing both byte-codes.
19+
20+
'uncompyle2' is based on John Aycock's generic small languages compiler
21+
'spark' (http://www.csr.uvic.ca/~aycock/python/) and his prior work on
22+
'uncompyle'.
23+
24+
Additional note (3 July 2004, Ben Burton):
25+
26+
The original website from which this software was obtained is no longer
27+
available. It has now become a commercial decompilation service, with
28+
no software available for download.
29+
30+
Any developers seeking to make alterations or enhancements to this code
31+
should therefore consider these debian packages an appropriate starting
32+
point.
33+
34+
Additional note (5 June 2012):
35+
36+
The decompilation of python bytecode 2.5 & 2.6 is based on the work of
37+
Eloi Vanderbeken. bytecode is translated to a pseudo 2.7 python bytecode
38+
and then decompiled.
39+
40+
Features
41+
--------
42+
43+
* decompiles Python byte-code into equivalent Python source
44+
45+
* decompiles byte-code from Python version 2.5, 2.6, 2.7
46+
47+
* pretty-prints docstrings, hashes, lists and tuples
48+
49+
* reads directly from .pyc/.pyo files, bulk-decompile whole
50+
directories
51+
52+
* output may be written to file, a directory or to stdout
53+
54+
* option for including byte-code disassembly into generated source
55+
56+
For a list of changes please refer to the 'CHANGES' file.
57+
58+
59+
Requirements
60+
------------
61+
62+
uncompyle2 requires Python 2.7
63+
64+
65+
Installation
66+
------------
67+
68+
You may either create a RPM and install this, or install directly from
69+
the source distribution.
70+
71+
Creating RPMS:
72+
73+
python setup.py bdist_rpm
74+
75+
If you need to force the python interpreter to eg. pyton2:
76+
python2 setup.py bdist_rpm --python=python2
77+
78+
79+
Installation from the source distribution:
80+
81+
python setup.py install
82+
83+
To install to a user's home-dir:
84+
python setup.py install --home=<dir>
85+
86+
To install to another prefix (eg. /usr/local)
87+
python setup.py install --prefix=/usr/local
88+
89+
If you need to force the python interpreter to eg. pyton2:
90+
python2 setup.py install
91+
92+
For more information on 'Installing Python Modules' please refer to
93+
http://www.python.org/doc/current/inst/inst.html
94+
95+
96+
Usage
97+
-----
98+
99+
uncompyle2 -h prints short usage
100+
uncompyle2 --help prints long usage
101+
102+
103+
Known Bugs/Restrictions
104+
-----------------------
105+
106+
I have some known bug in the 2.5 & 2.6 decompilation version but this will be fixed in a few.

0 commit comments

Comments
 (0)
X Tutup