MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / run_module

Function run_module

tools/generate_proxy_methods.py:415–425  ·  view source on GitHub ↗
(modname: str, cmd: code_writer_cmd)

Source from the content-addressed store, hash-verified

413
414
415def run_module(modname: str, cmd: code_writer_cmd) -> None:
416 cmd.write_status(f"importing module {modname}\n")
417 mod = importlib.import_module(modname)
418 destination_path = mod.__file__
419 assert destination_path is not None
420
421 tempfile = process_module(modname, destination_path, cmd)
422
423 cmd.run_zimports(tempfile)
424 cmd.run_black(tempfile)
425 cmd.write_output_file_from_tempfile(tempfile, destination_path)
426
427
428def main(cmd: code_writer_cmd) -> None:

Callers 1

mainFunction · 0.70

Calls 5

write_statusMethod · 0.80
run_zimportsMethod · 0.80
run_blackMethod · 0.80
process_moduleFunction · 0.70

Tested by

no test coverage detected