Skip to main content

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

ckanext-cloudstorage-api-0.1.4.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

ckanext_cloudstorage_api-0.1.4-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file ckanext-cloudstorage-api-0.1.4.tar.gz.

File metadata

File hashes

Hashes for ckanext-cloudstorage-api-0.1.4.tar.gz
Algorithm Hash digest
SHA256 6cf171bd0b5246bbb5696ce5be3d4fca325bc6fd346eb7b9ee0be6c4253dc3f8
MD5 c5af27b47ec7ef7c16951def1568b065
BLAKE2b-256 9bac83a30a100e0d79aef24838647b156ddf95dcb8cdc740a1a136a2a868eae5

See more details on using hashes here.

File details

Details for the file ckanext_cloudstorage_api-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ckanext_cloudstorage_api-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 180193e2ea51d3f48343cc72c011c0d04eed83a99818ddded3db6db675cd97f4
MD5 8d1b6f84a948545cd582fbd959966671
BLAKE2b-256 6a1f6aacd614a06c47a81fe46cdb512e21f56060ab202a86a53dabe225abfd36

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page