whichdb
index
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/whichdb.py
Module Docs

Guess which db package to use to open a db file.

 
Modules
       
dbm
os
struct
sys

 
Functions
       
whichdb(filename)
Guess which db package to use to open a db file.
 
Return values:
 
- None if the database file can't be read;
- empty string if the file can be read but can't be recognized
- the module name (e.g. "dbm" or "gdbm") if recognized.
 
Importing the given module may still fail, and opening the
database using that module may still fail.