ckanext-datasetreplication
A CKAN extension for replicating and exporting datasets and resources with configurable field exclusions.
Requirements
This extension is designed to work with CKAN.
Installation
To install ckanext-datasetreplication:
- Activate your CKAN virtual environment:
. /usr/lib/ckan/default/bin/activate
- Install the ckanext-datasetreplication Python package into your virtual environment:
pip install ckanext-datasetreplication
Add datasetreplication to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini).
Restart CKAN:
sudo service apache2 reload
Config Settings
List of fields to exclude when exporting datasets and resources:
# Fields should be separated with space
# default: id license_title num_tags metadata_created metadata_modified num_resources creator_user_id organization isopen revision_id url
ckanext.datasetreplication.excluded_package_attributes =
# Fields should be separated with space
# default: id package_id cache_last_updated mimetype mimetype_inner created last_modified position url_type resource_type size revision_id cache_url hash url
ckanext.datasetreplication.excluded_resource_attributes =
Development Installation
To install ckanext-datasetreplication for development, activate your CKAN virtualenv and do:
git clone https://github.com/keitaroinc/ckanext-datasetreplication.git
cd ckanext-datasetreplication
python setup.py develop
pip install -r dev-requirements.txt
Running the Tests
To run the tests:
nosetests --nologcapture --with-pylons=test.ini
License
This extension is licensed under the AGPL-3.0 license.