Package etl :: Module tools
[hide private]
[frames] | no frames]

Source Code for Module etl.tools

1  import pickle, md5 
2   
3 -def uniq_id(data, prefix='', suffix=''):
4 d = pickle.dumps(data) 5 n = md5.new() 6 n.update(d) 7 return prefix + (n.hexdigest()[:20]) + suffix
8