pyzor.engines.common

Common library shared by different engines.

class pyzor.engines.common.DBHandle

Bases: tuple

DBHandle(single_threaded, multi_threaded, multi_processing)

multi_processing

Alias for field number 2

multi_threaded

Alias for field number 1

single_threaded

Alias for field number 0

exception pyzor.engines.common.DatabaseError

Bases: exceptions.Exception

class pyzor.engines.common.Record(r_count=0, wl_count=0, r_entered=None, r_updated=None, wl_entered=None, wl_updated=None)

Bases: object

Prefix conventions used in this class: r = report (spam) wl = whitelist

r_increment()
r_update()
wl_increment()
wl_update()