dpm[py] is a command-line data package manager written in Python. You can use it to publish and install data packages from a data package registry server. For more about data packages see http://frictionlessdata.io/data-packages
Until the new code available on pypi, you can install it from this repo:
[sudo] pip install git+https://github.com/frictionlessdata/dpm-py.git
Dpmpy can be configured using dpmpy configure
command. It will ask you
to provide username, access_token and server address of datapackage registry.
The config is stored in ~/.dpm/config, you can edit it with text editor. Simple example config file can look like this:
username = myname
access_token = mypass
server = https://example.com
To publish datapackage, go to the datapackage directory (with datapackage.json) and
launch dpmpy publish
. If your configured username and access_token are correct, dpmpy will
upload datapackage.json and all relevant resources to the registry server.
-
Clone the repo
-
Run
python setup.py test