$npx skillfedfor your agent

python-graphql-client

Python GraphQL Client

With conditionsPyPI LibrariesReleased Mar 2021654.0K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — python_graphql_client-0.4.3-py3-none-any.whl
v0.4.3 · released 2021-03-04 · 3 runtime deps: aiohttp, requests, websockets

Yes, if you need a simple synchronous or asynchronous GraphQL client and don't require advanced features like caching or introspection. The aging maintenance (last release 2021) is a minor concern—the core HTTP and WebSocket request patterns are stable—but be aware that newer GraphQL server features or spec changes may not be supported. No known vulnerabilities. Low install friction and permissive license make it a low-risk choice for straightforward GraphQL consumption.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with a pure Python wheel.
  • Maintenance is aging—last release was 2021-03-04, over four years old, though the repository remains active with recent commits as of 2025-07-21.
  • Depends on aiohttp, requests, and websockets, all mature and widely used.

License · maintenance · safety

MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

last release 2021-03-04 (1989 days) · last repo commit 2025-07-21 · 81 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 654,036 downloads/mo, #5,530 on PyPI

Verify before relying

pip install python-graphql-client

from python_graphql_client import GraphqlClient

client = GraphqlClient(endpoint="https://countries.trevorblades.com")
query = "query countryQuery($countryCode: String) { country(code:$countryCode) { code name } }"
data = client.execute(query=query, variables={"countryCode": "CA"})
  • Whether the package works reliably with modern Python versions beyond 3.8, given classifiers list only up to 3.8
  • Current test coverage and whether breaking changes exist between 0.4.3 and the latest GraphQL server implementations
Same gist for agents: .md · .json

What it is and what it does

python-graphql-client is a lightweight wrapper around aiohttp, requests, and websockets that simplifies making GraphQL requests to a remote server. It handles query and mutation execution in both synchronous and asynchronous modes, and supports real-time subscriptions over WebSocket. You instantiate a client with a GraphQL endpoint URL, then call execute() or execute_async() to send queries with variables, or subscribe() to listen for subscription events. The package abstracts away HTTP headers, request formatting, and WebSocket connection management, letting you focus on writing GraphQL operations.

The library is straightforward and minimal—it does not include schema introspection, caching, or request batching. It's designed for developers who want a simple way to call a GraphQL API from Python without pulling in a large framework. The aging maintenance status (last release in 2021) means it may not track the latest GraphQL spec changes or server features, though the core request/response pattern remains stable.

Use it for

  • Query a public GraphQL API (e.g., GitHub, Shopify) to fetch data in a Python script or application
  • Execute mutations asynchronously to update remote data without blocking the main thread
  • Subscribe to real-time GraphQL events over WebSocket and handle streaming updates
  • Build a Python backend that proxies or aggregates calls to one or more GraphQL services
  • Test a GraphQL server during development by sending queries and assertions from Python

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need a simple synchronous or asynchronous GraphQL client and don't require advanced features like caching or introspection.

The aging maintenance (last release 2021) is a minor concern—the core HTTP and WebSocket request patterns are stable—but be aware that newer GraphQL server features or spec changes may not be supported. No known vulnerabilities. Low install friction and permissive license make it a low-risk choice for straightforward GraphQL consumption.

Install

python-graphql-client on PyPI

Before you install

Low install friction with a pure Python wheel. Maintenance is aging—last release was 2021-03-04, over four years old, though the repository remains active with recent commits as of 2025-07-21. Depends on aiohttp, requests, and websockets, all mature and widely used.

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install python-graphql-client

from python_graphql_client import GraphqlClient

client = GraphqlClient(endpoint="https://countries.trevorblades.com")
query = "query countryQuery($countryCode: String) { country(code:$countryCode) { code name } }"
data = client.execute(query=query, variables={"countryCode": "CA"})

Verify before relying

  • Whether the package works reliably with modern Python versions beyond 3.8, given classifiers list only up to 3.8
  • Current test coverage and whether breaking changes exist between 0.4.3 and the latest GraphQL server implementations

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
aiohttprequestswebsockets
MaintenanceAging 1,989 days since the last release
Last repo commit
First released
Downloads654,036 / month, #5,530 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Topic :: Software Development :: Libraries

Evidence: python_graphql_client-0.4.3-py3-none-any.whl

Tags

Capabilities
graphql client pythongraphql query requestsgraphql mutations asyncgraphql subscriptions websocketgraphql api clientsend graphql queries python
Topics
graphqlapi-clientasync-support
PyPI keywords
apigraphqlclient

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 › “graphql api client”

  • python-graphql-clientSends GraphQL queries, mutations, and subscriptions to a GraphQL…
  • graphqlclientA lightweight GraphQL client that sends queries to GraphQL endpoints…
  • gqlA GraphQL client for Python that executes queries, mutations, and…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

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.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

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.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also devo-sdk · django-graphql-jwt · gql · graphqlclient · pydgraph · sgqlc · ariadne-codegen · Flask-GraphQL · graphql-server · python-gitlab