Harvester for term_translations | Read-only mirror of https://github.com/ogdch/ckanext-transharvest — Bundesamt für Statistik. Issues & pull requests at the source.
  • Python 62.9%
  • Shell 37.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2014-02-20 17:50:27 +01:00
ckanext adding log message to know when the import is done 2014-02-20 17:50:27 +01:00
scripts OGDCH-75: Add daemon scripts for ckanext-transharvest 2013-09-06 19:04:51 +02:00
.gitignore initial commit 2013-08-27 13:56:32 +02:00
.travis.yml Added travis build. 2014-02-17 14:37:44 +01:00
build.sh Added travis build. 2014-02-17 14:37:44 +01:00
LICENSE Add LICENSE and README 2013-09-13 20:01:14 +02:00
pip-requirements.txt Added travis build. 2014-02-17 14:37:44 +01:00
pre-commit.sh Added travis build. 2014-02-17 14:37:44 +01:00
README.md Fix PEP-8 code style 2014-02-20 17:07:23 +01:00
setup.cfg Added travis build. 2014-02-17 14:37:44 +01:00
setup.py basic implementation of term translation harvester 2013-08-27 19:47:26 +02:00

ckanext-transharvest

This harvester has the purpose to transfer term translations from one CKAN instante to another.

Installation

Use pip to install this plugin. This example installs it in /home/www-data

source /home/www-data/pyenv/bin/activate
pip install -e git+https://github.com/ogdch/ckanext-transharvest.git#egg=ckanext-transharvest --src /home/www-data
cd /home/www-data/ckanext-transharvest
python setup.py develop

Make sure to add transharvest to ckan.plugins in your config file.

For development

  • install the pre-commit.sh script as a pre-commit hook in your local repositories: ** ln -s ../../pre-commit.sh .git/hooks/pre-commit

Configuration

This harvester requires ckan_term_url in the configuration JSON. This is the base URL of a CKAN instance, that should be harvested for term translations. Please make sure, that this remote CKAN instance needs the ckanext-ogdch_actions, as this extensions provides the requires API for this harvester.

{
    "ckan_term_url": "http://datahub.io"
}

Run harvester

source /home/www-data/pyenv/bin/activate
paster --plugin=ckanext-transharvest transharvest gather_consumer -c development.ini &
paster --plugin=ckanext-transharvest transharvest fetch_consumer -c development.ini &
paster --plugin=ckanext-transharvest transharvest run -c development.ini