Extension Dataset Replication


Extension Basics

Title
Dataset Replication
Name
ckanext-datasetreplication
Type
Public extension
Description
CKAN extension for replicating and exporting datasets and resources with configurable field exclusions.
CKAN versions
Download-Url (zip)
Last commit
4 years ago (2021-04-06 12:17:58)
Url to repo
Category
Data Management & Quality


Background Infos

Description (long)
Show details

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:

  1. Activate your CKAN virtual environment:
. /usr/lib/ckan/default/bin/activate
  1. Install the ckanext-datasetreplication Python package into your virtual environment:
pip install ckanext-datasetreplication
  1. 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).

  2. 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.

Version
Version release date
(not set)
Contact name
Keitaro Inc
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints

Available on PyPI. Supports Danish localization (da_DK).

Plugins to configure (ckan.ini)
datasetreplication
CKAN Settings (ckan.ini)
# ckanext.datasetreplication.excluded_package_attributes =
# ckanext.datasetreplication.excluded_resource_attributes =
DB migration to be executed
(not set)
<< back to Extensions