MCPcopy Index your code
hub / github.com/python/cpython / main

Function main

Platforms/emscripten/prepare_external_wasm.py:39–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38
39def main():
40 parser = argparse.ArgumentParser(
41 description="Compile WebAssembly text files using wasm-as"
42 )
43 parser.add_argument("input_file", help="Input .wat file to compile")
44 parser.add_argument("output_file", help="Output file name")
45 parser.add_argument("function_name", help="Name of the export function")
46
47 args = parser.parse_args()
48
49 return prepare_wasm(args.input_file, args.output_file, args.function_name)
50
51
52if __name__ == "__main__":

Callers 1

Calls 3

parse_argsMethod · 0.95
prepare_wasmFunction · 0.85
add_argumentMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…