Skip to content

Instantly share code, notes, and snippets.

@Averroes
Created April 10, 2015 17:24
Show Gist options
  • Select an option

  • Save Averroes/7ef6350ee7f68404f172 to your computer and use it in GitHub Desktop.

Select an option

Save Averroes/7ef6350ee7f68404f172 to your computer and use it in GitHub Desktop.
simple remote procedure call with xmlrpc
from xmlrpc.client import ServerProxy
s = ServerProxy('http://localhost:15000', allow_none=True)
s.set('foo', 'bar')
s.set('spam', [1, 2, 3])
print(s.keys())
print(s.get('foo'))
print(s.get('spam'))
s.delete('spam')
print(s.exists('spam'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment