Harvester for the Statistical Office of Canton of Zurich | Read-only mirror of https://github.com/ogdch/ckanext-zhstat — Bundesamt für Statistik. Issues & pull requests at the source.
  • Python 93.1%
  • Shell 6.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2014-02-17 14:29:41 +01:00
ckanext Added pre-commit hook, edited zhstatharvester.py for PEP-8. 2014-02-17 14:29:41 +01:00
scripts fix command in readme and scripts 2013-10-25 14:30:44 +02:00
.gitignore init 2013-10-18 11:46:51 +02:00
.travis.yml How about adding the .travis.yml file to the build? 2014-02-17 14:14:40 +01:00
build.sh How about adding the .travis.yml file to the build? 2014-02-17 14:14:40 +01:00
LICENSE added readme, license, scripts 2013-10-23 13:52:11 +02:00
pip-requirements.txt Added travis build. 2014-02-17 14:00:03 +01:00
pre-commit.sh Add PEP8 code checker setup 2013-12-20 18:25:05 +01:00
README.md Add PEP8 code checker setup 2013-12-20 18:25:05 +01:00
setup.cfg Added pre-commit hook, edited zhstatharvester.py for PEP-8. 2014-02-17 14:29:41 +01:00
setup.py init 2013-10-18 11:46:51 +02:00

ckanext-zhstat

Harvester for the Statistical Office of Canton of Zurich

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

Make sure to add zhstat and zhstat_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-zhstat harvester gather_consumer -c development.ini &
paster --plugin=ckanext-zhstat harvester fetch_consumer -c development.ini &
paster --plugin=ckanext-zhstat harvester run -c development.ini