Skip to main content

Python cross-version byte-code disassembler and marshal routines

Project description

buildstatus

xdis

Cross-Python bytecode Disassembler and Marshal routines

Introduction

The Python dis module allows you to disassemble byte from the same version of Python that you are running on. But what about bytecode from different versions?

That’s what this package is for. It can marshal load Python bytecodes from different versions of Python. The command-line routine pydisssemble will show disassembly output using Python 3.5 disassembly conventions

It accepts bytecodes from Python version 2.3 to 3.5 or so. The code requires Python 2.5 or later and has been tested on Python running versions 2.6, 2.7, pypy-5.0.1, 3.2, 3.3, 3.4 and 3.5.

Installation

This uses setup.py, so it follows the standard Python routine:

pip install -r requirements.txt
pip install -r requirements-dev.txt
python setup.py install # may need sudo
# or if you have pyenv:
python setup.py develop

A GNU makefile is also provided so make install (possibly as root or sudo) will do the steps above.

Testing

make check

A GNU makefile has been added to smooth over setting running the right command, and running tests from fastest to slowest.

If you have remake installed, you can see the list of all tasks including tests via remake --tasks

Usage

Run

./bin/pydisasm -h

for usage help.

See Also

Project details


Release history Release notifications | RSS feed

This version

1.1.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xdis-1.1.1.tar.gz (56.6 kB view hashes)

Uploaded Source

Built Distributions

xdis-1.1.1-py3.5.egg (103.0 kB view hashes)

Uploaded Source

xdis-1.1.1-py3.4.egg (103.2 kB view hashes)

Uploaded Source

xdis-1.1.1-py2.py3-none-any.whl (46.8 kB view hashes)

Uploaded Python 2 Python 3

xdis-1.1.1-py2.7.egg (100.4 kB view hashes)

Uploaded Source

xdis-1.1.1-py2.6.egg (100.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page