-
Notifications
You must be signed in to change notification settings - Fork 105
/
teams.py
72 lines (70 loc) · 2.21 KB
/
teams.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# the following were created like so
# import statsapi
# teams = statsapi.get('teams', {'sportIds':1})['teams']
#
# TEAM_FULL = {t['teamName']:t['name'] for t in teams}
# TEAM_ABBR_LN = {t['name']:t['abbreviation'] for t in teams}
TEAM_FULL = {
"Athletics": "Oakland Athletics",
"Pirates": "Pittsburgh Pirates",
"Padres": "San Diego Padres",
"Mariners": "Seattle Mariners",
"Giants": "San Francisco Giants",
"Cardinals": "St. Louis Cardinals",
"Rays": "Tampa Bay Rays",
"Rangers": "Texas Rangers",
"Blue Jays": "Toronto Blue Jays",
"Twins": "Minnesota Twins",
"Phillies": "Philadelphia Phillies",
"Braves": "Atlanta Braves",
"White Sox": "Chicago White Sox",
"Marlins": "Miami Marlins",
"Yankees": "New York Yankees",
"Brewers": "Milwaukee Brewers",
"Angels": "Los Angeles Angels",
"D-backs": "Arizona Diamondbacks",
"Orioles": "Baltimore Orioles",
"Red Sox": "Boston Red Sox",
"Cubs": "Chicago Cubs",
"Reds": "Cincinnati Reds",
"Guardians": "Cleveland Guardians",
"Rockies": "Colorado Rockies",
"Tigers": "Detroit Tigers",
"Astros": "Houston Astros",
"Royals": "Kansas City Royals",
"Dodgers": "Los Angeles Dodgers",
"Nationals": "Washington Nationals",
"Mets": "New York Mets",
}
TEAM_ABBR_LN = {
"Oakland Athletics": "OAK",
"Pittsburgh Pirates": "PIT",
"San Diego Padres": "SD",
"Seattle Mariners": "SEA",
"San Francisco Giants": "SF",
"St. Louis Cardinals": "STL",
"Tampa Bay Rays": "TB",
"Texas Rangers": "TEX",
"Toronto Blue Jays": "TOR",
"Minnesota Twins": "MIN",
"Philadelphia Phillies": "PHI",
"Atlanta Braves": "ATL",
"Chicago White Sox": "CWS",
"Miami Marlins": "MIA",
"New York Yankees": "NYY",
"Milwaukee Brewers": "MIL",
"Los Angeles Angels": "LAA",
"Arizona Diamondbacks": "AZ",
"Baltimore Orioles": "BAL",
"Boston Red Sox": "BOS",
"Chicago Cubs": "CHC",
"Cincinnati Reds": "CIN",
"Cleveland Guardians": "CLE",
"Colorado Rockies": "COL",
"Detroit Tigers": "DET",
"Houston Astros": "HOU",
"Kansas City Royals": "KC",
"Los Angeles Dodgers": "LAD",
"Washington Nationals": "WSH",
"New York Mets": "NYM",
}