MCPcopy
hub / github.com/pallets/click / inout

Function inout

tests/test_arguments.py:109–114  ·  view source on GitHub ↗
(input, output)

Source from the content-addressed store, hash-verified

107 @click.argument("input", type=click.File("rb"))
108 @click.argument("output", type=click.File("wb"))
109 def inout(input, output):
110 while True:
111 chunk = input.read(1024)
112 if not chunk:
113 break
114 output.write(chunk)
115
116 with runner.isolated_filesystem():
117 result = runner.invoke(inout, ["-", "hello.txt"], input="Hey!")

Callers

nothing calls this directly

Calls 4

openFunction · 0.85
readMethod · 0.80
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected