Project

General

Custom queries

Watchers (1)

Profile

Actions

Bug #2800

closed

[Crunch] Remove global state in Python SDK

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

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Start date:
08/18/2014
Due date:
% Done:

100%

Estimated time:
(Total: 3.00 h)
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/2014

Actions
Task #3639: Review 2800-pysdk-no-global-keep-client-wipResolvedPeter Amstutz08/20/2014

Actions

Added by Tom Clegg over 10 years ago

Revision 8917fa82

Merge branch '2800-pgs' refs #2800

Added by Brett Smith over 10 years ago

Revision 05bea2c5

Merge branch '2800-pysdk-no-global-keep-client-wip'

Closes #2800, #3639.

Added by Brett Smith over 10 years ago

Revision 8598092d (diff)

2800: Delay API client creation in Python CollectionReader.

This more closely matches prior behavior, and is necessary to make the
Keep tests pass. See included comments for detailed rationale.
Refs #2800.

Actions

Also available in: Atom PDF