python-assembler 0.1.1

Parse and write Python .pyc bytecode
Documentation
1
2
3
4
5
import opcode
import json

with open('opcode_map.json', 'w') as f:
    json.dump({name: value for name, value in opcode.opmap.items()}, f, indent=4)