sgqlc
Simple GraphQL Client
Decision gist · record as of 2026-08-14
Yes. sgqlc is actively maintained, has no known vulnerabilities, low install friction, and solves a real problem for developers working with GraphQL APIs. The permissive ISC license poses no restrictions. Install it if you regularly query GraphQL endpoints and prefer writing Python over embedding GraphQL strings.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later (supports current Python versions, up to but not including 4.x).
- Low install friction with a single runtime dependency (graphql-core).
- The package is actively maintained with a recent release on 2026-02-06 and an active repository showing ongoing development.
License · maintenance · safety
ISCL (permissive) — Licensed under ISC (ISCL), a permissive open-source license that allows commercial and private use with minimal restrictions.
last release 2026-02-06 (189 days) · last repo commit 2026-03-27 · 553 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,161,084 downloads/mo, #2,720 on PyPI
Alternatives
Verify before relying
pip install sgqlc
from sgqlc.types import Type, Field, String
from sgqlc.endpoint import http
endpoint = http.HTTPEndpoint('https://api.example.com/graphql')
query = endpoint(query_object)- Whether sgqlc supports authentication schemes (API keys, OAuth, bearer tokens) for protected GraphQL endpoints.
- Performance characteristics when handling large nested queries or high-volume API calls.
- Whether the package provides built-in caching or request batching capabilities.
What it is and what it does
sgqlc lets you write GraphQL queries as Python code instead of mixing GraphQL strings into your application. It provides modules to declare GraphQL types in Python, generate and interpret queries programmatically, and access GraphQL endpoints over HTTP. The core motivation is to avoid the friction of embedding a domain-specific language in Python code, to use Python's naming conventions (snake_case instead of camelCase), and to enable dynamic query construction that always produces valid GraphQL.
The package includes built-in support for datetime types with ISO 8601 bindings, Relay cursor connection patterns, and introspection-based schema handling. It depends only on graphql-core, making it lightweight. The library is designed for developers building applications that consume GraphQL APIs from services like GitHub, Shopify, or Yelp, where you want to fetch only the fields you need in a single request rather than making multiple REST calls or parsing deeply nested JSON dictionaries.
Use it for
- Query GitHub's GraphQL API to fetch pull request details, commits, comments, and reviews in a single request using Python objects.
- Build dynamic GraphQL queries based on user input or runtime conditions without string concatenation or manual query validation.
- Consume Shopify or Yelp GraphQL endpoints while automatically parsing custom scalar types like dates into native Python datetime objects.
- Reduce API latency by combining multiple related data fetches into one nested GraphQL query instead of sequential HTTP requests.
- Explore and introspect GraphQL schemas programmatically to generate type-safe query builders for your application.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
sgqlc is actively maintained, has no known vulnerabilities, low install friction, and solves a real problem for developers working with GraphQL APIs. The permissive ISC license poses no restrictions. Install it if you regularly query GraphQL endpoints and prefer writing Python over embedding GraphQL strings.
Install
sgqlc on PyPI
Before you install
Low install friction with a single runtime dependency (graphql-core). The package is actively maintained with a recent release on 2026-02-06 and an active repository showing ongoing development.
Requires Python 3.8 or later (supports current Python versions, up to but not including 4.x).
License in practice
Licensed under ISC (ISCL), a permissive open-source license that allows commercial and private use with minimal restrictions.
Quickstart
pip install sgqlc
from sgqlc.types import Type, Field, String
from sgqlc.endpoint import http
endpoint = http.HTTPEndpoint('https://api.example.com/graphql')
query = endpoint(query_object)
Verify before relying
- Whether sgqlc supports authentication schemes (API keys, OAuth, bearer tokens) for protected GraphQL endpoints.
- Performance characteristics when handling large nested queries or high-volume API calls.
- Whether the package provides built-in caching or request batching capabilities.
Package facts
| License | ISCL permissive |
| Python support | Supports the current Python release <4,>=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagegraphql-core |
| Maintenance | Actively maintained 189 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,161,084 / month, #2,720 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: ConsoleEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: ISC License (ISCL)Operating System :: OS IndependentProgramming Language :: PythonTopic :: Utilities |
Evidence: sgqlc-18-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “query graphql apis”
- sgqlcsgqlc is a Python client library for querying GraphQL APIs using…
- graphql-queryBuilds GraphQL query strings programmatically in Python using a…
- graphene-django-optimizerAutomatically optimizes GraphQL queries executed by graphene-django…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also enigma-api-client · graphqlclient · gql · graphql-query · python-graphql-client · pycarlo · ariadne-codegen · Flask-GraphQL · graphene · crowdin-api-client