Extension to manage CKAN resources in any S3-like object storage.
Project description
CKAN Cloudstorage API
Extension to manage CKAN resources in any S3-like object storage.
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
Close
Hashes for ckanext-cloudstorage-api-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ef682fe5aefe1214c589cc5d305e22f60741af4c1b4fca03f2da2432c253ef5 |
|
MD5 | 9bd326ad129f19c806ea8de70a27f2d9 |
|
BLAKE2b-256 | 3ea5d0801c93bc8789bc220f437aa559e47d1af4b41992c9a08274f7cfc7b3f6 |
Close
Hashes for ckanext_cloudstorage_api-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9588856ff4d104f242510627680d970f80efd094818e89d77f81aeb18dd7deb9 |
|
MD5 | 6c1d6ab3d3dd79cd1b9eb728801bfc64 |
|
BLAKE2b-256 | 447e0ab222e0c615eab114819b1eeba53181bcb4fdb42cf9b3a971a8e34d5191 |