{"id":23815,"library":"graphql-utils","title":"graphql-utils","description":"A small utility library for common tasks when interacting with GraphQL APIs, such as converting between CamelCase and snake_case field names. Version 0.4 is the latest. Release cadence is low.","status":"active","version":"0.4","language":"python","source_language":"en","source_url":"https://github.com/Mergifyio/graphql-utils","tags":["graphql","utilities","camelcase","snakecase"],"install":[{"cmd":"pip install graphql-utils","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"graphql-utils uses underscore, not dot, in package name","wrong":"from graphql.utils import CamelCase","symbol":"CamelCase","correct":"from graphql_utils import CamelCase"},{"wrong":null,"symbol":"snake_case_to_camel","correct":"from graphql_utils import snake_case_to_camel"},{"wrong":null,"symbol":"camel_to_snake_case","correct":"from graphql_utils import camel_to_snake_case"}],"quickstart":{"code":"from graphql_utils import CamelCase\n\n# Convert GraphQL response fields from camelCase to snake_case\ndata = {\"userName\": \"John\", \"lastName\": \"Doe\"}\nconverter = CamelCase()\nsnake_data = converter.snake_case_to_camel(data)\nprint(snake_data)\n# Output: {\"user_name\": \"John\", \"last_name\": \"Doe\"}","lang":"python","description":"Create a CamelCase converter and transform dict keys."},"warnings":[{"fix":"Use 'from graphql_utils import CamelCase' instead of 'from graphql.utils import CamelCase'.","message":"The correct import is from graphql_utils (with underscore), not graphql.utils. Many users mistakenly import from the wrong module.","severity":"gotcha","affected_versions":"all"},{"fix":"Use CamelCase().snake_case_to_camel() to convert snake_case to camelCase; for reverse, use CamelCase().camel_to_snake_case().","message":"The method names are confusing: CamelCase class has snake_case_to_camel method, not camel_to_snake_case. Check the class's method names carefully.","severity":"gotcha","affected_versions":"all"},{"fix":"Check the GitHub repo for updates or consider alternatives if you need active maintenance.","message":"Version 0.4 is likely stable but there are no recent releases. The library may be in maintenance mode.","severity":"deprecated","affected_versions":"0.4"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from graphql_utils import CamelCase' (note underscore).","cause":"Incorrect import path; using dot instead of underscore.","error":"ModuleNotFoundError: No module named 'graphql.utils'"},{"fix":"Run 'pip install graphql-utils'.","cause":"Library not installed or environment issue.","error":"ModuleNotFoundError: No module named 'graphql_utils'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}