Miscellaneous utilities

Module Contents


camelize(string,uppercase_first_letter=True) Convert strings to CamelCase.
camelize(string, uppercase_first_letter=True)

Convert strings to CamelCase. Examples:

>>> camelize("device_type")
>>> camelize("device_type", False)

camelize() can be though as a inverse of underscore(), although there are some cases where that does not hold:

>>> camelize(underscore("IOError"))
Parameters:uppercase_first_letter – if set to True camelize() converts strings to UpperCamelCase. If set to False camelize() produces lowerCamelCase. Defaults to True.