Harvester for the Swiss Federal Statistical Office (FSO) | Read-only mirror of https://github.com/ogdch/ckanext-fso — Bundesamt für Statistik. Issues & pull requests at the source.
  • Python 95%
  • Shell 5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stefan Oderbolz 215a5f3172 Merge pull request #13 from fbelfort/patch-3
Fixed 'link_text_to_fso_basis' for EN and IT
2014-02-19 16:53:47 +01:00
ckanext Fixed 'link_text_to_fso_basis' for EN and IT 2014-02-19 10:28:56 +01:00
config/supervisor implemented the gathering and fetch step 2013-07-15 15:27:42 +02:00
scripts OGDCH-75: Add daemon scripts for ckanext-fso 2013-09-06 18:48:08 +02:00
.gitignore initial commit with the extension boilerplate 2013-07-10 21:39:05 +02:00
.travis.yml Add travis build 2014-02-14 14:56:48 +01:00
build.sh Add travis build 2014-02-14 14:56:48 +01:00
CONTRIBUTING.md Add CONTRIBUTING.md to repo 2014-02-14 15:04:27 +01:00
LICENSE Add LICENSE and README 2013-09-13 20:18:58 +02:00
pip-requirements.txt Add PEP8 style checker setup (incl. pre-commit hook) 2013-12-19 16:56:44 +01:00
pre-commit.sh Add PEP8 style checker setup (incl. pre-commit hook) 2013-12-19 16:56:44 +01:00
README.md Add PEP8 style checker setup (incl. pre-commit hook) 2013-12-19 16:56:44 +01:00
setup.cfg Add PEP8 style checker setup (incl. pre-commit hook) 2013-12-19 16:56:44 +01:00
setup.py implemented the gathering and fetch step 2013-07-15 15:27:42 +02:00

ckanext-fso

Harvester for the Swiss Federal Statistical Office (FSO)

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

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