okfn/dpm — Issue #20: [super] Functionality for working with data in "source" form
Author: rgrp
Created: 2011-11-04 21:00:29+00:00
State: open

In terms of analogies: currently dpm was more like pip / npm / gem / apit-get. This functionality is more like git / hg / svn but for data.

* init (already existed) - #10
* clone / checkout
* add (remove) and push
* pull

Walkthrough of a session

$ cd {mydir}
$ dpm clone http://thedatahub.org/dataset/mydataset
# mydir/mydataset now exists
$ cd mydataset
$ ls
.datapackage.json
.dpm/...
data/{files}
...
# added a new csv in data then ...
...
$ dpm add data/mydata.csv
# it's staged for pushing ...
$ dpm push
... pushing data/mydata.csv to ...

Or from scratch:

$ dpm init {mypath}
$ cd {mypath}
$ ls
datapackage.json
.dpm/config
README.txt
# edit datapackage.json
$ dpm config add-remote ...
$ dpm push