GithubHelp home page GithubHelp logo

taijiang-bulk-uploader's Introduction

批次上傳工具 for 台江內海研究資料集

套件需求

  1. ckanapi
  2. shapely
  3. requests
  4. unicodecsv

事前準備

  1. 詮釋資料 "csv" 檔案 (請將收到的 xls 檔案另存成 csv)
  2. 新增一欄位「新檔案名稱」並定義僅含英文數字之檔案名稱
  3. 欲上傳之實體檔案 (存於一目錄)
  4. 準備一連線設定檔,範例如 config_template.json:
    • name_prefix: 檔案名稱之前綴 (因檔案名稱僅支援英文,故需另行指定英文之檔名前綴,系統會自動加上流水號)
    • org_name: 資料集所屬之組織
    • api_url: CKAN 主機所在位址 (如: http://127.0.0.1:5000)
    • api_key: CKAN 使用者 API 密鑰
    • visibility: 欲上傳資料集之開放狀態 (開放: public;非開放: private)

操作方式

python uploader.py -f META_FILE -d FILE_FOLDER -c CONFIG_FILE
  • META_FILE: 詮釋資料 csv 檔案位置
  • FILE_FOLDER: 實體檔案所在資料夾位置 (optional)
  • CONFIG_FILE: 連線設定 json 檔案位置

使用例:

python uploader.py -f taijiang_bulk_example.csv -d uploads -c config_template.json

taijiang-bulk-uploader's People

Contributors

u10313335 avatar

Watchers

 avatar James Cloos avatar

taijiang-bulk-uploader's Issues

Web interface

ref ckan/ideas#18
idea: 先上傳檔案,回傳使用者要填的 metadata 檔案,待使用者編輯完 (metadata) 後再上傳 (同時也可作為批次更新 metadata 之用)

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.