Decompyle++ provides pycdas and pycdc CLI tools to disassemble or decompile Python .pyc bytecode into readable output.
Overview
Decompyle++, also known as Decompyle++, is a C++ toolchain for working with compiled Python bytecode. It aims to turn byte-code back into human-readable Python source and to support bytecode from multiple Python versions, though coverage varies by release.
The pycdas tool disassembles a .pyc file and prints the instruction listing to standard output. The pycdc tool decompiles the same inputs and prints recovered Python source to standard output, reporting errors on standard error.
Both tools accept marshalled code objects produced by Python's marshal module when you pass version flags, because those blobs lack embedded version metadata. The project is built with CMake and can be compiled on Unix-like systems or with MSVC-generated project files.
Use cases center on inspecting obfuscated or lost source, auditing bytecode, or studying compiler output. It is a standalone command-line utility rather than an importable application framework.
Key features
- pycdas bytecode disassembly
- pycdc source decompilation
- Marshalled object support with -c -v
- Multi-version bytecode goal
- CMake-based C++ build
- Stdout and stderr separation
- GPLv3-licensed toolchain
Use cases
- Inspecting unknown .pyc files
- Recovering logic from bytecode
- Teaching Python compilation details
- Bytecode auditing workflows