snake_case

negmas.helpers.snake_case(s: str)str[source]

Converts a string from CamelCase to snake_case

Example

>>> print(snake_case('ThisIsATest'))
this_is_a_test
Parameters

s – input string

Returns

converted string

Return type

str