Skip to content

TkTech/ckanext-search-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ckanext-search-export

Adds an export button to search results, allowing logged-in users to download the results without futzing with the API.

Uses CKAN's built-in IUploader and background workers to handle even extremely large portals with millions of datasets.

Search list Search exporting Search ready

Installation

Install the extension using pip:

pip install -e "git+https://github.com/TkTech/ckanext-search-export.git#egg=ckanext-search-export"

Then add search-export to the ckan.plugins setting in your ckan.ini file:

ckan.plugins = ... search-export

Ensure that file storage is already enabled in your ckan.ini:

ckan.storage_path = /path/to/your/storage

Add the following to your ckan.ini:

ckan.upload.search_export.types = text
ckan.upload.search_export.mimetypes = text/csv

Configuration

Exports are limited to 2MB in size by default, which comes from CKAN's default. Increase it by adding the following to your ckan.ini:

# The maximum size of the export in MB
search_export.maximum_size = 4

About

1-button export of search results for CKAN portals.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Contributors