Coder Social home page Coder Social logo

ckanext-cloudstorage_api's Introduction

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.bucket_path
    • Type: str.
    • Description: (Optional) The path within the S3 to store files. Default: "/", i.e. bucket root.
  • 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

Actions

{CKAN_HOST}/api/3/action/{ACTION_NAME}

  • cloudstorage_initiate_multipart
  • cloudstorage_get_presigned_url_download
  • cloudstorage_get_presigned_url_multipart
  • cloudstorage_get_presigned_url_list_multipart
  • cloudstorage_multipart_list_parts
  • cloudstorage_finish_multipart
  • cloudstorage_abort_multipart
  • cloudstorage_check_multipart
  • cloudstorage_clean_multipart

Blueprints

  • /download/<resource_id>
    • Description: redirect to download a resource directly.

ckanext-cloudstorage_api's People

Contributors

spwoodcock avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.