Giter VIP home page Giter VIP logo

mpapi-util's Introduction

MpApi-Utils

MpApi-Utils is a package that extends MpApi with command line scripts. Many of these utilities will assemble data in an Excel file in a first step, so that user can study the results and manually correct them in a second step. Only after these intermediary steps, real changes will be made in third step (e.g. changes made to the database). The Excel file also functions as a log file, documenting what has been done. This method is relatively slow, so dont expect anything here to win a speed competition.

Main Scripts

  • mover: move files that are already in RIA to safe location
  • prepare: create object records for assets that dont have one yet
  • reportx: writes a report on files scanning a directory recursively
  • upload: based on properly named files on disk, create asset records, link to object records, and attach assets in RIA.

Small Tools

  • attach: attach an asset to existing asset record (for debugging)
  • count: count files types for example by extension
  • mk_grp: make an Object Group from Excel file
  • restart: restart a job x times
  • sren: yet another simple file renaming tool
  • update_schemas: update the internal identNr schema db (used in upload)

mpapi-util's People

Contributors

mokko avatar

Stargazers

 avatar

Watchers

 avatar

mpapi-util's Issues

Do we have a duplicate check for upload?

I was just contemplating how to upload ca. ~10.000 *.tif files from AmArch archive folder. Several identical files (identically named files) exist. I.e. the same file exists in multiple folders. Do we check in uploadAsset for this case or would we upload the same file multiple times.

TODO:

  • Check if that is the case
  • Write such a check if necessary.

preprare: deal with possible duplicates

warn or delete about possible doublicates, e.g. if the same image file has been copied into two directories. Those will end up as multiple lines in the Excel table. Make sure that we dont create multiple object records in those cases.

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.