MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / camelize_var

Function camelize_var

tests/testmodels.py:1035–1037  ·  view source on GitHub ↗
(var_name: str)

Source from the content-addressed store, hash-verified

1033
1034
1035def camelize_var(var_name: str):
1036 var_parts: list[str] = var_name.split("_")
1037 return var_parts[0] + "".join([part.title() for part in var_parts[1:]])
1038
1039
1040class CamelCaseAliasPerson(Model):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…