Skip to content
Snippets Groups Projects
Commit 4601b24b authored by Thomas Zastrow's avatar Thomas Zastrow :construction_worker:
Browse files

First implementation of mmd2bagit

parent ccdf6f29
Branches
No related tags found
No related merge requests found
import json
import argparse
import bagit
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("-folder", help="the folder which should be turned into a bagit")
parser.add_argument("-metadata", help="the file with the metadata in MMD format")
args = parser.parse_args()
try:
infile = open(args.metadata, "r")
data = json.load(infile)
bag = bagit.make_bag(args.folder, data)
except:
print("Can't find folder or metadata file")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment