totable

Cython wrapper for tokyo cabinet table
Download

totable Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • brentp
  • Publisher web site:
  • http://code.google.com/u/bpederse/

totable Tags


totable Description

Cython wrapper for tokyo cabinet table totable offers pythonic access to the tokyo cabinet table database API. (NOTE: The original cython code was from pykesto.) The aims is to provide a simple syntax to load and query data in a table. Most of the work is handled by the Col query interface. e.g.>>> from totable import ToTable, Col>>> tbl = ToTable('t.tct', 'w')>>> result = tbl.select(Col('age') > 18, Col('name').startswith('T'))to allow querying columns with numbers and letters transparently. Even though tokyo cabinet stores all values as strings. And more syntatic sugar below.Installation:first, install Tokyo-Cabinet source, then, from a the directory containing this file:# requires cython for now.$ cython src/ctotable.pyx$ python setup.py build_ext -i# test$ PYTHONPATH=. python totable/tests/test_totable.py# install$ sudo python setup.py install Requirements: · Python


totable Related Software