首页 > 解决方案 > 用于 Google Compute API 的 Twisted 库

问题描述

google 为各种 API 提供了一个非常好的 python 库。

看来它是用阻塞调用编写的。
https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/compute

有没有人遇到过/写了一个 Twisted 异步适配器到这个 API,你可以分享?

非常感谢您提前。

标签: twisted

解决方案


还没有使用 Twisted。只需查看一些来源,就有使用 Futures 的实例。所以很有可能会制作一个 asyncio 变体,此时您应该能够与 Twisted 集成。


推荐阅读