leveldbkit: an object mapper for leveldb in python

94 views
Skip to first unread message

Shuhao

unread,
Mar 5, 2013, 5:50:46 PM3/5/13
to py-le...@googlegroups.com
Hi Leveldb'ers!

I wrote a leveldb object mapper for python. It does object mapping and serializes the object to json and stores it in leveldb. This object mapper also supports secondary indices, so that you can look up with the value to an attribute to leveldb to get keys back.

Is it that useful? Maybe, maybe not. I wrote it as a prototyping exercise for another object mapper that i maintain, riakkit (it needs a major overhaul of architecture and I used leveldb to prototype as the riak side is undergoing some big changes as well). I'm currently using it in a low profile web project and it works reasonably well.

If anyone is interested, here's a link: https://github.com/shuhaowu/leveldbkit

Any feedback, criticisms, comments are welcome :)

Shuhao

Alsan Wong

unread,
Aug 24, 2013, 2:27:57 AM8/24/13
to py-le...@googlegroups.com
How can I iterate through all the 'objects' in the db, if I don't know what's inside?

Shuhao Wu

unread,
Aug 24, 2013, 4:55:32 AM8/24/13
to py-le...@googlegroups.com

You can do Model.index("$bucket", None) I believe. Check the riak documentation on 2i.

I also support $key as a field name and you can iterate through a key range.

Cheers,

Shuhao
Sent from my phone.

--
You received this message because you are subscribed to a topic in the Google Groups "py-leveldb" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/py-leveldb/uR5oeKUocHo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to py-leveldb+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages