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 bytecode 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 pydisasm will show disassembly output using Python 3.5 disassembly conventions.

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

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

3.2.2

Download files

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

Source Distribution

xdis-3.2.2.tar.gz (125.9 kB view details)

Uploaded Source

Built Distributions

xdis-3.2.2-py3.5.egg (140.4 kB view details)

Uploaded Egg

xdis-3.2.2-py3.4.egg (140.8 kB view details)

Uploaded Egg

xdis-3.2.2-py3.3.egg (141.3 kB view details)

Uploaded Egg

xdis-3.2.2-py2.py3-none-any.whl (64.1 kB view details)

Uploaded Python 2Python 3

xdis-3.2.2-py2.7.egg (139.1 kB view details)

Uploaded Egg

xdis-3.2.2-py2.6.egg (139.6 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for xdis-3.2.2.tar.gz
Algorithm Hash digest
SHA256 5b8c9b3d36a4f06f2341a08bdd536e70d8b8511f17aa9f64afa6cbac186a48dd
MD5 869e77f35c505c00d12a5a83ccb24a8d
BLAKE2b-256 3946b2b66c95de07f6864898510acb886dacc1221130669548ec860be4efed9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xdis-3.2.2-py3.5.egg
  • Upload date:
  • Size: 140.4 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xdis-3.2.2-py3.5.egg
Algorithm Hash digest
SHA256 f3c39964545ba5891a2fe2548a3c143543c2f3c191b1b8bcfc60d848804f0f04
MD5 33067be984845465754b0875e8b94e5b
BLAKE2b-256 054dacfe171d17d090f9853be228ecb40e5b5f818a5ef4b437dbf86df5df336c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xdis-3.2.2-py3.4.egg
  • Upload date:
  • Size: 140.8 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xdis-3.2.2-py3.4.egg
Algorithm Hash digest
SHA256 e21b424b56d093c11c04d2662d2037ddc5093dd21d5a806c9d8c2091e4190504
MD5 66f0ce0423cecee25e90dcc407727e4d
BLAKE2b-256 ee2e7c522374bfd12511110a2d718960932a9b86515161f4ad6d64f51dcf558b

See more details on using hashes here.

File details

Details for the file xdis-3.2.2-py3.3.egg.

File metadata

  • Download URL: xdis-3.2.2-py3.3.egg
  • Upload date:
  • Size: 141.3 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xdis-3.2.2-py3.3.egg
Algorithm Hash digest
SHA256 26fe24c96b8c3c3384609cad637de21d88c2d0b9e16b283ce9b2420b45b85f3f
MD5 a891c9189a0a2e7f736261e3e062b5b9
BLAKE2b-256 7b7bba0d5f389cd0f02210c1e0f8e60e445beb438695e672ba720d2a81e9f16d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xdis-3.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d15c7fe4c93b51a9cbfdf896d55fab7f436b334d4c743bf8cd03e6fd644e82c3
MD5 92af17cbe561b5c9418695737d375b9d
BLAKE2b-256 fd66b5d9ff5eb29e3716bee1e21d8dee8c1f3d7aead1186ed6eaa5edfb674e63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xdis-3.2.2-py2.7.egg
  • Upload date:
  • Size: 139.1 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xdis-3.2.2-py2.7.egg
Algorithm Hash digest
SHA256 f25901d6504e10b5553fe30fcda6c07de76e1d16cba960e01899b96a6d892bf7
MD5 a436ab5cc32e5b33e21abaf1c931d085
BLAKE2b-256 d3e7408451c46ef9972183ad5a9bc49daffa109eeee3468a90417da280da768b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xdis-3.2.2-py2.6.egg
  • Upload date:
  • Size: 139.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for xdis-3.2.2-py2.6.egg
Algorithm Hash digest
SHA256 fefab8bf8ccd0a97c6c9e256c2a4c786006fe66f707923ba94f0d020f44cdc8e
MD5 38d39c5ec863b4db56ce345c7ddce777
BLAKE2b-256 30d47bf926b46fa83ac6ebc4860f3dbe2bd1dd5bf041a0b9ce6f30383295deb9

See more details on using hashes here.

Supported by

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