= camel_to_snake('IdealGasLaw') converted_str
utils
Fill in a module description here
Camel Case
camel_to_snake
camel_to_snake (name:str)
Type | Details | |
---|---|---|
name | str | the string that you want to convert |
Returns | str | converted string |
converted_str
'ideal_gas_law'
snake_name
snake_name (x)
Get the snake style name of an instance
Type | Details | |
---|---|---|
x | ||
Returns | str | return the snake name style |
class AtomicOrbital(): pass
AtomicOrbital
__main__.AtomicOrbital
= snake_name(AtomicOrbital()) name
snake_name(AtomicOrbital())
'atomic_orbital'
snake_name(AtomicOrbital)
'atomic_orbital'
name
'atomic_orbital'