Created
April 10, 2015 17:24
-
-
Save Averroes/7ef6350ee7f68404f172 to your computer and use it in GitHub Desktop.
simple remote procedure call with xmlrpc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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