MCPcopy Create free account
hub / github.com/internetarchive/openlibrary / init_and_start

Function init_and_start

scripts/delete_import_items.py:116–130  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

114
115
116def init_and_start(args):
117 # Read arguments from config file:
118 config_args = read_args_from_config(args.config_file)
119
120 # Set up Open Library
121 load_config(config_args["ol_config"])
122
123 del config_args["ol_config"]
124
125 # Delete affected files
126 results = DeleteImportItemJob(**config_args).run()
127
128 print(f"Lines of input processed: {results['lines_processed']}")
129 print(f"Records read from input file: {results['affected_records']}")
130 print(f"Records deleted: {results['num_deleted']}")
131
132
133def build_parser():

Callers

nothing calls this directly

Calls 4

load_configFunction · 0.90
read_args_from_configFunction · 0.85
DeleteImportItemJobClass · 0.85
runMethod · 0.45

Tested by

no test coverage detected