mecadoi.batch

Process multiple MECA archives: parse them, generate deposition files, and send them to the Crossref API.

Main entrypoints are parse(files, db) which parses all given files to prepare for deposition and deposit(parsed_files, db) which tries to deposit all given parsed files. Both functions store detailed results in the given BatchDatabase and return an overview of the actions taken for each given file.

Functions

deposit(mecas, db[, dry_run])

Generate deposition files from the given ParsedFiles, try to send the files to the Crossref API, and store the results in db.

parse(files, db)

Parse all given files as MECA archives and store the results in db.