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

Function pascal_case

dash/_utils.py:332–340  ·  view source on GitHub ↗
(name: Union[str, None])

Source from the content-addressed store, hash-verified

330
331
332def pascal_case(name: Union[str, None]):
333 s = re.sub(r"\s", "_", str(name))
334 # Replace leading `_`
335 s = re.sub("^[_]+", "", s)
336 if not s:
337 return s
338 return s[0].upper() + re.sub(
339 r"[\-_\.]+([a-z])", lambda match: match.group(1).upper(), s[1:]
340 )
341
342
343def get_root_path(import_name: str) -> str:

Callers 1

generate_shapeFunction · 0.85

Calls 2

subMethod · 0.80
groupMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…