Aggregating A Python Error Summary from Log Files

Follow these steps to maintain more reliable scripts and catch more of your traceback errors: automate your scripts to run daily, weekly, monthly, etc. Log all your traceback errors with the logging module. I like dumping all of my logs into a single folder. automate aggregating the logs and parsing tracebacks start a feedback loop […]

Script Windows Like A Pro: Command Line, Batch Files, Remote Desktop Connection and pywin32

Here are a few useful corners of the vast array of Windows scripting tools. Helpful Windows Command Line Documentation Windows command line Documentation Syntax Command-line reference A-Z Command shell overview Using command redirection operators About Windows Remote Management A Few General Windows Commands Use find to look in a text file to count the lines […]

Lightning Scripts ⚡

You may or may not be familiar with PyCon‘s Lightning Talks, a session of quick hitter talks given each year on a variety of topics. These “Lightning Scripts” are ten of my favorite Python scripts that have served me well as of late to perform a variety of tasks. Highlights include the glob, os, calendar, […]

The Joy of Logging With Python

In painting and coding, there are no mistakes, only happy accidents.  Fortunately when errors happen, Python affords us its stock ‘logging‘ module, which sometimes catches flak in the community for its syntax and documentation. After poking around this module, I’ve found it quite suitable to my needs. Thanks to the logging module, I’m catching my […]

Automated Python With Windows Task Scheduler

So you want to run your Python scripts automatically, but how? I had heard of several popular scheduling libraries in Python like celery, Invoke, and schedule. One of my requirements is to run the python file “in the background”, not in command prompt or an open window. Enter Windows Task Scheduler, the de facto scheduler on […]