MCPcopy
hub / github.com/plotly/dash / check_fingerprint

Function check_fingerprint

dash/fingerprint.py:16–25  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

14
15
16def check_fingerprint(path):
17 path_parts = path.split("/")
18 name_parts = path_parts[-1].split(".")
19
20 # Check if the resource has a fingerprint
21 if len(name_parts) > 2 and cache_regex.match(name_parts[1]):
22 original_name = ".".join([name_parts[0]] + name_parts[2:])
23 return "/".join(path_parts[:-1] + [original_name]), True
24
25 return path, False

Callers 4

test_fingerprintFunction · 0.90

Calls 1

matchMethod · 0.45

Tested by 1

test_fingerprintFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…