A robust Python package (v1.2.0) for transforming string cases such as "Hello, world!" into "helloWorld" (camelCase). It offers various conversion types including camelCase, snake_case, kebab-case, macro_case, pascalCase, cobol-case, flatcase, and titlecase. The library is actively maintained with regular updates, and designed to be lightweight with no external dependencies.
pip install case-converterVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic string case conversion using various functions, including options for preserving punctuation and using custom delimiters.
Pass `strip_punctuation=False` as an argument to the conversion function (e.g., `camelcase("text!", strip_punctuation=False)`).Provide a list or string of custom delimiters using the `delims` argument (e.g., `snakecase("text|with|pipes", delims=['|'])`).Change the import statement to `from caseconverter import [function_name]` (e.g., `from caseconverter import camelcase`).
Use the correct lowercase function name as imported: `from caseconverter import camelcase`, then call `camelcase('hello world')`.Ensure that the input provided to any `caseconverter` function is always a string. Convert non-string data to a string first if necessary.
No dependency data recorded yet.