humps 🐫 Convert strings (and dictionary keys) between snake case, camel case and pascal case in Python
https://humps.readthedocs.io/en/latest/
>>> from humps import decamelize
>>>
>>>
>>> decamelize('superTCPOption')
'super_tcp_option'
>>>
>>>
>>> decamelize({'ParamOption': 'one', 'fooBarBaz': True})
{'param_option': 'one', 'foo_bar_baz': True}
>>>