Skip to content

Commit

Permalink
Coming right along
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincrom committed Apr 12, 2021
1 parent 2e26b49 commit a8abdc2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- [Get Game generator given target directory and date range](#get-game-generator-given-target-directory-and-date-range)
- [Get raw XML files for an individual MLB game](#get-raw-xml-files-for-an-individual-mlb-game)
- [Convert XML documents into Game object](#convert-xml-documents-into-game-object)
- [Write scorecard SVGs for all MLB games on a given date](#write-scorecard-svgs-for-all-mlb-games-on-a-given-date)
- [Game Class Structure](#game-class-structure)
- [Game](#game)
- [Team](#team)
Expand Down Expand Up @@ -87,23 +88,31 @@ game_tuple_list = baseball.get_game_list_from_file_range('1-1-2017', '12-31-2017

Returns [Game](#game) object if enough information to create one is provided. Otherwise returns None.

## Write scorecard SVGs for all MLB games on a given date
* __write_games_for_date(__*this_datetime, output_dir*__)__

Writes SVG files for all games played on the given date

## Game Class Structure
#### Game
- away_batter_box_score_dict
- away_pitcher_box_score_dict
- away_team ([Team](#team))
- away_team_stats
- start_datetime
- start_str
- expected_start_datetime
- game_date_str
- home_batter_box_score_dict
- home_pitcher_box_score_dict
- home_team ([Team](#team))
- home_team_stats
- inning_list ([Inning](#inning) list)
- end_datetime
- end_str
- location
- attendance
- weather
- temp
- timezone_str
- get_svg_str()
- json()
- \_asdict()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup

setup(name='baseball',
version='9.3',
version='9.4',
description='Library to download, anaylyze, and visualize events in Major League Baseball games.',
url='https://github.com/benjamincrom/baseball',
author='Benjamin B. Crom',
Expand Down

0 comments on commit a8abdc2

Please sign in to comment.