acaird / call-sched-parser

Python script to parse M's call schedules from Excel files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call Schedule Parser

My wife’s call schedule is sent out in a ridiculous Excel spreadsheet, which does no one any good.

The Python script here parses it and prints out dates and names. It has a few options which you can see with the --help option.

The current list is below, but might be out of date.

Option (short, long)DescriptionRequired
-y YEAR, –year YEARset the year for the calendar; defaults to this yearno
-m MONTH, –month MONTHset the month being parsedyes
-f FILE, –file FILEfilename of xlsx file to be readyes
-p PERSON, –person PERSONfilter results to only this personno
-s [{0,1}], –summary [{0,1}]print summary stats for number of calls; defaults to nono
-c CALENDARFILE, –calendarfile CALENDARFILEfilename of calendar (ics) file to writeno
-t TEXT, –text TEXTextra text to prepent to the iCal eventno

As an example of using the Python xlrd module, this is probably OK; as a useful script for anyone besides me, it probably isn’t OK. Why they can’t just use a Google calendar is beyond me.

This couldn’t be too much more fragile; one change in the spreadsheet by someone’s administrative assistant and the whole thing goes to bits. Much like an old car, if you can’t work on this, you probably shouldn’t be driving it.

This requires two extra packages:

About

Python script to parse M's call schedules from Excel files


Languages

Language:Python 100.0%