{"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":"python","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,"search_vec":"'1.1.0':45 'bug':52 'camelcas':22,62 'case':11,17,21,26,58,60,64,68 'casefi':1,2 'charact':31 'convers':59 'convert':9 'current':42 'depend':39 'featur':56 'fix':53 'includ':29 'kebab':25,67 'kebab-cas':24,66 'librari':33 'lightweight':5 'like':19 'need':50 'new':55 'packag':7 'parti':38 'pascalcas':23,65 'python':6 'receiv':47 'snake':20,63 'string':13,57 'style':18 'support':15 'third':37 'third-parti':36 'unicod':30,69 'updat':48 'util':61 'various':16 'version':44","created_at":"2026-04-11T01:27:31.471087+00:00","updated_at":"2026-04-16T01:29:01.376544+00:00","problems":[{"fix":"Run `pip install casefy` in your terminal to install the package.","cause":"The 'casefy' package is not installed in the Python environment you are currently using.","error":"ModuleNotFoundError: No module named 'casefy'"},{"fix":"Refer to the 'casefy' documentation and use the correct function name, such as `casefy.snakecase()` for converting to snake_case.","cause":"You are attempting to call a function that does not exist or is misspelled in the 'casefy' library (e.g., using 'to_snakecase' instead of 'snakecase').","error":"AttributeError: module 'casefy' has no attribute 'to_snakecase'"},{"fix":"Ensure that the input argument to all 'casefy' functions is a string or bytes-like object.","cause":"A function from the 'casefy' library was called with an argument that is not a string or bytes-like object, such as an integer, list, or None.","error":"TypeError: expected string or bytes-like object"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.1.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/dmlls/python-casefy","docs":"https://dmlls.github.io/python-casefy/","changelog":null,"pypi":"https://pypi.org/project/casefy/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-28","last_verified":"2026-08-28","next_check":"2026-07-28","install_tag":null}}