| 1 | == Use cases for datapkg == |
| 2 | |
| 3 | 1. Install datapkg |
| 4 | |
| 5 | 2. Search remote registry/repo for a package |
| 6 | |
| 7 | 3. Download package on to local disk and unpack |
| 8 | {{{ |
| 9 | $ datapkg get [url|name] [path] |
| 10 | }}} |
| 11 | If specifying name (using a Registry) then: |
| 12 | * get metadata from registry |
| 13 | * locate the distribution URL |
| 14 | * Discover at URL: targz/zip file, version controlled repo, URL page with links (ask user which one) |
| 15 | * download the compressed distribution to temp dir (progress bar) |
| 16 | * unpack it to destination path |
| 17 | Future: maybe need to build/compile data |
| 18 | |
| 19 | 4. Explore package |
| 20 | |
| 21 | ---- |
| 22 | |
| 23 | 1. Package a csv file |
| 24 | |
| 25 | 2. Register the package to the remote repo. |
| 26 | |
| 27 | 3. Upload the package distribution to the remote repo. |
| 28 | |