June 2008
October 2007
July 2007
November 2006
Dtuple database module
by pvergain (via)This module wraps up return tuples from the fetch* methods in the Python Database API. Using this class, the return tuples can be treated as tuples, dictionaries, or objects with attributes corresponding to the column names.
The module is memory efficient -- a "tuple descriptor" is shared across all result rows, and the result row "wrapper" is very lightweight. The speed is quite reasonable.
1
(4 marks)