snakeoil.chksum.defaults module

default chksum implementation- sha1, sha256, rmd160, and md5

class snakeoil.chksum.defaults.Chksummer(chf_type, obj, str_size, can_mmap=True)[source]

Bases: object

long2str(val)[source]
new()[source]
static str2long(val)[source]
class snakeoil.chksum.defaults.SizeChksummer[source]

Bases: Chksummer

Size based chksum handler.

yes, aware that size isn’t much of a chksum. ;)

static long2str(val)[source]
static str2long(val)[source]
class snakeoil.chksum.defaults.SizeUpdater[source]

Bases: object

hexdigest()[source]
update(data)[source]
snakeoil.chksum.defaults.chf_thread(queue, callback)[source]
snakeoil.chksum.defaults.chksum_loop_over_file(filename, chfs, parallelize=True, can_mmap=True)[source]
snakeoil.chksum.defaults.loop_over_file(handle, callbacks, parallelize=True, can_mmap=True)[source]