Where to find the 'dbi' and 'odbc' modules?

Hamish Lawson hamish_lawson at yahoo.co.uk
Tue Jan 16 12:51:52 EST 2001


> dbi is no (AFAIK) a module/package, it's the "official" python API for
> playing with databases. odbc module is available with Mark Hammon's
> Win32 extensions

There is in fact a dbi module in the Win32 extensions along with odbc
(demonstrated below), which is what I suspect the documentation was
referring to. I believe the official API is actually called DB-API.

>>> import dbi, odbc
>>> dir(dbi)
['DATE', 'NUMBER', 'RAW', 'ROWID', 'STRING', 'TYPES', '__doc__', '__file
__', '__name__', 'dataError', 'dbDate', 'dbRaw', 'dbiDate', 'dbiRaw', 'i
ntegrityError', 'internalError', 'noError', 'opError', 'progError']
>>> dir(odbc)
['__doc__', '__file__', '__name__', 'error', 'odbc']
>>>


Hamish Lawson


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list