from CaseConverter import Convert, Cases, FromCase # Convert a sentence to snake case Convert("This is a cry for help", Cases.Snake) # this_is_a_cry_for_help # Supports other languages too! Convert("Конец близок", Cases.Kebab) # конец-близок # Convert a list of words to camel case Convert(["The", "fog", "is", "coming"], Cases.Camel) # theFogIsComing # Convert to a custom case (delimiter required) Convert("What do the numbers mean, Mason?", Cases.Custom, delimiter="|") # what|do|the|numbers|mean|mason # Convert from one case to another Convert(FromCase("ItWasAllAMistake", Cases.Pascal), Cases.Cobol) # IT-WAS-ALL-A-MISTAKE # Convert from a custom case (delimiter necessary) to another case Convert(FromCase("ratio+L+cope", Cases.Custom, '+'), Cases.Custom, '~') # ratio~l~cope