utils

Fill in a module description here
Camel Case

source

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 = camel_to_snake('IdealGasLaw')
converted_str
'ideal_gas_law'

source

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
name = snake_name(AtomicOrbital())
snake_name(AtomicOrbital())
'atomic_orbital'
snake_name(AtomicOrbital)
'atomic_orbital'
name
'atomic_orbital'