Mercurial > hg > AuthRPC
comparison README.txt @ 28:bea0c77734ca 0.3.0a
Changed/renamed exceptions
author | Ben Croston <ben@croston.org> |
---|---|
date | Tue, 28 Feb 2012 13:49:17 +0000 |
parents | 346114023528 |
children | a99009a7013c |
comparison
equal
deleted
inserted
replaced
27:689d75bb60c2 | 28:bea0c77734ca |
---|---|
26 Example Usage (Client): | 26 Example Usage (Client): |
27 | 27 |
28 :: | 28 :: |
29 | 29 |
30 from AuthRPC.client import ServerProxy, BatchCall | 30 from AuthRPC.client import ServerProxy, BatchCall |
31 | |
31 client = ServerProxy('http://localhost:1234/', | 32 client = ServerProxy('http://localhost:1234/', |
32 username='myuser', | 33 username='myuser', |
33 password='secret', | 34 password='secret', |
34 user_agent='myprogram') | 35 user_agent='myprogram') |
35 retval = client.do_something('test') | 36 retval = client.do_something('test') |