GraphQL for Python
This library is a port of graphql-js to Python.
We are currently targeting feature parity with v0.4.18
of the reference implementation, and are currently on v0.4.17
.
Please see issues for the progress.
An overview of the GraphQL language is available in the README for the Specification for GraphQL. The overview describes a simple set of GraphQL examples that exist as tests in this repository. A good way to get started is to walk through that README and the corresponding tests in parallel.
Install from pip:
pip install graphql-core
graphql-core
supports the following Python versions:
2.7.x
3.3.x
3.4.x
3.5.0
pypy-2.6.1
Support for 3.5.0
's asyncio
module for concurrent execution is available via an executor middleware at
graphql.core.execution.middlewares.asyncio.AsyncioExecutionMiddleware
.
Additionally, support for gevent
is available via
graphql.core.execution.middlewares.gevent.GeventExecutionMiddleware
.
Otherwise, by default, the executor will use execute with no concurrency.