PyOpenWorm.identifier_mixin module

PyOpenWorm.identifier_mixin.IdMixin(typ=<type 'object'>, hashfunc=None)[source]
Parameters:
typ : type

The type of object to use as the hash function’s super class. Defaults to ‘object’

hashfunc : function

The function to use for encoding data provided to make_identifier. Should return an object can .encode() to a bytes (a.k.a. str in Python 2). Defaults to hashlib.sha224()