[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#798351: ITP: aioxmlrpc -- XML-RPC for asyncio



Package: wnpp
Severity: wishlist
Owner: Piotr Ożarowski <piotr@debian.org>

* Package name    : aioxmlrpc
  Version         : 0.1
  Upstream Author : Guillaume Gauvrit <guillaume@gauvr.it>
* URL             : https://github.com/mardiros/aioxmlrpc
* License         : BSD-3-clause 
  Programming Lang: Python
  Description     : XML-RPC for asyncio

Binary package names: python3-aioxmlrpc

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


Reply to: