Harvester for the Federal Office of Public Health (FOPH) | Read-only mirror of https://github.com/ogdch/ckanext-foph — Bundesamt für Statistik. Issues & pull requests at the source.
  • Python 93.2%
  • Shell 6.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stefan Oderbolz cfd4b54399 Merge pull request #6 from ogdch/shorten-description
Shortened the organisation description to match others.
2014-02-21 17:11:41 +01:00
ckanext Merge pull request #6 from ogdch/shorten-description 2014-02-21 17:11:41 +01:00
scripts Updated name in scripts and added info to readme. 2014-02-04 16:14:57 +01:00
.gitignore Harvester set up. 2014-01-22 16:48:32 +01:00
.travis.yml Add travis build and pre-commit hook. 2014-02-17 13:26:32 +01:00
build.sh Add travis build and pre-commit hook. 2014-02-17 13:26:32 +01:00
LICENSE Harvester set up. 2014-01-22 16:48:32 +01:00
pip-requirements.txt Added flake8 to pip-requirements.py. 2014-02-17 13:35:00 +01:00
pre-commit.sh Add travis build and pre-commit hook. 2014-02-17 13:26:32 +01:00
README.md Updated name in scripts and added info to readme. 2014-02-04 16:14:57 +01:00
setup.cfg Add travis build and pre-commit hook. 2014-02-17 13:26:32 +01:00
setup.py Add travis build and pre-commit hook. 2014-02-17 13:26:32 +01:00

ckanext-foph

Harvester for the Federal Office of Public Health (FOPH).

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-foph.git#egg=ckanext-foph --src /home/www-data
cd /home/www-data/ckanext-foph
pip install -r pip-requirements.txt
python setup.py develop

Make sure to add foph and foph_harvester 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

Run harvester

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