twisted - 用于 Google Compute API 的 Twisted 库
问题描述
google 为各种 API 提供了一个非常好的 python 库。
看来它是用阻塞调用编写的。
https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/compute
有没有人遇到过/写了一个 Twisted 异步适配器到这个 API,你可以分享?
非常感谢您提前。
解决方案
还没有使用 Twisted。只需查看一些来源,就有使用 Futures 的实例。所以很有可能会制作一个 asyncio 变体,此时您应该能够与 Twisted 集成。
推荐阅读
- r - r中的文本挖掘-从r中的数据框中的字符串列中查找最常出现的单词
- c++ - bool 类模板通用复制和移动构造函数
- r - 如何在 R 中用用户定义的颜色填充箱形图?
- c# - 给定一个满足 T.isArray 的类型 T,是否可以初始化一个 typeof(T).getElementType 类型的变量?
- css - 为什么 BODY 上的背景颜色会“冒泡”到 HTML
- raster - 在 R 中读取 .nc 文件
- java - 使用 Java 注解注入变量
- java - 为在 2D 中表示 1D 网格的游戏创建 toString 方法
- arrays - 这里的“2d_array”是指向另一个具有“width”元素数量的整数数组的指针吗?
- python - 如何在python中将数据附加到h5文件?