MCPcopy Index your code
hub / github.com/plotly/dash / _hash

Method _hash

dash/dash.py:1787–1790  ·  view source on GitHub ↗
(script)

Source from the content-addressed store, hash-verified

1785 method = getattr(hashlib, hash_algorithm)
1786
1787 def _hash(script):
1788 return base64.b64encode(method(script.encode("utf-8")).digest()).decode(
1789 "utf-8"
1790 )
1791
1792 self._inline_scripts.extend(_callback.GLOBAL_INLINE_SCRIPTS)
1793 _callback.GLOBAL_INLINE_SCRIPTS.clear()

Callers

nothing calls this directly

Calls 1

digestMethod · 0.80

Tested by

no test coverage detected