Helper to manipulate strings
Functions
generate_uuid @classmethod
Return type :
str
camel_case_to_sentence @staticmethod
Convert a camel case to sentence like Ex 'TestClass2Build' -> 'Test class2 build'
name :
str
[description]
Return type :
str
generate_random_chars @staticmethod
size :
int
- 6
chars :
str
- ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
Return type :
str
get_enum_values @staticmethod
Get all the values of an enum
enum_class :
Type
Return type :
list
is_alphanumeric @staticmethod
Check if a string is alphanumeric with underscore
str_ :
str
Return type :
bool
remove_whitespaces @staticmethod
Remove all whitespace of a string
str_ :
str
Return type :
str
replace_accent_with_letter @staticmethod
Replace accent with letter
str_ :
str
Return type :
str
slugify @staticmethod
Returns the slugified text
text :
str
Text to slugify
snakefy :
bool
- False
Snakefy the text if True (i.e. uses undescores instead of dashes to separate text words)
to_lower :
bool
- True
True to lower all characters, False otherwise
Return type :
str
snake_case_to_sentence @staticmethod
Convert a snake case to sentence like Ex 'test_class2_build' -> 'Test class2 build'
name :
str
Return type :
str
to_enum @staticmethod
Convert a string to an enum value
enum_class :
Type
str_value :
str
Return type :
Any
to_pascal_case @staticmethod
Convert a text to pascal case Ex 'test_class2_build' -> 'TestClass2Build'
text :
str
Return type :
str
to_snake_case @staticmethod
Convert a text to snake case Ex 'TestClass2Build' -> 'test_class2_build'
text :
str
Return type :
str