ckanext-datapackager
CKAN Data Packager — This extension adds importing and exporting of Data Packages (https://frictionlessdata.io/data-packages/) to CKAN datasets.
Requirements
Installation
- If you’re using a virtual environment for CKAN, activate it:
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
- Click on
Import Data Package button
- Upload or link to a Data Package JSON or ZIP file
- Review the created dataset
Exporting
- Go to the dataset’s page
- Click on
Download Data Package button
API
The extension provides two API actions:
package_create_from_datapackage — Import a Data Package from URL or file upload
package_show_as_datapackage — Export a dataset as datapackage.json
Direct endpoint for datapackage.json:
http://CKAN_HOST/dataset/DATASET_NAME_OR_ID/datapackage.json
Where is the old Open Knowledge’s Data Packager?
The Open Knowledge Data Packager (http://datapackager.okfn.org/) was written for an old CKAN version (2.2), and is now deprecated. This extension implements parts of its functionality and improves them, supporting the current CKAN version.
Contributors
9 contributors including Vitor Baptista, Joe Tsoi, André Avelino, Adrià Mercader, Alex Kreidler.
License
Code of Conduct provided. 36 stars, 15 forks.