Harvester for the Swiss Federal Archives (SFA) | Read-only mirror of https://github.com/ogdch/ckanext-sfa — Bundesamt für Statistik. Issues & pull requests at the source.
  • Python 92.6%
  • Shell 7.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2014-02-17 13:39:30 +01:00
ckanext Added travis build. 2014-02-17 13:38:07 +01:00
scripts Renamed harvester for daemon scripts 2013-09-09 14:00:40 +02:00
.gitignore initial commit for the swiss federal archives harvester for the ogd@confederation project 2013-07-23 15:30:16 +02:00
.travis.yml Added travis build. 2014-02-17 13:38:07 +01:00
build.sh Added travis build. 2014-02-17 13:38:07 +01:00
LICENSE Add LICENSE and README 2013-09-13 20:41:53 +02:00
pip-requirements.txt Added flake8 to pip requirements. 2014-02-17 13:39:30 +01:00
pre-commit.sh Add PEP8 checker 2013-12-20 11:57:58 +01:00
README.md Add PEP8 checker 2013-12-20 11:57:58 +01:00
setup.cfg Add PEP8 checker 2013-12-20 11:57:58 +01:00
setup.py initial commit for the swiss federal archives harvester for the ogd@confederation project 2013-07-23 15:30:16 +02:00

ckanext-sfa

Harvester for the Swiss Federal Archives (SFA)

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

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