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_harvesterjunar_harvestersocrata_harvesterarcgis_harvester
This extension also adds some features to extend the basic harvester:
- 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).
- Restriction for anonymous users to visit harveser pages
Installation
To install ckanext-harvest-basket:
-
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
-
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
-
Add
harvest_basketto theckan.pluginssetting in your CKAN config file (by default the config file is located at/etc/ckan/default/ckan.ini). -
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ckanext_harvest_basket-1.3.73.tar.gz.
File metadata
- Download URL: ckanext_harvest_basket-1.3.73.tar.gz
- Upload date:
- Size: 36.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e45ffcc50aa9198746d9a4deac351c7e7e7a3b0c0b49ed741abbcbe2dbc08a8
|
|
| MD5 |
1c18ed2b9053e4a330a61207d55c0b83
|
|
| BLAKE2b-256 |
272df6b9fb758a04b4d59a5c536267befd1938454f88fee4044bf15202a4e131
|
File details
Details for the file ckanext_harvest_basket-1.3.73-py3-none-any.whl.
File metadata
- Download URL: ckanext_harvest_basket-1.3.73-py3-none-any.whl
- Upload date:
- Size: 46.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
190e1ff1d1db91a4819ee5aa1884d730f2eaf89646018c9211b4d501992f8629
|
|
| MD5 |
4543bfafc00574e88ee6c448ebc66c62
|
|
| BLAKE2b-256 |
13b664c501a80621bbd70ccf5835d2458470724c4eaccea447a15b7b0d5eea6d
|