SkillAgentSearch skills...

Pydis

Disassembler for Python bytecode

Install / Use

/learn @landaire/Pydis
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

crates.io

pydis

A Rust crate for disassembling Python 2.7 bytecode

Example Usage

use pydis::prelude::*;
use pydis::opcode::py27::Standard;

fn disassemble(bytecode: &[u8]) {
    let mut rdr = std::io::Cursor::new(bytecode);
    // Decode using the standard Python 2.7 opcode table.
    // A custom opcode table can be passed by calling `decode::<OpcodeTable, _>(source)`
    while let Ok(instr) = decode_py27::<Standard, _>(&mut rdr) {
        println!("{:#?}", instr);
    }
}

Related Skills

View on GitHub
GitHub Stars17
CategoryDevelopment
Updated9mo ago
Forks1

Languages

Rust

Security Score

82/100

Audited on Jun 8, 2025

No findings