No project description provided
Project description
ckanext-resource_indexer
Index content of resources in addition to metadata.
Important
master branch of this repository is unstable. Always install ckanext-resource-indexer using pip(pip install ckanext-resource-indexer) unless you are going to change extension’s source code for your need.
Config Settings
# The size treshold(MB) for remote resources # (optional, default: 4). ckanext.resource_indexer.max_remote_size = 4 # Make an attempt to index remote files(fetch into tmp folder # using URL) # (optional, default: false). ckanext.resource_indexer.allow_remote = 1 # List of lowercased resource formats that should be # indexed. Currently only `pdf` and `txt` supported # (optional, default: None) ckanext.resource_indexer.indexable_formats = txt pdf # Field containing data extacted from the file in addition to the # general `text` field # (optional, default: None) ckanext.resoruce_indexer.index_field = extras_res_attachment
Development Installation
To install ckanext-resource_indexer for development, activate your CKAN virtualenv and do:
git clone https://github.com/DataShades/ckanext-resource_indexer.git cd ckanext-resource_indexer python setup.py develop
Add resource_indexer (and optionaly pdf_resource_indexer or plain_resource_indexer) to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini).
Running the Tests
To run the tests, do:
pytest --ckan-ini test.ini
AWS Linux
sudo yum install -y pulseaudio-libs-devel python-devel libxml2-devel libxslt-devel poppler poppler-utils poppler-cpp-devel
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
Close
Hashes for ckanext-resource_indexer-0.0.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0633990d946dd85c3be8ca1e809bb7918d97a8c0f9af10363f84c2ea9a9e506 |
|
MD5 | 3a54e16e4b34912d69d06b178b6a3076 |
|
BLAKE2b-256 | b9a3f305d31a8d51fcc6a14e31f4d615c0e7b7f70ce9179220333270ccdfd924 |
Close
Hashes for ckanext_resource_indexer-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40479f66d2b31668afbb7ffebb83ef7ca28263af85c45c709d1a159f9c05bdd6 |
|
MD5 | 1f5c4c2deee6432f5d9041ceda0f711e |
|
BLAKE2b-256 | a081d64c52dec6babe0307ebc6ec2d3377fd4149b4687ce0cb9d369486ea188c |