MCPcopy Create free account
hub / github.com/Boris-code/feapder / get_md5

Function get_md5

feapder/utils/tools.py:1902–1915  ·  view source on GitHub ↗

@summary: 获取唯一的32位md5 --------- @param *args: 参与联合去重的值 --------- @result: 7c8684bcbdfcea6697650aa53d7b1405

(*args)

Source from the content-addressed store, hash-verified

1900
1901################################################
1902def get_md5(*args):
1903 """
1904 @summary: 获取唯一的32位md5
1905 ---------
1906 @param *args: 参与联合去重的值
1907 ---------
1908 @result: 7c8684bcbdfcea6697650aa53d7b1405
1909 """
1910
1911 m = hashlib.md5()
1912 for arg in args:
1913 m.update(str(arg).encode())
1914
1915 return m.hexdigest()
1916
1917
1918def get_sha1(*args):

Callers 4

_deal_datasMethod · 0.90
__init__Method · 0.90
get_url_md5Function · 0.85
reach_freq_limitFunction · 0.85

Calls 2

encodeMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected