Project

General

Profile

Actions

Bug #2800

closed

[Crunch] Remove global state in Python SDK

Added by Tom Clegg almost 10 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
1.0

Description

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

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')

Subtasks 2 (0 open2 closed)

Task #3621: Review 2800-pgs branchResolvedTom Clegg08/18/2014Actions
Task #3639: Review 2800-pysdk-no-global-keep-client-wipResolvedPeter Amstutz08/20/2014Actions
Actions

Also available in: Atom PDF