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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7b21f943e7e9977250107a6fb4c5cb6bc1080510ebb12058c9f894b4caee63f |
|
MD5 | e33de91c601cc1cc8ea53eca89d2bf6f |
|
BLAKE2b-256 | 2a9a053fe55e0f4cb8627bc35cdc41ca0ff30dc36d172704e9a4f5cabc5790b1 |
Close
Hashes for ckanext_resource_indexer-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81812177b39f4cf9434ac9602178db2c1135db81c4f5f3af3d41a3e9ee7a7d77 |
|
MD5 | 975039f90e936d6b9f83ced520e9a05c |
|
BLAKE2b-256 | e13f93abb95ac5739ae63bc3190ba11494364645f1a41f7da2c773e2ab5276e3 |