DEV Community

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

David MM👨🏻‍💻 on September 14, 2019

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 fea...
Collapse
 
casiimin profile image
Casi Imin

I'm not a professional programmer, especially in Python.
In the past I've tried to make various automation script, for fun.
Three of the best:
a wireless (based on sockets) transfer script, from and to pc (Mac) and mobile (iOS)
a web crawler in httplib, urllib and regex (for find pdf's research in Google)
a remote system controller via email

/laugh

Collapse
 
davidmm1707 profile image
David MM👨🏻‍💻

That's cool. I was playing this week with reading-deleting-modifying-etc files but next week I'm going to start with email automation.

The wireless socket transfer sounds great, I like the idea.

Collapse
 
casiimin profile image
Casi Imin

Nice! Have a nice pydev ;)

Collapse
 
ben_kc profile image
Benjamin Kooiman-Cox • Edited

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👨🏻‍💻

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

Collapse
 
aadibajpai profile image
Aadi Bajpai

quick calculator

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👨🏻‍💻

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

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👨🏻‍💻

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