MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / whichdb

Function whichdb

Lib/whichdb.py:17–113  ·  view source on GitHub ↗

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 open

(filename)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

openFunction · 0.90
whichdb.pyFile · 0.85

Calls 6

openFunction · 0.70
closeMethod · 0.45
openMethod · 0.45
statMethod · 0.45
readMethod · 0.45
unpackMethod · 0.45

Tested by

no test coverage detected