DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป is a community of 963,864 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
David MM๐Ÿ
David MM๐Ÿ

Posted on

How do you use Python in a not "professional developer" way?

I love Python. In fact, for a few years it has been my favourite language (Maybe I change my mind after trying Go...).

But one of my favourite features about Python is that you can use it to your little, non-professional developer, day to day tasks.

We know we can use it to create web backends, REST APIs, deployment, etc, but what I liked about Python is that, unlike other languages, it can be used easily by non-programmers to help their tasks.

For example, I have read about secretaries automatizing tasks that take them hours or even days by learning Python on the side, to manipulate files, using basic regex to extract phones from files and/or emails, and stuff like that.

I started creating small projects that manipulate text files, by searching texts inside them, modifying them, renaming files if certain conditions are found, etc and I love it.

so my question is: How do you use Python in your day to day? Especially if you don't work as a professional programmer.

Top comments (11)

Collapse
 
ben_kc profile image
Benjamin Kooiman-Cox • Edited on

I have to use registry scripts to set up auto-logins for digital signage computers. Rather than keeping a bunch of dangerous registry-editing scripts on my filesystem, I wrote a Python script that takes a template, combines it with login info from a JSON file, and creates the necessary registry script. That way I can create them as needed and delete them when I'm done without worrying about losing the information or accidentally running them.

I also have to inspect exit signs throughout my workplace. In order to keep track of these inspections, I made a web page that queries a SQLite database via AJAX requests to Python cgi scripts. When I need to log a new inspection, I just run py -m http.server --cgi and go to localhost:8000/ in my browser. It's kind of kludgy in its current state, but I'm thinking about re-implementing it with Django.

Collapse
 
davidmm1707 profile image
David MM๐Ÿ Author

Yeah, using Django is the best option and a piece of cake to implement.

Collapse
 
schmowser profile image
Victor Warno

Quick scripts that scrape data from csv or text files. Probably what bash could do faster ๐Ÿ˜…

Collapse
 
davidmm1707 profile image
David MM๐Ÿ Author

I'm doing something like that right now. What do you use to search inside the text files?

Collapse
 
aadibajpai profile image
Aadi Bajpai

quick calculator

Collapse
 
vlaja profile image
Vlatko Vlahek

The biggest case is when I need a quick script and want to avoid writing it in bash :)

Collapse
 
davidmm1707 profile image
David MM๐Ÿ Author

And having Python, you always want to avoid using Bash.

Or at least, I want to ๐Ÿ˜€

Collapse
 
mateusz__be profile image
Mateusz Beล‚czowski

Perhaps quick scripting and automation, e.g. adding podcasts that I want to listen to my to-do app

Some comments may only be visible to logged-in visitors. Sign in to view all comments.

๐ŸŒš Browsing with dark mode makes you a better developer.

It's a scientific fact.