Skip to main content

A bunch of custom harvesters for ckanext-harvest

Project description

The harvest_basket extension comes with a few custom harvesters for different data portals. The list of available harvesters, that must be enabled with ckan.plugins in your config:

  • dkan_harvester
  • junar_harvester
  • socrata_harvester
  • arcgis_harvester

This extension also adds some features to extend the basic harvester:

  1. Source checkup preview. During the source creation stage the harvester will try to access the remote portal and harvest one dataset to check if it's accessible or not. (TODO: the source checkup interface will be documented soon).
  2. Restriction for anonymous users to visit harveser pages

Installation

To install ckanext-harvest-basket:

  1. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate

  2. Clone the source and install it on the virtualenv

    git clone https://github.com/DataShades/ckanext-harvest-basket.git cd ckanext-harvest-basket pip install -e . pip install -r requirements.txt

  3. Add harvest_basket to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/ckan.ini).

  4. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:

    sudo service apache2 reload

Config settings

Available config options:

# You can disallow accessing harvester pages for anonymous users.
# (optional, default: 1).
ckanext.harvest_basket.allow_anonymous = 0

Developer installation

To install ckanext-harvest-basket for development, activate your CKAN virtualenv and do:

git clone https://github.com/DataShades/ckanext-harvest-basket.git
cd ckanext-harvest-basket
python setup.py develop
pip install -r requirements.txt

Tests

To run the tests, do:

pytest --ckan-ini=test.ini

License

AGPL

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext_harvest_basket-1.3.10.tar.gz (36.6 kB view details)

Uploaded Source

Built Distribution

ckanext_harvest_basket-1.3.10-py3-none-any.whl (46.1 kB view details)

Uploaded Python 3

File details

Details for the file ckanext_harvest_basket-1.3.10.tar.gz.

File metadata

  • Download URL: ckanext_harvest_basket-1.3.10.tar.gz
  • Upload date:
  • Size: 36.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.10.0 requests/2.32.3 setuptools/75.1.0 requests-toolbelt/1.0.0 tqdm/4.66.6 CPython/3.8.18

File hashes

Hashes for ckanext_harvest_basket-1.3.10.tar.gz
Algorithm Hash digest
SHA256 21ba2222823c332b1d9479be247cdad2474dc15d7b392dd99f64e7c2f98e5f37
MD5 27e1648d4004b4ade877554c190bb92c
BLAKE2b-256 c0fb7819f1a1f0492280cbdf474eb11a648ea7b271e0ac7471195c3dec080e0d

See more details on using hashes here.

File details

Details for the file ckanext_harvest_basket-1.3.10-py3-none-any.whl.

File metadata

  • Download URL: ckanext_harvest_basket-1.3.10-py3-none-any.whl
  • Upload date:
  • Size: 46.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.10.0 requests/2.32.3 setuptools/75.1.0 requests-toolbelt/1.0.0 tqdm/4.66.6 CPython/3.8.18

File hashes

Hashes for ckanext_harvest_basket-1.3.10-py3-none-any.whl
Algorithm Hash digest
SHA256 2a815bf4387421a37c7e23ae6604ef295997eec805abeb35ee330e2aca8198be
MD5 62d6b37a7820afa7b6397f13fb77ac84
BLAKE2b-256 0491fe020b3e2a1e2c1e69cea9a8d9660fbfad9a2ed97a2a1a77307d173f18b6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page