How do you use Python in a not "professional developer" way?
David MM👨🏻‍💻

David MM👨🏻‍💻 @davidmm1707

About: Software developer (Django/Vue.js). Sometimes learning, sometimes teaching what I learn at https://letslearnabout.net/

Location:
València
Joined:
Sep 5, 2019

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

Publish Date: Sep 14 '19
9 11

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.

Comments 11 total

  • Aadi Bajpai
    Aadi BajpaiSep 14, 2019

    quick calculator

  • Casi Imin
    Casi IminSep 14, 2019

    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

    • David MM👨🏻‍💻
      David MM👨🏻‍💻Sep 14, 2019

      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.

      • Casi Imin
        Casi IminSep 14, 2019

        Nice! Have a nice pydev ;)

  • Victor Warno
    Victor WarnoSep 14, 2019

    Quick scripts that scrape data from csv or text files. Probably what bash could do faster 😅

    • David MM👨🏻‍💻
      David MM👨🏻‍💻Sep 14, 2019

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

  • Mateusz Bełczowski
    Mateusz BełczowskiSep 15, 2019

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

  • Benjamin Kooiman-Cox
    Benjamin Kooiman-CoxSep 16, 2019

    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.

  • Vlatko Vlahek
    Vlatko VlahekSep 17, 2019

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

    • David MM👨🏻‍💻
      David MM👨🏻‍💻Sep 17, 2019

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

      Or at least, I want to 😀

Add comment