Skip to content
Sections
>> Trisquel >> 套件 >> etiona >> python >> python3-aioxmlrpc
etiona  ] [  nabia  ] [  aramo  ]
[ 原始碼: aioxmlrpc  ]

套件: python3-aioxmlrpc (0.5-1)

XML-RPC for asyncio

Asyncio version of the standard lib xmlrpc.

Currently only aioxmlrpc.client, which works like xmlrpc.client but with coroutine is implemented.

aioxmlrpc is based on aiohttp for the transport, and just patch the necessary from the Python standard library to get it working.

Example of usage:

 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()

其他與 python3-aioxmlrpc 有關的套件

  • 依賴
  • 推薦
  • 建議
  • dep: python3
    interactive high-level object-oriented language (default python3 version)
  • dep: python3-aiohttp
    http client/server for asyncio

下載 python3-aioxmlrpc

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 6.8 kB39 kB [文件列表]