pyevmasm
Ethereum Virtual Machine (EVM) assembler and disassembler
Decision gist · record as of 2026-08-14
Yes, if you work with Ethereum bytecode analysis or manipulation. The package is lightweight, actively maintained, permissively licensed, and has no known vulnerabilities. The 2020 release date is a minor signal to check whether it covers your target EVM forks, but the active repository and recent commits suggest ongoing support. Install it if you need EVM assembly/disassembly; skip it if you only work with high-level smart contract code.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >2.7; the description notes Python >=3.10 is required for current development.
- Low install friction with a single lightweight dependency (future).
- The package is actively maintained with recent commits, though the latest release was in 2020; the repository remains active and not archived.
License · maintenance · safety
Apache License 2.0 (permissive) — Licensed under Apache License 2.0, a permissive license allowing commercial and private use with minimal restrictions, making it safe to integrate into most projects.
last release 2020-04-17 (2310 days) · last repo commit 2026-04-17 · 387 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 84,823 downloads/mo, #13,968 on PyPI
Alternatives
Verify before relying
pip install pyevmasm
from pyevmasm import disassemble_hex, assemble_hex
# Disassemble bytecode
print(disassemble_hex('0x608060405260043610603f57600035'))
# Assemble instructions
result = assemble_hex('PUSH1 0x40\nMSTORE\n')
print(result)- Whether the package actively supports all currently-used EVM forks beyond those listed in the CLI help (frontier through serenity).
- Current test coverage and whether the 2020 release date reflects actual maintenance gaps or merely infrequent version bumps.
What it is and what it does
pyevmasm is a Python library for assembling human-readable EVM assembly into bytecode and disassembling bytecode back into readable instructions. It provides both a command-line tool (evmasm) and a Python API, supporting multiple Ethereum protocol forks (frontier, homestead, tangerine_whistle, spurious_dragon, byzantium, constantinople, serenity) so you can work with bytecode from different network versions. The library depends only on future, making it lightweight to install.
Developers use it to analyze compiled smart contracts, manipulate EVM bytecode programmatically, or build tools that need to understand or generate Ethereum bytecode. The CLI accepts hex input/output and can read from stdin or files, while the Python API lets you query instruction tables, disassemble bytecode into instruction objects, modify them, and reassemble them back to hex.
Use it for
- Analyze compiled Ethereum smart contract bytecode to understand its structure and operations.
- Build security analysis or fuzzing tools that need to manipulate or inspect EVM instructions.
- Generate or modify EVM bytecode programmatically for contract testing or research.
- Support multiple Ethereum forks in tooling by selecting the appropriate instruction set.
- Disassemble bytecode from the blockchain to reverse-engineer contract logic.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you work with Ethereum bytecode analysis or manipulation.
The package is lightweight, actively maintained, permissively licensed, and has no known vulnerabilities. The 2020 release date is a minor signal to check whether it covers your target EVM forks, but the active repository and recent commits suggest ongoing support. Install it if you need EVM assembly/disassembly; skip it if you only work with high-level smart contract code.
Install
pyevmasm on PyPI
Before you install
Low install friction with a single lightweight dependency (future). The package is actively maintained with recent commits, though the latest release was in 2020; the repository remains active and not archived.
Requires Python >2.7; the description notes Python >=3.10 is required for current development.
License in practice
Licensed under Apache License 2.0, a permissive license allowing commercial and private use with minimal restrictions, making it safe to integrate into most projects.
Quickstart
pip install pyevmasm
from pyevmasm import disassemble_hex, assemble_hex
# Disassemble bytecode
print(disassemble_hex('0x608060405260043610603f57600035'))
# Assemble instructions
result = assemble_hex('PUSH1 0x40\nMSTORE\n')
print(result)
Verify before relying
- Whether the package actively supports all currently-used EVM forks beyond those listed in the CLI help (frontier through serenity).
- Current test coverage and whether the 2020 release date reflects actual maintenance gaps or merely infrequent version bumps.
Package facts
| License | Apache License 2.0 permissive |
| Python support | Supports the current Python release >2.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagefuture |
| Maintenance | Actively maintained 2,310 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 84,823 / month, #13,968 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: pyevmasm-0.2.3-py2-none-any.whl; pyevmasm-0.2.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ethereum bytecode assembler disassembler”
- pyevmasmpyevmasm assembles and disassembles Ethereum Virtual Machine…
- evmdasmevmdasm provides a lightweight registry of Ethereum EVM opcodes and a…
- ethereum-dasmDisassembles Ethereum EVM bytecode into assembly instructions and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also ethereum-dasm · evmdasm · py-evm · keystone-engine · qwasm · vyper · bytecode · xdis · mythril · nvidia-cuda-nvdisasm