Story #2028

[SDKs] Python SDK supports Django model/manager style usage

Added by Tom Clegg over 5 years ago. Updated almost 3 years ago.

Status:
Rejected
Priority:
Normal
Assigned To:
Category:
SDKs
Target version:
Start date:
04/09/2014
Due date:
% Done:

100%

Estimated time:
(Total: 2.00 h)
Story points:
2.0

Subtasks

Task #2565: Check out 2028 notes and sync up with TomClosedBrett Smith

Task #2455: Fill in missing story description - goals / examplesResolvedTom Clegg

History

#1 Updated by Tom Clegg over 5 years ago

  • Story points set to 3.0

#2 Updated by Tom Clegg over 5 years ago

  • Target version set to 2014-05-07 Storing and Organizing Data

#3 Updated by Tom Clegg over 5 years ago

  • Target version changed from 2014-05-07 Storing and Organizing Data to 2014-03-26 Debt service and dev painkillers

#4 Updated by Tom Clegg over 5 years ago

  • Target version changed from 2014-03-26 Debt service and dev painkillers to 2014-04-16 Dev tools and data/resource management

#5 Updated by Tom Clegg over 5 years ago

  • Story points changed from 3.0 to 2.0

#6 Updated by Brett Smith over 5 years ago

  • Assigned To set to Brett Smith

#7 Updated by Tom Clegg over 5 years ago

Using the Arvados API from Python should require much less boilerplate than it does now. We should offer an API that is more convenient and looks more familiar to bioinformaticians and other Python programmers.

For example, this

from arvados.models import Specimen
bar = Specimen.all()
foo = Specimen.find(want_uuid)
foo.properties['baz'] = 'baz'
foo.save()

is more friendly than this

import arvados
bar = arvados.api().specimens().list().execute()['items']
foo = arvados.api().specimens().get(uuid=want_uuid).execute()
foo['properties']['baz'] = 'baz'
arvados.api().specimens().update(uuid=foo['uuid'], body=foo).execute()

Django seems like an obvious interface to (loosely) mimic: it's likely to be familiar to Python developers.

#8 Updated by Tom Clegg over 5 years ago

  • Target version changed from 2014-04-16 Dev tools and data/resource management to 2014-05-07 Storing and Organizing Data

#9 Updated by Tom Clegg over 5 years ago

  • Target version deleted (2014-05-07 Storing and Organizing Data)
  • Release deleted (4)

#10 Updated by Radhika Chippada about 5 years ago

  • Subject changed from Python SDK supports Django model/manager style usage to [SDKs] Python SDK supports Django model/manager style usage
  • Category set to SDKs
  • Target version set to Deferred

#11 Updated by Tom Morris almost 3 years ago

  • Assigned To changed from Brett Smith to Tom Morris

#12 Updated by Tom Morris almost 3 years ago

  • Status changed from New to Rejected

Also available in: Atom PDF