Extension to manage CKAN resources in any S3-like object storage.
Project description
CKAN Cloudstorage API
Documentation: https://envidat.gitlab-pages.wsl.ch/ckanext-cloudstorage_api/
Source Code: https://gitlabext.wsl.ch/EnviDat/ckanext-cloudstorage_api
This plugin is primarily intended for custom frontends built on the CKAN API.
Supports any S3-like API, e.g. Minio, Ceph Object Gateway.
Full support for all Apache libcloud drivers was dropped, due to primarily relying on S3 multipart and pre-signed URL capabilities.
Install
pip install ckanext-cloudstorage-api
Config
Required variables are set in your ckan.ini:
- ckanext.cloudstorage_api.host
- Type: str.
- Description: The S3 host URL.
- ckanext.cloudstorage_api.region
- Type: str.
- Description: The S3 host region.
- ckanext.cloudstorage_api.access_key
- Type: str.
- Description: Access key for S3.
- ckanext.cloudstorage_api.secret_key
- Type: str.
- Description: Secret key for S3.
- ckanext.cloudstorage_api.bucket_name
- Type: str.
- Description: The name of the S3 bucket to store files.
- ckanext.cloudstorage_api.max_multipart_lifetime
- Type: str.
- Description: (Optional) maximum time a multipart part can exist. Multiparts will be cleaned if older than this by calling the cloudstorage_clean_multiparts endpoint.
- ckanext.cloudstorage_api.leave_files
- Type: bool.
- Description: (Optional) leave files on S3 after resource deletion.
Endpoints
TBC
Project details
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
File details
Details for the file ckanext-cloudstorage-api-0.1.2.tar.gz
.
File metadata
- Download URL: ckanext-cloudstorage-api-0.1.2.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.8.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 064ec60e6b70c4cdd32f58160caee6f29ffd4dc563d569b963fc1609d7b25e37 |
|
MD5 | cc9a3842752d357693bfb523d98db63e |
|
BLAKE2b-256 | be665a883bf18923dc9e510875a1af08c851faaba0c8430a430e645088669aba |
File details
Details for the file ckanext_cloudstorage_api-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: ckanext_cloudstorage_api-0.1.2-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.8.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01e31d6058496f50395fa0018b7b51d27a88c71eac5fe31d98ddfd6ba15b1430 |
|
MD5 | 6a4cd67421461eb712162b441efa19e2 |
|
BLAKE2b-256 | 158d468f53e61c27415459003a04bfb075dc1a447e82f4c0c0e83d9d47fe8208 |