Actions
Idea #2028
closed[SDKs] Python SDK supports Django model/manager style usage
Start date:
04/09/2014
Due date:
Story points:
2.0
Updated by Tom Clegg almost 11 years ago
- Target version set to 2014-05-07 Storing and Organizing Data
Updated by Tom Clegg over 10 years ago
- Target version changed from 2014-05-07 Storing and Organizing Data to 2014-03-26 Debt service and dev painkillers
Updated by Tom Clegg over 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
Updated by Tom Clegg over 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.
- Django docs → Managers (sorta like Active Relation in Rails)
- Django docs → Models (sorta like Active Record in Rails)
Updated by Tom Clegg over 10 years ago
- Target version changed from 2014-04-16 Dev tools and data/resource management to 2014-05-07 Storing and Organizing Data
Updated by Tom Clegg over 10 years ago
- Target version deleted (
2014-05-07 Storing and Organizing Data) - Release deleted (
4)
Updated by Radhika Chippada over 10 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
Updated by Tom Morris about 8 years ago
- Assigned To changed from Brett Smith to Tom Morris
Actions