GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - zrsx/pycdc: C++ python bytecode disassembler and decompiler

BranchesTags
Open more actions menu

Latest commit

 

History

750 Commits
750 Commits

Folders and files

NameName
Last commit message
Last commit date
.circleci
.circleci
 
 
.github
.github
 
 
buildbot
buildbot
 
 
bytes
bytes
 
 
scripts
scripts
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
ASTNode.cpp
ASTNode.cpp
 
 
ASTNode.h
ASTNode.h
 
 
ASTree.cpp
ASTree.cpp
 
 
ASTree.h
ASTree.h
 
 
CMakeLists.txt
CMakeLists.txt
 
 
FastStack.h
FastStack.h
 
 
LICENSE
LICENSE
 
 
README.markdown
README.markdown
 
 
SECURITY.md
SECURITY.md
 
 
azure-pipelines.yml
azure-pipelines.yml
 
 
bytecode.cpp
bytecode.cpp
 
 
bytecode.h
bytecode.h
 
 
bytecode_ops.inl
bytecode_ops.inl
 
 
data.cpp
data.cpp
 
 
data.h
data.h
 
 
pyc_code.cpp
pyc_code.cpp
 
 
pyc_code.h
pyc_code.h
 
 
pyc_module.cpp
pyc_module.cpp
 
 
pyc_module.h
pyc_module.h
 
 
pyc_numeric.cpp
pyc_numeric.cpp
 
 
pyc_numeric.h
pyc_numeric.h
 
 
pyc_object.cpp
pyc_object.cpp
 
 
pyc_object.h
pyc_object.h
 
 
pyc_sequence.cpp
pyc_sequence.cpp
 
 
pyc_sequence.h
pyc_sequence.h
 
 
pyc_string.cpp
pyc_string.cpp
 
 
pyc_string.h
pyc_string.h
 
 
pycdas.cpp
pycdas.cpp
 
 
pycdc.cpp
pycdc.cpp
 
 

Repository files navigation

Decompyle++ (pycdc) — zrsx Fork

A blazing-fast Python bytecode decompiler & disassembler for Python 2.0–3.14

Build Status License Python Versions GitHub Stars GitHub Forks MSVC-CI Linux-CI Build Status CircleCI Build

Issues: Open Issues Closed Issues

Pull Requests: Open PRs Closed PRs


Overview

Decompyle++ is a fast, cross-version Python bytecode decompiler and disassembler written in C++. This fork by zrsx extends the original pycdc to support:

  • Python 2.0 through 3.14
  • Newer opcode formats and edge cases
  • Marshalled code objects and .pyc files
  • High-speed native C++ processing

Features

  • Decompiles .pyc files to readable Python source
  • Disassembles bytecode into opcode instructions
  • Works with marshalled code objects (e.g., .marshalled)
  • Supports Python versions 2.0 – 3.14
  • Fast, minimal, and standalone (no Python runtime needed)

Installation

Dependencies

Install the required packages:

sudo apt update
sudo apt install build-essential cmake git python3-dev
Package Description
build-essential Compilers and build tools
cmake Build system generator
git Repository cloning
python3-dev Python headers (for opcode support)

Build

git clone https://github.com/zrsx/pycdc.git
cd pycdc
cmake .
make

Optional: Run the test suite

make check

Usage

Decompile .pyc File

./pycdc path/to/file.pyc

Disassemble .pyc File

./pycdas path/to/file.pyc

Decompile Marshalled Code

./pycdc -c -v 3.14 path/to/file.marshalled

Flags

Flag Description
-c Treat input as marshalled code
-v Specify Python version (e.g., 3.11, 3.13)

Examples

./pycdas __pycache__/example.cpython-312.pyc

Prebuilt Executables

Looking for a ready-to-use binary?

Prebuilt .zip files for Windows, Linux, and macOS are automatically generated on every successful CI run.

📦 Download from GitHub Actions Artifacts:

Platform Executable Zip Notes
🪟 Windows Download Built via MSVC
🐧 Linux Download Built via GCC
🍎 macOS Download Built via Clang

🔧 Visit the relevant workflow, click on the latest successful run, and scroll down to the Artifacts section to download.

Reporting Issues

Help us improve! If you find:

  • Crashes
  • Incorrect output
  • Unsupported opcodes (e.g., UNSUPPORTED_OPCODE 218)

Please open an issue at: https://github.com/zrsx/pycdc/issues

Include:

  • Python version used to generate the .pyc
  • The .pyc or .marshalled file (if possible)
  • Full output/error logs
  • Minimal source snippet (if relevant)

License

Distributed under the terms of the GNU General Public License v3.0 View License


Credits

  • Fork Maintainer: zrsx
  • Original Authors: Michael Hansen, Darryl Pogue
  • Notable Contributors: charlietang98 • Kunal Parmar • Olivier Iffrig • Zlodiy • George

Contributing

We welcome:

  • Opcode/bytecode updates
  • Bug reports and feature requests
  • Pull requests for enhancements or fixes

Star the repo to support continued development.

About

C++ python bytecode disassembler and decompiler

Topics

decompilerpycdcpythonpython3

Resources

Readme
GPL-3.0 license

Security policy

Security policy
Activity
Custom properties

Stars

40 stars

Watchers

1 watching

Forks

12 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.