Registry / devops / r2pipe

r2pipe

JSON →
library1.9.8pypypi✓ verified 86d ago

Pipe interface for radare2, allowing programmatic interaction with the radare2 reverse engineering framework via pipes. Current version is 1.9.8, supporting Python >=3.6. Releases are irregular, tracking radare2 releases.

pip install r2pipe
INSTALL
IMPORT
SIG · R2PIPE
R
r2pipe
devopspythonv1.9.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

r2pipe
import r2pipe
Direct import of the module.
open
r2pipe.open('/bin/ls')
r2pipe.R2Pipe('/bin/ls')
r2pipe.R2Pipe was removed in favor of r2pipe.open. Using R2Pipe directly will raise AttributeError.

Open a binary, run a command, and quit.

import r2pipe r2 = r2pipe.open('/bin/ls') print(r2.cmd('?e hello world')) r2.quit()
Debug
Known issues
breakingr2pipe.R2Pipe is no longer available; use r2pipe.open instead.
fix
Replace r2pipe.R2Pipe('/bin/ls') with r2pipe.open('/bin/ls').
affects: >=1.6.0
deprecatedr2pipe.open() with 'flags' argument has been replaced by passing flags as separate parameters.
fix
Use r2pipe.open('/bin/ls', flags=['-w']) or r2pipe.open('/bin/ls', radare2=True).
affects: >=1.8.0
gotchar2pipe requires radare2 to be installed and accessible in PATH. Without radare2, r2pipe will raise a runtime error.
fix
Install radare2 from https://rada.re/n/ or via your package manager.
affects: All
gotchaThe r2pipe.open() method blocks until the underlying r2 process is ready. Ensure your binary path is correct, or you may get a hang.
fix
Check that the binary exists and is readable. If working with a non-file target (like a URL), use the radare2 parameter.
affects: All
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'r2pipe'
r2pipe not installed or installed in wrong environment.
fix
Run `pip install r2pipe` in your Python environment.
AttributeError: module 'r2pipe' has no attribute 'R2Pipe'
Code tries to use old API r2pipe.R2Pipe, which was removed.
fix
Use r2pipe.open() instead.
FileNotFoundError: [Errno 2] No such file or directory: 'r2'
radare2 executable not found in PATH.
fix
Ensure radare2 is installed and available in your system PATH.
ValueError: Unknown flag: '-w'
Passing flags incorrectly as a string instead of list.
fix
Use r2pipe.open('/bin/ls', flags=['-w'])
Upgrade
Version history
1.9.8latest on PyPI · released Mar 9, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

r2pipe — pip install r2pipe · libregistry