dpm is a library and command line manager for Data Packages.
Note: dpm
is provided by a node package named datapackage
(not dpm
)
dpm
is implemented in node, so to install dpm
just do:
npm install datapackage -g
To get an overview and list of commands check out the command line help:
dpm --help
You can also use dpm
programatically.
var Dpm = require('datapackage);
var dpm = new Dpm(conf);
dpm.install(['[email protected]', '[email protected]'], {cache: true}, function(err, dpkgs){
//done!
});
dpm.on('log', console.log); //if you like stuff on stdout
- v0.7.0: new ckan command
- v0.6.0: much better validation via v0.2 of datapackage-validate
Previous dpm
(python-based) can still be found at
http://github.com/okfn/dpm-old.