pythonistas的graphql客户端
gql-p的Python项目详细描述
_gql py
----
*pythonistas的graphql客户端*
对于我们这些热爱http标准的人来说,graphql对http的使用充其量是有问题的。这个库的目标是消除http的混乱,以便您可以直接处理graphql。GraphQL的开发人员的意图。
…图片::https://img.shields.io/pypi/v/gql_py.svg
:目标:https://pypi.org/project/gql py/
…图片::https://img.shields.io/pypi/pyversions/gql_py.svg
:目标:https://pypi.org/project/gql py/
…图片::https://img.shields.io/pypi/l/gql_py.svg
:目标:https://pypi.org/project/gql py/
…图片::https://img.shields.io/pypi/status/gql_py.svg
:目标:https://pypi.org/project/gql py/
…图片::https://circleci.com/gh/phalt/gql_py/tree/master.svg?style=svg
:目标:https://circleci.com/gh/phalt/gql-py/tree/master
代码块::bash
完整的示例:
…代码块::python
{
书本(id:$bookid){
id
标题
作者
}
}
'
变量={
'书本id':'654'
}
response=qgl.send(query=query,variables=variables)
response.ok
>;true
response.errors
>;无
响应。数据
>;{'book':{'id':'654','title':'ursula k.le guin','title':'a wizard of earthsea'}
代码块::python
gpl.send(query=query,validate=true)
>;>;回溯(最近一次调用的最后一次):
>;>;graphql.error.syntax\u error.graphqlsyntaxerror:syntax error:expected name,found}
(不过,您仍然可以设置http头!)
-响应返回为命名元组-甚至是错误!
-轻松验证查询字符串。
-python 3.6+
Cookiecutter廑。
…_ Cookiecutter:https://github.com/audreyr/Cookiecutter
。_` python请求`:https://github.com/audreyr/cookiecutter pypackage
----
*pythonistas的graphql客户端*
对于我们这些热爱http标准的人来说,graphql对http的使用充其量是有问题的。这个库的目标是消除http的混乱,以便您可以直接处理graphql。GraphQL的开发人员的意图。
…图片::https://img.shields.io/pypi/v/gql_py.svg
:目标:https://pypi.org/project/gql py/
…图片::https://img.shields.io/pypi/pyversions/gql_py.svg
:目标:https://pypi.org/project/gql py/
…图片::https://img.shields.io/pypi/l/gql_py.svg
:目标:https://pypi.org/project/gql py/
…图片::https://img.shields.io/pypi/status/gql_py.svg
:目标:https://pypi.org/project/gql py/
…图片::https://circleci.com/gh/phalt/gql_py/tree/master.svg?style=svg
:目标:https://circleci.com/gh/phalt/gql-py/tree/master
代码块::bash
完整的示例:
…代码块::python
{
书本(id:$bookid){
id
标题
作者
}
}
'
变量={
'书本id':'654'
}
response=qgl.send(query=query,variables=variables)
response.ok
>;true
response.errors
>;无
响应。数据
>;{'book':{'id':'654','title':'ursula k.le guin','title':'a wizard of earthsea'}
代码块::python
gpl.send(query=query,validate=true)
>;>;回溯(最近一次调用的最后一次):
>;>;graphql.error.syntax\u error.graphqlsyntaxerror:syntax error:expected name,found}
(不过,您仍然可以设置http头!)
-响应返回为命名元组-甚至是错误!
-轻松验证查询字符串。
-python 3.6+
Cookiecutter廑。
…_ Cookiecutter:https://github.com/audreyr/Cookiecutter
。_` python请求`:https://github.com/audreyr/cookiecutter pypackage