Giter Site home page Giter Site logo

radareorg / radare2-r2papi Goto Github PK

View Code? Open in Web Editor NEW
32.0 13.0 16.0 528 KB

High Level API on top of the R2Pipe interface

Home Page: https://www.radare.org

Python 20.38% Rust 17.35% TypeScript 57.78% C 0.11% Makefile 2.22% Shell 0.09% Batchfile 0.31% Pascal 0.07% Nim 0.24% JavaScript 1.45%
python r2pipe radare2 rust typescript

radare2-r2papi's Introduction

radare2-r2papi

Formerly known as r2pipe-api, but papi sounds better.

Rust Python Typescript

This repository contains a high-level API on top of r2pipe, abstracting the r2 commands with a human-friendly taste.

As long as this API will require some discussion because it will serve as a way to redesign the R2 C Apis at some point, we must focus on practical use cases, flexibility, ortogonality and other ities.

Feel free to open issues, send PRs with proposals.

--pancake

radare2-r2papi's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

radare2-r2papi's Issues

Fix tests

Tests broken, probably because the latest radare2

Export graph api also

To get the petgraph representation of radare2 graph commands output, like agj or dmhg.

use context manager for more pythonic code?

I'm trying to think about how the usage of the python library can be made cleaner.

I'm hesitant about this proposal, but it occurred to me that using context managers for the R2Api objects would give a cleaner usage pattern, at least for short interactions:

For instance, the main api instantiation It would look something like this:

with open_in_radare('/bin/ls') as bin:
  if bin.is_stripped:
    print "this binary is stripped"
 searchIn(bin, 'io.sections.exec')
 analyzeCalls(bin)

basically this avoids having to manually quit() the api object - but it makes code indentated. I find it more readable this way tho. what do you think, is it worthy to explore this? maybe the change makes more sense with some other objects instead.

Create sphinx docs

We should document current methods and classes, and generate docs based on that.
Probably sphinx is the best choice, it can be integrated with beta r2 website.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.