异步的XML-RPC客户端

aioxmlrpc的Python项目详细描述


https://travis-ci.org/mardiros/aioxmlrpc.png?branch=master

开始

异步版本的标准库xmlrpc

目前只有aioxmlrpc.client,其工作方式类似于xmlrpc.client,但是 与协程一起实现。

如果您想实现服务器部分,请随意使用fork。

aioxmlrpc基于用于传输的aiohttp,只需修补 从python标准库中获取使其正常工作所必需的。

安装

pip install aioxmlrpc

用法示例

这个例子展示了如何打印gandi xml-rpc api的当前版本。

import asyncio
from aioxmlrpc.client import ServerProxy


@asyncio.coroutine
def print_gandi_api_version():
    api = ServerProxy('https://rpc.gandi.net/xmlrpc/')
    result = yield from api.version.info()
    print(result)

if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(print_gandi_api_version())
    loop.stop()

更改日志

0.5发布于2017年9月10日

  • Remove compatibility with aiohttp < 1.0 (Ovv)

0.4于2017年3月30日发布

  • Fix NXDOMAIN Exception handling (Vladimir Rutsky)
  • Fix cancel of futures handling (Gustavo Tavares Cabral)

2016-06-16发布0.3

  • Fix socket closing issue

2016-05-26发布0.2

  • Update compatibility for aiohttp >= 0.20

Important

This break the compatibility of python 3.3

0.1于2014-05-17发布

  • Initial version implementing ^{tt2}$

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何使用字符串将字符串居中。总体安排   java获取错误:可能存在从double到int的有损转换。。。。但我没有用替身?   java简单嵌套for循环示例   java有命令在我的Android上运行JavaScript项目吗?   java如何向图像中添加文本并让用户在安卓中定位文本?   java无法在listview中显示项目   java Spring接口转换器   java我可以在Dart中使用GWT库吗?   java使用选择器和SelectionKeys委托给线程池   安全Java从SSL HTTP url下载zip(带密钥库/信任库)   java Android查看旋转动画并设置旋转未按预期工作   java在使用参数时无法检索文件   java多文本选择句柄Android Studio