Project

General

Profile

Bug #2800

Updated by Tom Clegg over 9 years ago

It should be easy for a Python program to communicate with API and Keep storage servers at multiple sites in one process. For example: 

 <pre><code class="python"> 
 a = arvados.api('v1', host='localhost', token='12345', insecure=True) 
 b = arvados.api('v1', host='qr1hi.arvadosapi.com', token='xyzzy') 

 x = a.collections().list().execute() 

 w1 = CollectionWriter(client=a) 
 w2 = CollectionWriter(client=b) 
 w1.write('foo') 
 w2.write('bar') 
 </code></pre> 

Back