diff 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
line wrap: on
line diff
--- a/README.txt	Sun Sep 11 12:17:44 2011 +0100
+++ b/README.txt	Sun Sep 11 22:27:42 2011 +0100
@@ -29,10 +29,14 @@
 
 ::
 
-    from AuthRPC.client import ServerProxy
+    from AuthRPC.client import ServerProxy, BatchCall
     client = ServerProxy('http://localhost:1234/',
                          username='myuser',
                          password='secret',
                          user_agent='myprogram')
     retval = client.do_something('test')
+    batch = BatchCall(client)
+    batch.do_something('call 1')
+    batch.do_something('call 2')
+    batch()