r2pipe for Python
Interact with radare2 using the #!pipe command or in standalone scripts that communicate with local or remote r2 via pipe, tcp or http.
Installation
$ pip install r2pipe
or
$ pip3 install r2pipe
Usage example:
import r2pipe
r2 = r2pipe.open("/bin/ls")
r2.cmd('aa')
print(r2.cmd("afl"))
print(r2.cmdj("aflj")) # evaluates JSONs and returns an object
print(r2.cmdj("ij").core.format) # shows file format
r2.quit()
Metadata
Release files for r2pipe 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| r2pipe-2.0.0.tar.gz | 25.5 kB | Details |
Release files / r2pipe-2.0.0.tar.gz
| Download URL | r2pipe-2.0.0.tar.gz |
|---|---|
| Size | 25.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dac499328c71e65f59895a9d23d0e1fa3255c44c07490aad1d87d476cc9d3272
|
|
BLAKE2b-256 checksum How to use checksums |
b056540b3d1f7b2b92e60cc41658103293473e0b3d61b18651448030495b512e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.17
|