MCPcopy
hub / github.com/bugy/script-server / write

Method write

src/web/streaming_form_reader.py:29–35  ·  view source on GitHub ↗
(self, chunk)

Source from the content-addressed store, hash-verified

27 self.value = ''
28
29 def write(self, chunk):
30 if self.filename:
31 with open(self.path, 'ab') as f:
32 f.write(chunk)
33 return
34
35 self.value += chunk.decode('utf-8')
36
37
38HttpFormFile = namedtuple('HttpFormFile', ['filename', 'path'])

Callers 15

build.pyFile · 0.45
callback_test.pyFile · 0.45
write_fileFunction · 0.45
respond_errorFunction · 0.45
__call__Method · 0.45
send_tokensMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45

Calls

no outgoing calls

Tested by 2

send_tokensMethod · 0.36