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.5 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/pydisassemble -h

for usage help.

See Also

Project details


Release history Release notifications | RSS feed

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.0.0.tar.gz (52.8 kB view details)

Uploaded Source

Built Distributions

xdis-1.0.0-py3.5.egg (98.3 kB view details)

Uploaded Source

xdis-1.0.0-py3.4.egg (98.5 kB view details)

Uploaded Source

xdis-1.0.0-py2.py3-none-any.whl (45.6 kB view details)

Uploaded Python 2 Python 3

xdis-1.0.0-py2.7.egg (97.9 kB view details)

Uploaded Source

xdis-1.0.0-py2.6.egg (98.2 kB view details)

Uploaded Source

File details

Details for the file xdis-1.0.0.tar.gz.

File metadata

  • Download URL: xdis-1.0.0.tar.gz
  • Upload date:
  • Size: 52.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xdis-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9def432c1dde68d229eabde6df18e9a52c06750aad394ff2a2b0d9738658705b
MD5 9bd9464b6eda220ccd1b621570b8ee5d
BLAKE2b-256 a6f6aed2454d39b7ef24c5adbb39648219fb3729c8f2842e42d1df8df21d93e2

See more details on using hashes here.

Provenance

File details

Details for the file xdis-1.0.0-py3.5.egg.

File metadata

  • Download URL: xdis-1.0.0-py3.5.egg
  • Upload date:
  • Size: 98.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xdis-1.0.0-py3.5.egg
Algorithm Hash digest
SHA256 cbf3d041743039152227288d6a8782e57feb9d8d3cd7f5bed7f1cc8df9091a3b
MD5 62622ae523e5deff7e56645f58addd11
BLAKE2b-256 1d7dde49accd7a69a78c7881e39ee9bea1db956ad202b2447d462e1dea964f88

See more details on using hashes here.

Provenance

File details

Details for the file xdis-1.0.0-py3.4.egg.

File metadata

  • Download URL: xdis-1.0.0-py3.4.egg
  • Upload date:
  • Size: 98.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xdis-1.0.0-py3.4.egg
Algorithm Hash digest
SHA256 46a34dbbf44ac96db7fceb8195857c6b9e3ad8fa43594c8a410ed636cb0f44ab
MD5 68f21279b03cfa98d626480dacc7c466
BLAKE2b-256 ebc706cb323aeace88fd17992d6ae3c67807a20dcf19dbc083e8aa4252713f13

See more details on using hashes here.

Provenance

File details

Details for the file xdis-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for xdis-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e232af7c41357edd8cad59123a43bdc024495acba574bdd2442bd1dad295bb01
MD5 08120ea5aaf7b9fdfcc08508bc6c4ad4
BLAKE2b-256 f784ba10d8cdf215b00ab4865a9e5862f019494a3cf856319ad38fd8c9f15226

See more details on using hashes here.

Provenance

File details

Details for the file xdis-1.0.0-py2.7.egg.

File metadata

  • Download URL: xdis-1.0.0-py2.7.egg
  • Upload date:
  • Size: 97.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xdis-1.0.0-py2.7.egg
Algorithm Hash digest
SHA256 408cf2d6af47456263a3af9c387173d72f6b0e9b47d416b7f9b3acd85e0c7b26
MD5 e4d90ad9d2bc69d21a907af4e8ea0846
BLAKE2b-256 bb0fb15ddf3dd74e19811982578b60c37b19eccbc4ceff9f4e4d7110a62be7a3

See more details on using hashes here.

Provenance

File details

Details for the file xdis-1.0.0-py2.6.egg.

File metadata

  • Download URL: xdis-1.0.0-py2.6.egg
  • Upload date:
  • Size: 98.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xdis-1.0.0-py2.6.egg
Algorithm Hash digest
SHA256 b1a7b6a7b47871b7bfdbef7fbbd5a50842a893699ae64f4a10bc22cf5246190e
MD5 28a2670b1cfb861cad03bd3a44986902
BLAKE2b-256 f21df614502c4d1a31744762479fa955da6ac95510a8404f4278a18d153ec81a

See more details on using hashes here.

Provenance

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