MCPcopy Create free account
hub / github.com/devforth/painterro / binary_saver

Function binary_saver

example/server.py:54–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53@app.route("/save-as-binary/", methods=['POST'])
54def binary_saver():
55 filename = '{:10d}.png'.format(int(time())) # generate some filename
56 filepath = os.path.join(get_tmp_dir(), filename)
57 request.files['image'].save(filepath)
58
59 return jsonify({})
60
61
62@app.route('/image/<path:filename>')

Callers

nothing calls this directly

Calls 2

get_tmp_dirFunction · 0.85
saveMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…