异步GraphQL客户端
async-graphql的Python项目详细描述
使graphql请求异步化,需要python 2.7及更高版本。 很快就会有graphql订阅。
库很小,加载模块的内存使用也很好:
Line # Mem usage Increment Line Contents
================================================
12 10.9 MiB 10.9 MiB @profile
13 def profiled():
14 13.0 MiB 2.1 MiB import asyncio
15 13.0 MiB 0.0 MiB async def main(loop):
16 13.5 MiB 0.5 MiB from async_graphql import Client, errors
当在许多复制的微服务中使用graphql以避免内存不足时,这是很好的。