ckanext-linked-storage
CKAN extension enabling files accessible via a mounted network share to be created as dataset resources with CKAN acting as a proxy.
Developed by the US Environmental Protection Agency (EPA).
Requirements
| CKAN version |
Compatible? |
| 2.8 and earlier |
not tested |
| 2.9 |
yes |
Installation
- Activate your CKAN virtual environment
- Clone and install:
pip install -e .
- Add
linked_storage to ckan.plugins
- Add storage locations via config
- Restart CKAN
Adding resources using linked storage
Create a resource via API with url_type = 'link-storage':
resource_create(
package_id='some package',
name='a linked resource package',
url_type='link-storage',
link_path="\\some-host\share\linked_file.csv"
)
Config Settings
| Setting |
Description |
| ckanext.linked_storage.mountpoints |
Specifies mountpoints or folders where data files can be accessed (space delimited) |
| ckanext.linked_storage.net_paths |
Specifies paths to match provided resource paths to corresponding mountpoints |
Disclaimer
This software is provided by the US EPA on an “as is” basis. EPA has relinquished control of the information and no longer has responsibility to protect its integrity, confidentiality, or availability.