{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/7"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/14"}],"enrichment":{"capability":"Builds GraphQL query strings programmatically in Python using a domain-specific language, letting you construct queries from Python classes instead of writing raw GraphQL strings.","skillfed_tags":["graphql","code-generation","query-builder"],"use_cases":["Build GraphQL queries dynamically in client applications without concatenating strings or managing raw query text.","Share and reuse common Arguments, Variables, and Fragments across multiple queries in a codebase.","Generate GraphQL query classes from existing pydantic data models to keep query structure in sync with your Python types.","Construct queries with conditional fields and directives (e.g., @include, @skip) based on runtime logic.","Test GraphQL APIs by programmatically generating test queries with varying arguments and field selections."],"what_it_does":"graphql-query is a Python DSL for constructing GraphQL query strings from Python code. Instead of writing raw GraphQL strings, you build queries using Python classes like Query, Field, Argument, Variable, Fragment, and Directive, then call render() to produce the final GraphQL string. It depends on jinja2 for templating and pydantic for data validation, and supports modern Python versions from 3.8 onward.\n\nThe package is designed for scenarios where you want to programmatically assemble queries, reuse common arguments and variables across multiple queries, or generate query classes from pydantic models. It handles simple field selection, complex arguments with variables, inline fragments, and directives like @include and @skip.","worth_installing":"Yes, if you need to generate GraphQL queries programmatically and want type-safe, reusable query construction. The low install friction, permissive MIT license, and support for modern Python versions make it straightforward to adopt. The dormant maintenance status is a minor concern\u2014no active vulnerabilities and the last commit is recent\u2014but verify compatibility with your pydantic and jinja2 versions before relying on it for production systems."},"id":"graphql-query","links":{"html":"https://skillfed.io/packages/graphql-query","md":"https://skillfed.io/packages/graphql-query.md","pypi":"https://pypi.org/project/graphql-query/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-07-31","license_spdx":null,"license_treatment":"permissive","name":"graphql-query","python_support":"supports_current","summary":"Complete Domain Specific Language (DSL) for GraphQL query in Python."},"popularity":{"monthly_downloads":277642,"position":8144,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.4.0"}
