Python bsddb.hashopen() Examples
The following are 10
code examples of bsddb.hashopen().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
bsddb
, or try the search function
.
Example #1
Source File: dbhash.py From ironpython2 with Apache License 2.0 | 5 votes |
def open(file, flag = 'r', mode=0666): return bsddb.hashopen(file, flag, mode)
Example #2
Source File: dbhash.py From BinderFilter with MIT License | 5 votes |
def open(file, flag = 'r', mode=0666): return bsddb.hashopen(file, flag, mode)
Example #3
Source File: dbhash.py From Computable with MIT License | 5 votes |
def open(file, flag = 'r', mode=0666): return bsddb.hashopen(file, flag, mode)
Example #4
Source File: dbhash.py From oss-ftp with MIT License | 5 votes |
def open(file, flag = 'r', mode=0666): return bsddb.hashopen(file, flag, mode)
Example #5
Source File: CardNames.py From pyscard with GNU Lesser General Public License v2.1 | 5 votes |
def __init__(self): Synchronization.__init__(self) carddb_dir = environ['ALLUSERSPROFILE'] carddb_file = 'cardnames.bdb' carddb_file = join(carddb_dir, carddb_file) self.db = hashopen(carddb_file, 'w')
Example #6
Source File: devdb.py From pycopia with Apache License 2.0 | 5 votes |
def __init__(self): self.db = bsddb.hashopen(DEVFILE)
Example #7
Source File: dbhash.py From Splunking-Crime with GNU Affero General Public License v3.0 | 5 votes |
def open(file, flag = 'r', mode=0666): return bsddb.hashopen(file, flag, mode)
Example #8
Source File: dbhash.py From bazarr with GNU General Public License v3.0 | 5 votes |
def open(file, flag = 'r', mode=0666): return bsddb.hashopen(file, flag, mode)
Example #9
Source File: bdb.py From yumbootstrap with GNU General Public License v3.0 | 5 votes |
def db_dump(filename, outfile = sys.stdout): try: f = bsddb.hashopen(filename, 'r') db_type = "hash" except: f = bsddb.btopen(filename, 'r') db_type = "btree" outfile.write("VERSION=3\n") # magic outfile.write("format=bytevalue\n") outfile.write("type=%s\n" % (db_type)) outfile.write("HEADER=END\n") for (key,value) in f.iteritems(): outfile.write(" ") for c in key: outfile.write("%02x" % ord(c)) outfile.write("\n") outfile.write(" ") for c in value: outfile.write("%02x" % ord(c)) outfile.write("\n") outfile.write("DATA=END\n") #----------------------------------------------------------------------------- # vim:ft=python
Example #10
Source File: dbhash.py From PokemonGo-DesktopMap with MIT License | 5 votes |
def open(file, flag = 'r', mode=0666): return bsddb.hashopen(file, flag, mode)