androlyze.model package

Subpackages

Submodules

androlyze.model.Hashable module

class androlyze.model.Hashable.Hashable[source]

Interface for lazyly computing the hash by reading and hashing the file from path.

You need to implement the _get_hash method

Attributes

Methods

KEY_HASH = 'sha256'
del_hash()[source]
del_path()[source]
get_hash()[source]

Get the sha256 message digest of the file and store it.

Returns:

str

sha256 message digest as hexstring

None

If path is None

Raises:

OSError

If the file could no be opened

get_path()[source]
hash

str - sha256 of raw file (hexstring)

path

str - path to file

set_hash(value)[source]
set_path(value)[source]

androlyze.model.Resetable module

class androlyze.model.Resetable.Resetable[source]

Interface for classes that can reset themselves

Methods

reset()[source]

Reset the class

Module contents