Coder Social home page Coder Social logo

pre-ingest's Introduction

copy / bag / validate

A utility for copying a specific file or directory from external media, converting the local copy to a Bag named according to repository standards (using MoMA's TMS API), valdating the BagIt generated SHA1 checksums against Hashlib calculated SHA1 of the files on the original source media. Requires bagit-python, and currently only works with MoMA's TMS API.

Command Line Usage

python pre-ingest.py -i /Volumes/source-drive/source-directory -n "name of transfer" -id 930.2012

Used internally on the MoMA network, this would result in the transfer of the files, and a bag named "Will_Wright---SimCity_2000---930.2012---152406"

Arguments

  • -id, --accessionid (required) object/acession number of the artwork.
  • -i, --input (required) Full path of the source directory or file
  • -o, --output (optional) Full path of the destination. Defaults to Desktop.
  • -t, --title (optional) Title of the transfer.
  • -n, --name (optional) Name of the person operating the script. This winds up in the Bag's metadata

Output

Bags are named with the following convention ArtistLastname_ArtistFirstname---Title_of_artwork---acessionNumber---TMSObjectID

To-to list

  • add exception for inability to resolve connection to TMS
  • add component interaction (list / select)
  • document original order of files (METS?)

pre-ingest's People

Contributors

finoradin 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.