to_snake_case¶
- bpod_core.misc.to_snake_case(string) ¶
Convert a given string to snake_case.
- Parameters:
string (
str) – The input string to be converted.- Returns:
The converted snake_case string.
- Return type:
Examples
>>> to_snake_case('CamelCase') 'camel_case' >>> to_snake_case('HTMLParser') 'html_parser' >>> to_snake_case('version2dot0') 'version_2_dot_0'