DEV Community

4 Basic Python Tips to Automate Your Workflow

SeattleDataGuy on August 23, 2019

Automation. It’s supposed to make work easier. So, why not help it along? Truth be told, automating even simple tasks robustly takes time and a lo...
Collapse
 
a5537 profile image
A5537

The tips are quite interesting, thank you for sharing.

Maybe it's nothing serious, but I find that the code for tip #3 Automatic File Backup has some slight issues:

  • syntax highlighting hints that there is a problem with quotes (I think that there is one extra double quote before %s in the "Successfully created..." string)

  • if I understand the intended logic right (find the first unused filename and then create a zip file with that name), the code starting with the first print statement is not supposed to be a part of the infinite loop (i.e., it should not be indented twice)

Collapse
 
dendihandian profile image
Dendi Handian

I'm struggling to deploy pyautogui script into ec2 server and trigger it with ssh. Anyone know the workaround or proof-of-concept to achieve this?