r/learnpython • • Nov 19 '19

My first application!

In October I started my Python-journey, with a full time job and a 2yo kid the spare time is scarce.
I've been following a Udemy-course and also used some android-apps to just study something every day.
2 weeks ago I made my first real script from scratch, I had a idea of automating / helping with a tedious task at work. I'm a train driver, and every train we start we fill a paper form, check some values from 2 different paper lists and enter some of that data into the control computer.

The script were terminal based and did all the calculations I wanted, checked up the values from those 2 lists (one which is short, so I just made an elseif of it, the other is long so I made a .txt with the values) and gave a summarized result.

Now 2 weeks later I've deployed it on the web with Flask to be able to share with my colleges!
With dropdowns, forms to fill and a button to run the scripts and show the result.

Thanks to inspiration from this subreddit (and others) I made it working! It's plain ugly, but the functionality is there. Guess I'll come back and sort the design with bootstrap or at least some css'ing next time I feel a dip in the studying.

I dno if there's a better way to post a image, but here's one:
Image of the result with explanations

407 Upvotes

72 comments sorted by

View all comments

46

u/TrueBirch Nov 19 '19

This is a great project! And I actually like the interface.

14

u/Mag37 Nov 19 '19

Thank you! It was a fun path, starting with the idea, what values did I need to present, what to do with them? Working out one function at a time. Then making it smarter and slimmer the more I worked on it. Also asking my colleges if they'd use a tool like this, what would they like to see.

9

u/Hudlommen Nov 19 '19

I once made a handover sheet for the ward a worked at, because they just did it in word and people kept fucking it up. They ended up using it way past i left the place, only stopping because they somehow manage to break it in the end :D - But just as a word of caution, i had little to no traction in the beginning, people are just very hard to get to change their mind. So if you meet push-back, its not you or your idea, just people..

Great work!

6

u/Mag37 Nov 19 '19

Thanx! Cool that they kept using it :) I've got no intention for this to be used by the company, that wasn't the idea from start. Started with it in the terminal for fun, and then when I actually made it work I wanted to show my close colleges - so had to get it to work on cellphones. We'll see how they like it and if I keep working on it!