I am looking for python bindings for Table engine of Tokyo cabinet. I tried Pytc but can only find Hash and B-tree engine support. Is there any other bindings available?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
The only other one I know of is a fork of pytc but it looks like they have only done some refactoring and documentation work, so probably still only hash and b-tree support:
tc
If this doesn't work you are probably out of luck. I think all the tyrant bindings only use the hash engine.
My branch of pytc called "tc" do have support for tables (TDB) http://github.com/rsms/tc
Basic example:
Performing queries:
More examples in the TDB unit test: http://github.com/rsms/tc/blob/master/lib/tc/test/tdb.py
Here is an implementation of search of table engine using PyTyrant:
http://github.com/ericflo/pytyrant/tree/master
I've been monitoring (and sometimes improving) various Python bindings for TC for more than a year, so here's an updated list of best bindings matching your criteria.
There are many stale and/or incomplete alternatives.
I was in contact with the author of tc and he told me the following:
I tried the table driver for a small test with success, am planning on trying it on larger tables soon.