MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / _camel_to_snake

Method _camel_to_snake

fastdeploy/logger/formatters.py:86–89  ·  view source on GitHub ↗

Convert camel case to snake case

(self, name: str)

Source from the content-addressed store, hash-verified

84 return ""
85
86 def _camel_to_snake(self, name: str) -> str:
87 """Convert camel case to snake case"""
88 s1 = re.sub("([a-z0-9])([A-Z])", r"\1_\2", name)
89 return s1.lower()
90
91 def format(self, record):
92 """

Callers 2

formatMethod · 0.95

Calls 1

subMethod · 0.80

Tested by 1