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.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, 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

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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

xdis-3.0.2-py3.4.egg (136.7 kB view details)

Uploaded Egg

xdis-3.0.2-py2.py3-none-any.whl (62.2 kB view details)

Uploaded Python 2Python 3

xdis-3.0.2-py2.6.egg (135.7 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for xdis-3.0.2.tar.gz
Algorithm Hash digest
SHA256 3d407db44d8bb61006c48b3a524dec0b42f8cbeca85cf50c0cdb7bd2daedea84
MD5 2068a45117e424312929dfc690958995
BLAKE2b-256 d33e29869faa90f240a86745e38cad5401a9d2ffa594b3eda6acabb894235ac0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xdis-3.0.2-py3.4.egg
Algorithm Hash digest
SHA256 2ef940fc41ed7e7bce44c52d2fc42ef742d5eea23e19250a3bb8fbcd4c92f969
MD5 9cbf98528d9cfbe269b9867c1e71f774
BLAKE2b-256 7e295bc12ed5e75246f393083654ae7cc5d7175b612cdc5e1f602c3e139dd771

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xdis-3.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 05d35f5088ad325dfdcea486d67f1573b21706df8f3f0a1bca76b8b37e8e1761
MD5 979560c24c106121a2e4d91d304d6f54
BLAKE2b-256 82b9f35666efb0de9315993a947256aa2022c0c7c5e222e2d51dc32e0c988c23

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xdis-3.0.2-py2.6.egg
Algorithm Hash digest
SHA256 0b66baa5332d3e10e3a5431f2d30bfbf5df792b6d444d548ca0adb0d962c09b1
MD5 6a42641630e634d4e7b5bb471caea3de
BLAKE2b-256 5e060682b61f14ef6e438fcef77ec5112c1bb9612181188b0ae9ded50383f75b

See more details on using hashes here.

Supported by

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