Cassidy
raw JSON → 0.1.4 verified Fri May 01 auth: no python
Cassidy is a Python library for string case conversion, identification, and parsing. It supports common cases like snake_case, camelCase, PascalCase, kebab-case, and more. Current version is 0.1.4, released as a young project with no breaking changes history yet.
pip install cassidy Imports
- cassidy
import cassidy
Quickstart
import cassidy
# Convert string to snake_case
result = cassidy.to_snake("HelloWorld") # "hello_world"
print(result)
# Identify the case
case_info = cassidy.identify("helloWorld") # {'case': 'camel', 'confidence': 1.0}
print(case_info)