streamline.utils

This module includes utility functions that are used in other modules.

streamline.utils.decamelize(s)

Convert CamelCase string to lowercase. Boundary between words is converted to underscore.

Example:

>>> decamelize('FreshFruit')
'fresh_fruit'

Note

This function is meant to be used with Python class names, which typically start with an upper-case letter. Names that start with a lower-case letter (e.g., ‘freshFruit’) will lose the first word during decamelization.