$npx skillfedfor your agent

xdis

Python cross-version byte-code disassembler and marshal routines

With conditionsPyPI Python ModulesReleased Mar 2026662.0K downloads / moGPL-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — xdis-6.3.0-py2-none-any.whl · xdis-6.3.0-py310-none-any.whl · xdis-6.3.0-py311-none-any.whl
v6.3.0 · released 2026-03-30

Yes, if you need to work with Python bytecode from versions other than the one you are running. The package is actively maintained, has no dependencies, and carries low install friction on modern Python. The GPL-2.0 copyleft license is a significant constraint for proprietary or closed-source use; evaluate your distribution model before adopting. For Python 3.11+, installation is straightforward; for older versions, the GitHub-only distribution model adds friction but is workable.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • For Python versions before 3.11, you must download and install the version-specific wheel or tarball from GitHub Releases; standard PyPI pip install only works on Python 3.11+.
  • Low install friction with pure-Python wheels available for Python 2 through 3.13.
  • Actively maintained with a recent release.

License · maintenance · safety

GPL-2.0 (copyleft) — Licensed under GPL-2.0 (copyleft). Use in proprietary software requires either distributing source code or obtaining a different license; linking or bundling this library into closed-source projects carries copyleft obligations.

last release 2026-03-30 (137 days) · last repo commit 2026-07-22 · 371 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 661,989 downloads/mo, #5,441 on PyPI

Verify before relying

pip install xdis

import xdis.disassemble
import xdis.magics

# Disassemble bytecode from a different Python version
with open('some_bytecode.pyc', 'rb') as f:
    xdis.disassemble.disassemble_file(f)
  • Whether the package can actually read and disassemble bytecode from Python 1.0 (the description claims support back to 1.0, but this may be aspirational or historical).
  • Whether the 'extended' and 'extended-format' disassembly modes truly produce expression trees as claimed, or if this is limited to certain Python versions.
  • Performance characteristics when processing large bytecode files or many files in sequence.
Same gist for agents: .md · .json

What it is and what it does

xdis is a cross-version Python bytecode disassembler and manipulation library. The standard Python dis module only works on bytecode from the same Python version you are running; xdis removes that constraint, allowing you to inspect, analyze, and disassemble bytecode from any Python version on any other Python version. It can marshal-load bytecode, translate between Python version numbers and magic values, unpack and repack code objects, and provide advanced disassembly output in multiple formats.

The package is useful for reverse-engineering, bytecode analysis, writing cross-version assemblers or optimizers, and understanding how Python compiles code across different language versions. It has no runtime dependencies and is available as pure-Python wheels for most Python versions, though installation on Python versions before 3.11 requires downloading version-specific distributions from GitHub rather than PyPI.

Use it for

  • Reverse-engineer or audit Python bytecode from a different Python version than your development environment.
  • Write a bytecode-level optimizer or analyzer that works across multiple Python versions.
  • Translate between Python version numbers and their corresponding bytecode magic values for tooling or documentation.
  • Inspect and modify code objects programmatically, such as rewriting constants or instruction sequences.
  • Build a cross-version Python decompiler or bytecode assembler.
  • Debug or analyze compiled Python code from production systems running a different Python version.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to work with Python bytecode from versions other than the one you are running.

The package is actively maintained, has no dependencies, and carries low install friction on modern Python. The GPL-2.0 copyleft license is a significant constraint for proprietary or closed-source use; evaluate your distribution model before adopting. For Python 3.11+, installation is straightforward; for older versions, the GitHub-only distribution model adds friction but is workable.

Install

xdis on PyPI

Before you install

Low install friction with pure-Python wheels available for Python 2 through 3.13. Actively maintained with a recent release. For Python 3.11+, standard pip install works; older versions require downloading version-specific wheels or tarballs from GitHub Releases rather than PyPI.

For Python versions before 3.11, you must download and install the version-specific wheel or tarball from GitHub Releases; standard PyPI pip install only works on Python 3.11+.

License in practice

Licensed under GPL-2.0 (copyleft). Use in proprietary software requires either distributing source code or obtaining a different license; linking or bundling this library into closed-source projects carries copyleft obligations.

Quickstart

pip install xdis

import xdis.disassemble
import xdis.magics

# Disassemble bytecode from a different Python version
with open('some_bytecode.pyc', 'rb') as f:
    xdis.disassemble.disassemble_file(f)

Verify before relying

  • Whether the package can actually read and disassemble bytecode from Python 1.0 (the description claims support back to 1.0, but this may be aspirational or historical).
  • Whether the 'extended' and 'extended-format' disassembly modes truly produce expression trees as claimed, or if this is limited to certain Python versions.
  • Performance characteristics when processing large bytecode files or many files in sequence.

Package facts

LicenseGPL-2.0 copyleft
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 137 days since the last release
Last repo commit
First released
Downloads661,989 / month, #5,441 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: GNU General Public License v2 (GPLv2)Operating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.4Programming Language :: Python :: 2.5Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.1Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: DebuggersTopic :: Software Development :: Libraries :: Python Modules

Evidence: xdis-6.3.0-py2-none-any.whl; xdis-6.3.0-py310-none-any.whl; xdis-6.3.0-py311-none-any.whl; xdis-6.3.0-py312-none-any.whl; xdis-6.3.0-py313-none-any.whl; xdis-6.3.0-py34-none-any.whl; xdis-6.3.0-py35-none-any.whl; xdis-6.3.0-py36-none-any.whl; xdis-6.3.0-py37-none-any.whl; xdis-6.3.0-py38-none-any.whl; xdis-6.3.0-py39-none-any.whl

Tags

Capabilities
cross-version python bytecode disassemblerpython bytecode analysismarshal load bytecodepython magic number conversionbytecode decompilation toolpython code object inspectionwordcode disassembly
Topics
bytecode-analysisreverse-engineeringcross-version-compatibility

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “cross-version python bytecode disassembler”

  • xdisDisassembles Python bytecode from any Python version (1.0 through…
  • evmdasmevmdasm provides a lightweight registry of Ethereum EVM opcodes and a…
  • qwasmDecodes and disassembles WebAssembly binary modules into readable…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also bytecode · decompyle3 · uncompyle6 · pycnite · evmdasm · smda · ethereum-dasm · pcodedmp · pypcode · vivisect