Stringcase is a lightweight Python library providing functions to convert strings between various common casing conventions, such as camelCase, snake_case, PascalCase, kebab-case, and more. It is a stable, single-purpose utility with no external dependencies, currently at version 1.2.0, and typically sees infrequent updates unless new casing styles or critical bug fixes are required.
pip install stringcaseVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of `stringcase` to convert between camelCase, snake_case, kebab-case, and PascalCase using the module-level functions.
Use `pascalcase` directly or be aware that `uppercamelcase` behaves identically to `pascalcase`.
Ensure inputs are always strings. If inputs might be non-string, pre-process them (e.g., `str(value)` or check `isinstance(value, str)`).
Validate output with non-ASCII or complex Unicode strings if your application requires global character support. Consider character normalization if specific Unicode behaviors are needed.
pip install stringcase
import stringcase
stringcase.snakecase('hello world')Ensure the input to any `stringcase` function is a string: `stringcase.camelcase(str(123))` or `stringcase.snakecase('my input string')`.No dependency data recorded yet.