xml-rpc Server with asyncio

426 views
Skip to first unread message

Joe VanAndel

unread,
Sep 26, 2014, 12:37:35 PM9/26/14
to python...@googlegroups.com
I'm writing a Python application that needs to 

1) send/receive messages over sockets to a legacy application
2) send xml-rpc requests to an existing server
3) accept xml-rpc requests from clients.

I have searched the asyncio documentation, searched Stack Overflow, and googled, and have NOT found an xml-rpc server library that uses asyncio.

I did find 
aioxmlrpc, 

and

aiohttp 


A few questions:
1) Does anyone have a xml-rpc <Server> library for asyncio?

2) If I need to build my own xml-rpc server  library for asyncio, what's the best starting point?

Guido van Rossum

unread,
Sep 26, 2014, 1:43:25 PM9/26/14
to Joe VanAndel, python-tulip
I don't have (1), but if you have to do (2), I would suggest starting with aiohttp and liberally copying from the Python 3 stdlib xmlrpc package. As long as you don't violate Python's pretty liberal open source license, you shouldn't have to worry about licensing.
--
--Guido van Rossum (python.org/~guido)

Skip Montanaro

unread,
Sep 26, 2014, 2:58:02 PM9/26/14
to Guido van Rossum, Joe VanAndel, python-tulip
> I don't have (1), but if you have to do (2), I would suggest starting with
> aiohttp and liberally copying from the Python 3 stdlib xmlrpc package. As
> long as you don't violate Python's pretty liberal open source license, you
> shouldn't have to worry about licensing.

And then when you're finished, toss aioxmlrpc up on PyPI. :-)

Skip

Ludovic Gasc

unread,
Sep 26, 2014, 5:06:12 PM9/26/14
to Joe VanAndel, python...@googlegroups.com

Hi,

Thank you a lot for this library, we had in our schedule to do the same thing, also based on aiohttp.

We will use your library for our next development.

BTW, not interested by the server part, now all of our clients asked for REST/JSON only, even Java developers.
For now, we're testing aiorest on two developments to validate if the right choice.

Regards.

Reply all
Reply to author
Forward
0 new messages