MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / main

Function main

script/run_pdf2ppt_cli.py:258–288  ·  view source on GitHub ↗

Main entry point

()

Source from the content-addressed store, hash-verified

256
257
258def main():
259 """Main entry point"""
260 try:
261 # Parse arguments
262 args = parse_args()
263
264 # Validate input file
265 input_path = validate_input_file(args.input)
266
267 # Create output directory
268 output_dir = create_output_dir(args)
269
270 # Run workflow
271 final_state = asyncio.run(run_pdf2ppt_workflow(args, input_path, output_dir))
272
273 # Print results
274 print_results(final_state, output_dir)
275
276 return 0
277
278 except FileNotFoundError as e:
279 log.error("%s", e)
280 return 1
281 except ValueError as e:
282 log.error("%s", e)
283 return 1
284 except Exception as e:
285 log.exception("Workflow execution failed: %s", e)
286 import traceback
287 traceback.print_exc()
288 return 1
289
290
291if __name__ == "__main__":

Callers 1

run_pdf2ppt_cli.pyFile · 0.70

Calls 6

run_pdf2ppt_workflowFunction · 0.85
parse_argsFunction · 0.70
validate_input_fileFunction · 0.70
create_output_dirFunction · 0.70
print_resultsFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected