MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / create_hash

Function create_hash

docling/utils/utils.py:40–44  ·  view source on GitHub ↗
(string: str)

Source from the content-addressed store, hash-verified

38
39
40def create_hash(string: str):
41 hasher = hashlib.sha256()
42 hasher.update(string.encode("utf-8"))
43
44 return hasher.hexdigest()
45
46
47def download_url_with_progress(url: str, progress: bool = False) -> BytesIO:

Callers 1

_to_legacy_documentMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected