
CKAN Data Packager
This extension adds importing and exporting of [Data Packages][data-packages] to [CKAN][ckan] datasets.
Requirements
Installing
To install ckanext-datapackager into a CKAN instance, do:
If you’re using a virtual environment for CKAN, activate it doing, for example:
source /usr/lib/ckan/default/bin/activate
Install the extension:
git clone https://github.com/frictionlessdata/ckanext-datapackager.git
cd ckanext-datapackager
python setup.py develop
pip install -r requirements.txt
Add datapackager to the ckan.plugins setting in your CKAN config file;
- Restart CKAN.
Using
Web Interface
Importing

- Visit the Dataset list page (e.g.
http://your-ckan-address.com/dataset)
- Click on
Import Data Package button;
- Upload or link to a Data Package JSON or ZIP file;
- Depending on your CKAN configuration, you might also need to define
the dataset’s organization and visibility here.
- Review the created dataset.
Exporting

- Go to the dataset’s page;
- Click on
Download Data Package button.
API
The extension provides two API actions for importing (package_create_from_datapackage) and exporting (package_show_as_datapackage) Data Packages on CKAN.
For more information on their parameters and return values, check the
docstrings inside the files at
[ckanext/datapackager/logic/a