$npx skillfedfor your agent

decompyle3

Python cross-version byte-code decompiler

With conditionsPyPI Python ModulesReleased Oct 2025286.1K downloads / moGPL3Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — decompyle3-3.9.3-py37-none-any.whl · decompyle3-3.9.3-py38-none-any.whl · decompyle3-3.9.3-py39-none-any.whl
v3.9.3 · released 2025-10-01 · 3 runtime deps: click, spark-parser, xdis

Yes, if you need to decompile Python 3.7+ bytecode and accept the GPLv3 copyleft constraint. The tool is actively maintained, has low install friction, and carries no known vulnerabilities. Be aware that decompilation is imperfect—the author documents numerous known bugs and acknowledges that control-flow detection remains incomplete. Use the --syntax-verify option to validate output, and cross-check results with other decompilers when accuracy is critical.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.7 or 3.8 to run; can only decompile bytecode from Python 3.7 onwards.
  • Does not handle obfuscated code, Cython, MicroPython, or Py2EXE executables.
  • Low friction installation with three runtime dependencies (click, spark-parser, xdis).

License · maintenance · safety

GPL3 (copyleft) — Licensed under GPLv3 (copyleft). Any derivative work or distribution must also be open-source under GPLv3; proprietary use or closed-source redistribution is not permitted.

last release 2025-10-01 (317 days) · last repo commit 2026-07-21 · 1,269 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 286,099 downloads/mo, #8,049 on PyPI

Verify before relying

pip install decompyle3

decompyle3 compiled-python-file.pyc

For syntax verification:
decompyle3 --syntax-verify compiled-python-file.pyc
  • Extent of known decompilation bugs and their frequency in real-world bytecode
  • Whether decompilation accuracy varies significantly across Python 3.7–3.13 versions
  • Performance characteristics when handling large or complex bytecode files
Same gist for agents: .md · .json

What it is and what it does

Decompyle3 is a native Python decompiler that converts compiled Python bytecode (.pyc and .pyo files) back into human-readable source code. It accepts bytecode from Python 3.7 onwards and is a reworking of the uncompyle6 project, addressing control-flow detection issues by refactoring grammar and adding more specific markers in the instruction stream. The tool runs as a command-line utility and can optionally verify the syntax of decompiled output.

The package depends on click for CLI handling, spark-parser for grammar-based parsing, and xdis for cross-version bytecode disassembly. It is actively maintained and has no known security vulnerabilities. The author acknowledges numerous decompilation bugs exist (as with all CPython decompilers) and notes that as Python optimization increases, decompilation becomes harder; the tool does not currently support obfuscated code, Cython, MicroPython, or Windows EXE extraction.

Use it for

  • Recover source code from compiled Python packages when original source is unavailable or lost
  • Analyze and audit third-party Python bytecode for security review or reverse-engineering
  • Debug compiled Python applications by examining the decompiled bytecode logic
  • Extract and study Python code from legacy or archived .pyc files for documentation or migration
  • Test and validate decompilation correctness against Python's own test suite

Worth the install?

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

With conditions

Yes, if you need to decompile Python 3.7+ bytecode and accept the GPLv3 copyleft constraint.

The tool is actively maintained, has low install friction, and carries no known vulnerabilities. Be aware that decompilation is imperfect—the author documents numerous known bugs and acknowledges that control-flow detection remains incomplete. Use the --syntax-verify option to validate output, and cross-check results with other decompilers when accuracy is critical.

Install

decompyle3 on PyPI

Before you install

Low friction installation with three runtime dependencies (click, spark-parser, xdis). Active maintenance with recent commits and no known vulnerabilities. Last release was 317 days ago; repository shows ongoing development.

Requires Python 3.7 or 3.8 to run; can only decompile bytecode from Python 3.7 onwards. Does not handle obfuscated code, Cython, MicroPython, or Py2EXE executables.

License in practice

Licensed under GPLv3 (copyleft). Any derivative work or distribution must also be open-source under GPLv3; proprietary use or closed-source redistribution is not permitted.

Quickstart

pip install decompyle3

decompyle3 compiled-python-file.pyc

For syntax verification:
decompyle3 --syntax-verify compiled-python-file.pyc

Verify before relying

  • Extent of known decompilation bugs and their frequency in real-world bytecode
  • Whether decompilation accuracy varies significantly across Python 3.7–3.13 versions
  • Performance characteristics when handling large or complex bytecode files

Package facts

LicenseGPL3 copyleft
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
clickspark-parserxdis
MaintenanceActively maintained 317 days since the last release
Last repo commit
First released
Downloads286,099 / month, #8,049 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 v3 (GPLv3)Operating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming 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: decompyle3-3.9.3-py37-none-any.whl; decompyle3-3.9.3-py38-none-any.whl; decompyle3-3.9.3-py39-none-any.whl; decompyle3-3.9.3-py3-none-any.whl

Tags

Capabilities
python bytecode decompilerdecompile pyc filesreverse engineer python bytecodepython source code recoverybytecode to source codecross-version python decompilerpyc file decompilation
Topics
bytecode-analysisreverse-engineeringcli-tool

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 › “decompile pyc files”

  • decompyle3Decompyle3 translates Python bytecode back into equivalent Python…
  • uncompyle6uncompyle6 translates Python bytecode back into equivalent Python…
  • pyc-wheelCompiles all Python source files (.py) in a wheel to bytecode (.pyc)…

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 depyf · uncompyle6 · xdis · pycnite · pyclean · bytecode · ast-decompiler · pyc-wheel · ethereum-dasm · pyinstxtractor-ng