Baseball Files
post_season
PostSeason Schedule.
A grid of days (rows) and teams (cols) showing who is playing where.
commands:
sched - Generate PostSeason Schedule for Season
classes:
gdPostSeason - GameDay Teams PostSeason Class
functions:
dispatch (cmd, kwargs) - Module Command Dispatch
do_setup (year, forceGET) - generate post-season object for given dates
Developer@Sonnack.com
April 2012
function dispatch
function do_setup
Generate PostSeason object for given Date Range.
Writes the Schedule TAB and HTML files for the date range provided.
type gdPostSeason
GameDay PostSeason Schedule Class.
properties:
.now - Today's Date
.dts - list of dates
.schedule{} - dict of Schedule tuples
.teams{} - dict of Team tuples
methods:
.keylist() - list of keys sorted by League and Name...
.write2html(fp) - write TAB-delimited file to 'fp'
.write2html(fp, ttl) - write HTML file to 'fp'
obj[n] - get Nth day
iter(obj) - get days iterator
len(obj) - number of days in schedule
str(obj) - string: list of teams
repr(obj) - JSON-like string
Schedule tuple:
Code:(@, Win, Loss, Abbr, Name, AwayRuns, HomeRuns, Status, GID)
Team tuple:
Code:(Id, Abbr, Name, League, Divsion)