MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / do_enhance

Function do_enhance

example_code/item_098/mycli/server.py:35–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34@app.route("/enhance", methods=["GET", "POST"])
35def do_enhance():
36 if request.method == "POST":
37 the_file = request.files["the_file"]
38 amount = request.form["amount"]
39 import enhance # Dynamic import
40
41 return enhance.do_enhance(the_file, amount)
42 else:
43 return render_template("enhance.html")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected