pyzor.engines.gdbm

Gdbm database engine.

class pyzor.engines.gdbm_.GdbmDBHandle(fn, mode, max_age=None)

Bases: pyzor.engines.common.BaseEngine

absolute_source = True
apply_method(method, varargs=(), kwargs=None)
classmethod decode_record(s)
static decode_record_0(s)
classmethod decode_record_1(s)
classmethod encode_record(value)
fields = ('r_count', 'r_entered', 'r_updated', 'wl_count', 'wl_entered', 'wl_updated')
handles_one_step = False
items()

Return a list of (key, record).

iteritems()

Iterate over pairs of (key, record).

log = <logging.Logger object>
reorganize_period = 86400
start_reorganizing()
start_syncing()
sync_period = 60
this_version = '1'
class pyzor.engines.gdbm_.ThreadedGdbmDBHandle(fn, mode, max_age=None, bound=None)

Bases: pyzor.engines.gdbm_.GdbmDBHandle

Like GdbmDBHandle, but handles multi-threaded access.

apply_method(method, varargs=(), kwargs=None)