Recently I revived my relationship with Python in an effort to tackle the routine tasks appearing here and there. So I started to write some pocket scripts and, luckily, was not the only one on this battlefield - my colleagues also have a bunch of useful scripts. With all those code snippets sent in the emails, cloned from the repos, grabbed on the network shares… I started to wonder how much easier would it be if someone had them all aggregated and presented with a Web UI for a shared access?
Thus, I started to build web front-end to the python scripts we used daily with these goals in mind:
allow people with a zero knowledge of Python to use the scripts by interacting with them through a simple Web UI;
make script’s output more readable by leveraging CSS and HTML formatting;
aggregate all the scripts in one a single repo but in a separate sandboxed directories to maintain code manageability.
This short demo should give you some taste of what it is:
Disclaimer: I am nowhere near even a professional python or web developer. And what makes it even worse is that I used (a lot) a very dangerous coding paradigm - SDD - Stack Overflow Driven Development. So, hurt me plenty if you see some awful mistakes.
https://netdevops.me/2016/04/building-web-front-end-for-python-scripts-with-flask/
Recently I revived my relationship with Python in an effort to tackle the routine tasks appearing here and there. So I started to write some pocket scripts and, luckily, was not the only one on this battlefield - my colleagues also have a bunch of useful scripts. With all those code snippets sent in the emails, cloned from the repos, grabbed on the network shares… I started to wonder how much easier would it be if someone had them all aggregated and presented with a Web UI for a shared access?
Thus, I started to build web front-end to the python scripts we used daily with these goals in mind:
allow people with a zero knowledge of Python to use the scripts by interacting with them through a simple Web UI; make script’s output more readable by leveraging CSS and HTML formatting; aggregate all the scripts in one a single repo but in a separate sandboxed directories to maintain code manageability.
This short demo should give you some taste of what it is:
Disclaimer: I am nowhere near even a professional python or web developer. And what makes it even worse is that I used (a lot) a very dangerous coding paradigm - SDD - Stack Overflow Driven Development. So, hurt me plenty if you see some awful mistakes.
Project source code