{"id":2423,"library":"casefy","title":"Casefy","description":"Casefy is a lightweight Python package for converting the casing of strings. It supports various case styles like snake_case, camelCase, PascalCase, kebab-case, and more, including Unicode characters. The library has no third-party dependencies. It is currently at version 1.1.0 and receives updates as needed for bug fixes or new features.","status":"active","version":"1.1.0","language":"en","source_language":"en","source_url":"https://github.com/dmlls/python-casefy","tags":["string","case conversion","casing","utilities","camelCase","snake_case","PascalCase","kebab-case","unicode"],"install":[{"cmd":"pip install casefy","lang":"bash","label":"Install latest version"}],"dependencies":[],"imports":[{"symbol":"casefy","correct":"import casefy"}],"quickstart":{"code":"import casefy\n\n# Convert a string to snake_case\ntext = \"HelloWorldExample123\"\nsnake_cased_text = casefy.snakecase(text)\nprint(f\"Original: {text}\\nSnake Case: {snake_cased_text}\")\n\n# Convert to camelCase\ncamel_cased_text = casefy.camelcase(\"another-example_string\")\nprint(f\"Camel Case: {camel_cased_text}\")\n\n# Convert to PascalCase with specific grouping\npascal_cased_text = casefy.pascalcase(\"foo_bar_baz\", keep_together=[\"BAR\"])\nprint(f\"Pascal Case: {pascal_cased_text}\")","lang":"python","description":"Initialize the library by importing 'casefy', then use its various functions like `snakecase`, `camelcase`, or `pascalcase` to convert strings between different casing conventions."},"warnings":[{"fix":"Review the documentation for `snakecase` and `separatorcase` to understand the updated behavior of `keep_together` and adjust your code if necessary.","message":"The behavior of the `keep_together` parameter in `snakecase` and `separatorcase` functions was updated in version 1.1.0. If you were relying on specific word grouping behavior with this parameter, review your usage.","severity":"breaking","affected_versions":">=1.1.0"},{"fix":"Test your application thoroughly after migrating from `python-stringcase` to `casefy` to ensure all edge cases and expected conversions are handled correctly. Refer to Casefy's official documentation for current API behavior.","message":"Casefy was created as a spiritual successor to the `python-stringcase` library. While the API was kept similar to facilitate migration, users migrating from `python-stringcase` should verify full compatibility as subtle differences may exist.","severity":"gotcha","affected_versions":"<1.0.0 (for those migrating from `python-stringcase`)"}],"env_vars":null,"last_verified":"2026-04-10T00:00:00.000Z","next_check":"2026-07-09T00:00:00.000Z"}