A lightweight GraphQL client for Python 2.7+ with simple token injection support.
python-graphql-client is a lightweight GraphQL client library for Python that enables developers to easily execute GraphQL queries against APIs. It solves the problem of interacting with GraphQL endpoints without requiring complex setup or heavy dependencies, providing a straightforward way to make authenticated requests.
Python developers working with GraphQL APIs who need a simple, dependency-light client without the overhead of larger GraphQL frameworks.
Developers choose python-graphql-client for its simplicity, Python 2.7+ compatibility, and minimal setup requirements compared to more complex GraphQL clients that introduce unnecessary abstractions.
Simple GraphQL client for Python 2.7+
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Has minimal dependencies and a straightforward API, allowing quick integration with just a few lines of code, as shown in the README examples for basic query execution.
Supports both Python 2.7 and 3.x, making it suitable for legacy applications where modern GraphQL clients often drop Python 2 support.
Provides a simple inject_token method to add authorization tokens with customizable header names, facilitating basic authentication without extra setup, as demonstrated in the usage.
Can be installed via pip and used immediately with minimal configuration, ideal for rapid prototyping or scripting tasks that need basic GraphQL communication.
Only supports basic query execution; lacks built-in support for GraphQL mutations, subscriptions, or advanced error handling, which are common in full-featured clients like gql.
Does not offer tools for schema introspection or type checking, requiring manual handling of GraphQL schemas and response validation, which can increase development overhead.
The library provides basic execution but leaves error management, retries, and connection issues to the user, making it less robust for production use compared to more comprehensive clients.