Registry / http-networking / graphql-utils

graphql-utils

JSON →
library0.4pypypiunverified

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.

pip install graphql-utils
INSTALL
IMPORT
SIG · GRAPHQL-UTILS
G
graphql-utils
http-networkingpythonv0.4
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CamelCase
from graphql_utils import CamelCase
from graphql_utils import CamelCase

Create a CamelCase converter and transform dict keys.

from graphql_utils import CamelCase # Convert GraphQL response fields from camelCase to snake_case data = {"userName": "John", "lastName": "Doe"} converter = CamelCase() snake_data = converter.snake_case_to_camel(data) print(snake_data) # Output: {"user_name": "John", "last_name": "Doe"}
Debug
Known issues
gotchaThe correct import is from graphql_utils (with underscore), not graphql.utils. Many users mistakenly import from the wrong module.
fix
Use 'from graphql_utils import CamelCase' instead of 'from graphql.utils import CamelCase'.
affects: all
gotchaThe method names are confusing: CamelCase class has snake_case_to_camel method, not camel_to_snake_case. Check the class's method names carefully.
fix
Use CamelCase().snake_case_to_camel() to convert snake_case to camelCase; for reverse, use CamelCase().camel_to_snake_case().
affects: all
deprecatedVersion 0.4 is likely stable but there are no recent releases. The library may be in maintenance mode.
fix
Check the GitHub repo for updates or consider alternatives if you need active maintenance.
affects: 0.4
Upgrade
Version history
0.4latest on PyPI · released Dec 6, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
graphql-utils — pip install graphql-utils · libregistry