comparison README.txt @ 20:4b62687da58a

Added batch requests Refactored code Added some extra tests
author Ben Croston <ben@croston.org>
date Sun, 11 Sep 2011 22:27:42 +0100
parents 0dacc8e37fd9
children 9459d63c1558
comparison
equal deleted inserted replaced
19:636405ae3a66 20:4b62687da58a
27 27
28 Example Usage (Client): 28 Example Usage (Client):
29 29
30 :: 30 ::
31 31
32 from AuthRPC.client import ServerProxy 32 from AuthRPC.client import ServerProxy, BatchCall
33 client = ServerProxy('http://localhost:1234/', 33 client = ServerProxy('http://localhost:1234/',
34 username='myuser', 34 username='myuser',
35 password='secret', 35 password='secret',
36 user_agent='myprogram') 36 user_agent='myprogram')
37 retval = client.do_something('test') 37 retval = client.do_something('test')
38 batch = BatchCall(client)
39 batch.do_something('call 1')
40 batch.do_something('call 2')
41 batch()
38 42