I have a python function that takes a series of integers as inputs and returns another series of integers. I'd like to distribute the function in the form of a web app.
The landing page should consist of a web form with a series of integer fields (with input validation), drop-down fields and a submit button. The submit button triggers the said python function and returns the results which should be rendered in an html table.
I am a complete novice with web development, but after some research it appears that flask is the most appropriate framework for me to use for the above task. My problem is that the documentation I have encountered so far deals primarily with blog development and therefore not particularly relevant for the type of app I am after.
I am therefore seeking any pointers (sample code, books, articles) or guidance to get me started with my task. In its simplest form, what I'm looking for is:
- web form that takes one integer (1-10) and a second integer (1-5) from a drop down list
- web form returns error if user enters invalid integer (<1, >10)
- on submit button python function calculates the sum of the two integers
- result is presented on the web form
All guidance appreciated.
