Project

General

Profile

Actions

Idea #2028

closed

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

Added by Tom Clegg about 10 years ago. Updated about 7 years ago.

Status:
Rejected
Priority:
Normal
Assigned To:
Tom Morris
Category:
SDKs
Target version:
Story points:
2.0

Subtasks 2 (0 open2 closed)

Task #2565: Check out 2028 notes and sync up with TomClosedBrett Smith04/09/2014Actions
Task #2455: Fill in missing story description - goals / examplesResolvedTom Clegg04/09/2014Actions
Actions #1

Updated by Tom Clegg about 10 years ago

  • Story points set to 3.0
Actions #2

Updated by Tom Clegg about 10 years ago

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

Updated by Tom Clegg almost 10 years ago

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

Updated by Tom Clegg almost 10 years ago

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

Updated by Tom Clegg almost 10 years ago

  • Story points changed from 3.0 to 2.0
Actions #6

Updated by Brett Smith almost 10 years ago

  • Assigned To set to Brett Smith
Actions #7

Updated by Tom Clegg almost 10 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.

Actions #8

Updated by Tom Clegg almost 10 years ago

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

Updated by Tom Clegg almost 10 years ago

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

Updated by Radhika Chippada over 9 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
Actions #11

Updated by Tom Morris over 7 years ago

  • Assigned To changed from Brett Smith to Tom Morris
Actions #12

Updated by Tom Morris about 7 years ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF