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 # textract's method for extracting content from pdf # (optional, default: None) ckanext.resource_indexer.pdf.method = pdfminer
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
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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 367b17765a8526d777ea427978a6fdae312e987b81f7b8ecb5a6921ca08dc0d2 |
|
MD5 | eac3555d954568217c09ed4d0491508c |
|
BLAKE2b-256 | 68cbf0215b49a86de1411b3118a25f286a35b3945b96ae627d2bf32ae16dc3a4 |
Close
Hashes for ckanext_resource_indexer-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cab6801532025812a4178c8467f47a7305da05680d9ffa94fd7d5c2221741f84 |
|
MD5 | c18dfced6f1b3a5a9d1a86471a8ba8c5 |
|
BLAKE2b-256 | 2665c6c30d19908c5a58b7070c27ad3f05fa0c6998acbaecd228c19b2e91295b |