mirror of
https://github.com/rizinorg/rz-pipe.git
synced 2026-11-10 12:41:26 -10:00
30 lines
506 B
Markdown
30 lines
506 B
Markdown
# rzpipe for Python
|
|
|
|
Interact with rizin using the `#!pipe` command or in standalone scripts
|
|
that communicate with local or remote rizin via pipe, tcp or http.
|
|
|
|
## Installation
|
|
|
|
```sh
|
|
$ pip install rzpipe
|
|
```
|
|
|
|
or
|
|
|
|
```sh
|
|
$ pip3 install rzpipe
|
|
```
|
|
|
|
## Usage example:
|
|
|
|
```python
|
|
import rzpipe
|
|
|
|
pipe = rzpipe.open("/bin/ls")
|
|
pipe.cmd('aa')
|
|
print(pipe.cmd("afl"))
|
|
print(pipe.cmdj("aflj")) # evaluates JSON and returns an object
|
|
print(pipe.cmdj("ij").core.format) # shows file format
|
|
pipe.quit()
|
|
```
|