Practical overview
When it fits
Use Pyevmasm when a task calls for low-level EVM instruction assembly, bytecode disassembly, or opcode-table inspection, either from the CLI or within Python.
Who it is for
- Python developers building EVM bytecode inspection or assembly into their tools.
- EVM developers who want a command-line way to translate instruction sequences and bytecode.
- Readers who need to list or inspect opcodes for a supported fork.
Documented uses
- Disassemble EVM bytecode into readable instructions.
- Assemble EVM instruction sequences into opcodes.
- Inspect an opcode table selected by fork or block number.
- Use Python functions and instruction tables in a bytecode-processing workflow.
Requirements & limits
The repository is public and provides source-install instructions under an Apache-2.0 license. The README requires Python 3.10 or later and documents installation with pip or from source.
- The CLI supports assembly, disassembly and opcode-table output, with file or standard-input/output handling.
- Binary input is documented for disassembly and binary output for assembly.
- The default fork is Byzantium; the CLI also accepts listed fork names or an unsigned block number.
- The Python API includes instruction tables and functions such as
disassemble_hex,disassemble_allandassemble_hex.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install Pyevmasm from source
Install the library from its GitHub repository.
Before you start
- Python 3.10 or later
- Git
- pip
Steps
Clone
https://github.com/crytic/pyevmasm.Change into the
pyevmasmdirectory.Run the command below.
pip install .
Expected outcome
The repository's source-install instructions install the package from the checked-out project.
Guide limitations
- These steps cover installation, not a bytecode assembly or disassembly workflow.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 9 October 2026
- Original website title
- crytic/pyevmasm · Official homepage title · retained in its source language

