radareorg / sdb

Simple and fast string based key-value database with support for arrays and json
https://www.radare.org/
MIT License
217 stars 62 forks source link

Can I use sdb with Python #254

Closed zCurq closed 2 years ago

zCurq commented 2 years ago

I'm a Python developer but I need some answers.

1) Can I use sdb ?

2) sdb has a any Python module ?

trufae commented 2 years ago

Sorry for the late response. Yes, you can use SDB, but the bindings I wrote are based on CTypes and only work with Python2. i have massaged the autogenerated script to work with Python3, but it's still ugly and the module is not published to pip.

I am happy to make proper native python3 bindings and publish the module in pypi.

The API is quite simple and should be quite straight forward. Also, if you care about performance, using ctypes is probably not the best solution, so im thinking in writing the new syntactic-sugar bindings in plain C.

How does it sound?

trufae commented 2 years ago

Done. I wrote a native module and publish it, for now it's just covering very few basic methods of sdb. but will add more commits to support the whole API as well as document the methods. Help and contribts are welcome to speedup this :)

pip install r2sdb