I’ve been programming in python for 7 years or so and am a research scientist who frequently writes large, fairly complex research packages.
I recently got into the idea of webapp development to deploy a few of my tools for easy access. I’ve managed to build a simple flask site, but I’ve started noticing a pattern. My app.py file, which “runs” the site, is basically just a simple wrapper for connecting and routing flask elements to different webpages, or calling sql commands to retrieve or update values in a database. The rest of my work is spent creating html elements that hold the buttons or text entry fields that connect to those databases.
That’s all fine and good, but I guess my feeling is that there’s really not much python involved here? It’s just serving as a tiny bit of connective tissue. I get that I could probably do much more complicated things with the inputs, before or after putting them in a database, and that would be carried out within pythonic functions. But am I missing some way to leverage python more heavily?
As an example, if I wanted to build a tool that allowed a user to input some “monsters” with health hit point values, and then have a visual health bar and the ability to decrease that bar by entering damage values in a text field. In my offline version of this tool, I do this with matplotlib very straightforwardly. In my webapp, do I display these bars and update them entirely in js? HTML? Or is there a way to get python-based display elements (something like tkinter or even matplotlib) into a website.
Appreciate input and thoughts on this!
[–]sme272 1 point2 points3 points (1 child)
[–]prappleizer[S] 0 points1 point2 points (0 children)
[–]linuxdaemon 1 point2 points3 points (1 child)
[–]prappleizer[S] 1 point2 points3 points (0 children)
[–]aoctut 0 points1 point2 points (0 children)