Skip to main content

XML-RPC for asyncio

Project description

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

Getting Started

Asyncio version of the standard lib xmlrpc

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

Fill free to fork me if you want to implement the server part.

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

Installation

pip install aioxmlrpc

Example of usage

This example show how to print the current version of the 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()

Changelist

0.1 released on 2014-05-17

  • Initial version implementing aioxmlrpc.client

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aioxmlrpc-0.1.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file aioxmlrpc-0.1.tar.gz.

File metadata

  • Download URL: aioxmlrpc-0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aioxmlrpc-0.1.tar.gz
Algorithm Hash digest
SHA256 72b94737d6e7dfa2876384e2037e2ad0257688c9f0672dbc7b986120ef41d13a
MD5 04e4eeda892ee3f962f271e6fda10aa7
BLAKE2b-256 48d13243379500c89a5b5f47cb20d3c8d3f71da7e9e3cd2132ec6596e6c35d51

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page