datafc 1.1.0__tar.gz → 1.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. {datafc-1.1.0 → datafc-1.2.0}/PKG-INFO +19 -4
  2. {datafc-1.1.0 → datafc-1.2.0}/README.md +18 -3
  3. {datafc-1.1.0 → datafc-1.2.0}/datafc/sofascore/fetch_match_data.py +11 -1
  4. {datafc-1.1.0 → datafc-1.2.0}/datafc.egg-info/PKG-INFO +19 -4
  5. {datafc-1.1.0 → datafc-1.2.0}/setup.py +1 -1
  6. {datafc-1.1.0 → datafc-1.2.0}/LICENSE +0 -0
  7. {datafc-1.1.0 → datafc-1.2.0}/datafc/__init__.py +0 -0
  8. {datafc-1.1.0 → datafc-1.2.0}/datafc/sofascore/__init__.py +0 -0
  9. {datafc-1.1.0 → datafc-1.2.0}/datafc/sofascore/fetch_coordinates_data.py +0 -0
  10. {datafc-1.1.0 → datafc-1.2.0}/datafc/sofascore/fetch_goal_networks_data.py +0 -0
  11. {datafc-1.1.0 → datafc-1.2.0}/datafc/sofascore/fetch_lineups_data.py +0 -0
  12. {datafc-1.1.0 → datafc-1.2.0}/datafc/sofascore/fetch_match_odds_data.py +0 -0
  13. {datafc-1.1.0 → datafc-1.2.0}/datafc/sofascore/fetch_match_stats_data.py +0 -0
  14. {datafc-1.1.0 → datafc-1.2.0}/datafc/sofascore/fetch_momentum_data.py +0 -0
  15. {datafc-1.1.0 → datafc-1.2.0}/datafc/sofascore/fetch_shots_data.py +0 -0
  16. {datafc-1.1.0 → datafc-1.2.0}/datafc/sofascore/fetch_standings_data.py +0 -0
  17. {datafc-1.1.0 → datafc-1.2.0}/datafc/sofascore/fetch_substitutions_data.py +0 -0
  18. {datafc-1.1.0 → datafc-1.2.0}/datafc/utils/__init__.py +0 -0
  19. {datafc-1.1.0 → datafc-1.2.0}/datafc/utils/_config.py +0 -0
  20. {datafc-1.1.0 → datafc-1.2.0}/datafc/utils/_save_files.py +0 -0
  21. {datafc-1.1.0 → datafc-1.2.0}/datafc/utils/_setup_webdriver.py +0 -0
  22. {datafc-1.1.0 → datafc-1.2.0}/datafc.egg-info/SOURCES.txt +0 -0
  23. {datafc-1.1.0 → datafc-1.2.0}/datafc.egg-info/dependency_links.txt +0 -0
  24. {datafc-1.1.0 → datafc-1.2.0}/datafc.egg-info/requires.txt +0 -0
  25. {datafc-1.1.0 → datafc-1.2.0}/datafc.egg-info/top_level.txt +0 -0
  26. {datafc-1.1.0 → datafc-1.2.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: datafc
3
- Version: 1.1.0
3
+ Version: 1.2.0
4
4
  Summary: A scalable Python library for fetching, processing, and exporting structured football match data.
5
5
  Home-page: https://github.com/urazakgul/datafc
6
6
  Author: Uraz Akgül
@@ -14,7 +14,7 @@ Requires-Python: >=3.8
14
14
  Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
16
 
17
- # datafc v1.1.0
17
+ # datafc v1.2.0
18
18
 
19
19
  ## Overview
20
20
 
@@ -53,7 +53,7 @@ pip install git+https://github.com/urazakgul/datafc.git
53
53
  To install a specific version of `datafc`, use:
54
54
 
55
55
  ```bash
56
- pip install datafc==1.1.0
56
+ pip install datafc==1.2.0
57
57
  ```
58
58
 
59
59
  If you already have `datafc` installed and want to upgrade to the latest version, run:
@@ -148,7 +148,7 @@ Unlike the other functions, `standings_data` does not require `match_data` or `l
148
148
 
149
149
  #### `match_data`
150
150
 
151
- The `match_data` function fetches match data for a specified tournament, season, and matchweek. It returns a DataFrame containing details such as country, tournament name, season, week number, game ID, home team, home team ID, away team, away team ID, added injury times for both halves, start timestamp, and match status.
151
+ The `match_data` function fetches match data for a specified tournament, season, and matchweek. It returns a DataFrame containing details such as country, tournament name, season, week number, game ID, home team, home team ID, away team, away team ID, added injury times for both halves, start timestamp, match status, and score-related information.
152
152
 
153
153
  Example Usage:
154
154
 
@@ -193,6 +193,16 @@ The returned DataFrame includes the following columns:
193
193
  * `injury_time_2`: Added injury time in the second half.
194
194
  * `start_timestamp`: The start time of the match.
195
195
  * `status`: The current status of the match.
196
+ * `home_score_current`: The latest recorded score for the home team.
197
+ * `home_score_display`: The displayed score of the home team.
198
+ * `home_score_period1`: The home team's score at the end of the first half.
199
+ * `home_score_period2`: The home team's goals scored in the second half.
200
+ * `home_score_normaltime`: The home team's final score at the end of normal time (90 minutes).
201
+ * `away_score_current`: The latest recorded score for the away team.
202
+ * `away_score_display`: The displayed score of the away team.
203
+ * `away_score_period1`: The away team's score at the end of the first half.
204
+ * `away_score_period2`: The away team's goals scored in the second half.
205
+ * `away_score_normaltime`: The away team's final score at the end of normal time (90 minutes).
196
206
 
197
207
  Dependencies:
198
208
 
@@ -648,10 +658,15 @@ Dependencies:
648
658
 
649
659
  ## Changelog
650
660
 
661
+ * v1.2.0
662
+ * Added match score columns to `match_data`
663
+
651
664
  * v1.1.0
652
665
  * Added 4 new columns to `match_data`
653
666
  * Added `data_source` parameter to `save_json` and `save_excel` for including the source in file names
654
667
 
668
+ * v1.0.1 (Cancelled, not used)
669
+
655
670
  * v1.0.0
656
671
  * Initial release of `datafc`
657
672
  * Fetching match data using Selenium WebDriver
@@ -1,4 +1,4 @@
1
- # datafc v1.1.0
1
+ # datafc v1.2.0
2
2
 
3
3
  ## Overview
4
4
 
@@ -37,7 +37,7 @@ pip install git+https://github.com/urazakgul/datafc.git
37
37
  To install a specific version of `datafc`, use:
38
38
 
39
39
  ```bash
40
- pip install datafc==1.1.0
40
+ pip install datafc==1.2.0
41
41
  ```
42
42
 
43
43
  If you already have `datafc` installed and want to upgrade to the latest version, run:
@@ -132,7 +132,7 @@ Unlike the other functions, `standings_data` does not require `match_data` or `l
132
132
 
133
133
  #### `match_data`
134
134
 
135
- The `match_data` function fetches match data for a specified tournament, season, and matchweek. It returns a DataFrame containing details such as country, tournament name, season, week number, game ID, home team, home team ID, away team, away team ID, added injury times for both halves, start timestamp, and match status.
135
+ The `match_data` function fetches match data for a specified tournament, season, and matchweek. It returns a DataFrame containing details such as country, tournament name, season, week number, game ID, home team, home team ID, away team, away team ID, added injury times for both halves, start timestamp, match status, and score-related information.
136
136
 
137
137
  Example Usage:
138
138
 
@@ -177,6 +177,16 @@ The returned DataFrame includes the following columns:
177
177
  * `injury_time_2`: Added injury time in the second half.
178
178
  * `start_timestamp`: The start time of the match.
179
179
  * `status`: The current status of the match.
180
+ * `home_score_current`: The latest recorded score for the home team.
181
+ * `home_score_display`: The displayed score of the home team.
182
+ * `home_score_period1`: The home team's score at the end of the first half.
183
+ * `home_score_period2`: The home team's goals scored in the second half.
184
+ * `home_score_normaltime`: The home team's final score at the end of normal time (90 minutes).
185
+ * `away_score_current`: The latest recorded score for the away team.
186
+ * `away_score_display`: The displayed score of the away team.
187
+ * `away_score_period1`: The away team's score at the end of the first half.
188
+ * `away_score_period2`: The away team's goals scored in the second half.
189
+ * `away_score_normaltime`: The away team's final score at the end of normal time (90 minutes).
180
190
 
181
191
  Dependencies:
182
192
 
@@ -632,10 +642,15 @@ Dependencies:
632
642
 
633
643
  ## Changelog
634
644
 
645
+ * v1.2.0
646
+ * Added match score columns to `match_data`
647
+
635
648
  * v1.1.0
636
649
  * Added 4 new columns to `match_data`
637
650
  * Added `data_source` parameter to `save_json` and `save_excel` for including the source in file names
638
651
 
652
+ * v1.0.1 (Cancelled, not used)
653
+
639
654
  * v1.0.0
640
655
  * Initial release of `datafc`
641
656
  * Fetching match data using Selenium WebDriver
@@ -66,7 +66,17 @@ def match_data(
66
66
  "injury_time_1": events_df["time"].apply(lambda x: x.get("injuryTime1", "")),
67
67
  "injury_time_2": events_df["time"].apply(lambda x: x.get("injuryTime2", "")),
68
68
  "start_timestamp": events_df["startTimestamp"],
69
- "status": events_df["status"].apply(lambda x: x.get("description", ""))
69
+ "status": events_df["status"].apply(lambda x: x.get("description", "")),
70
+ "home_score_current": events_df["homeScore"].apply(lambda x: x.get("current", "")),
71
+ "home_score_display": events_df["homeScore"].apply(lambda x: x.get("display", "")),
72
+ "home_score_period1": events_df["homeScore"].apply(lambda x: x.get("period1", "")),
73
+ "home_score_period2": events_df["homeScore"].apply(lambda x: x.get("period2", "")),
74
+ "home_score_normaltime": events_df["homeScore"].apply(lambda x: x.get("normaltime", "")),
75
+ "away_score_current": events_df["awayScore"].apply(lambda x: x.get("current", "")),
76
+ "away_score_display": events_df["awayScore"].apply(lambda x: x.get("display", "")),
77
+ "away_score_period1": events_df["awayScore"].apply(lambda x: x.get("period1", "")),
78
+ "away_score_period2": events_df["awayScore"].apply(lambda x: x.get("period2", "")),
79
+ "away_score_normaltime": events_df["awayScore"].apply(lambda x: x.get("normaltime", ""))
70
80
  })
71
81
 
72
82
  if enable_json_export or enable_excel_export:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: datafc
3
- Version: 1.1.0
3
+ Version: 1.2.0
4
4
  Summary: A scalable Python library for fetching, processing, and exporting structured football match data.
5
5
  Home-page: https://github.com/urazakgul/datafc
6
6
  Author: Uraz Akgül
@@ -14,7 +14,7 @@ Requires-Python: >=3.8
14
14
  Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
16
 
17
- # datafc v1.1.0
17
+ # datafc v1.2.0
18
18
 
19
19
  ## Overview
20
20
 
@@ -53,7 +53,7 @@ pip install git+https://github.com/urazakgul/datafc.git
53
53
  To install a specific version of `datafc`, use:
54
54
 
55
55
  ```bash
56
- pip install datafc==1.1.0
56
+ pip install datafc==1.2.0
57
57
  ```
58
58
 
59
59
  If you already have `datafc` installed and want to upgrade to the latest version, run:
@@ -148,7 +148,7 @@ Unlike the other functions, `standings_data` does not require `match_data` or `l
148
148
 
149
149
  #### `match_data`
150
150
 
151
- The `match_data` function fetches match data for a specified tournament, season, and matchweek. It returns a DataFrame containing details such as country, tournament name, season, week number, game ID, home team, home team ID, away team, away team ID, added injury times for both halves, start timestamp, and match status.
151
+ The `match_data` function fetches match data for a specified tournament, season, and matchweek. It returns a DataFrame containing details such as country, tournament name, season, week number, game ID, home team, home team ID, away team, away team ID, added injury times for both halves, start timestamp, match status, and score-related information.
152
152
 
153
153
  Example Usage:
154
154
 
@@ -193,6 +193,16 @@ The returned DataFrame includes the following columns:
193
193
  * `injury_time_2`: Added injury time in the second half.
194
194
  * `start_timestamp`: The start time of the match.
195
195
  * `status`: The current status of the match.
196
+ * `home_score_current`: The latest recorded score for the home team.
197
+ * `home_score_display`: The displayed score of the home team.
198
+ * `home_score_period1`: The home team's score at the end of the first half.
199
+ * `home_score_period2`: The home team's goals scored in the second half.
200
+ * `home_score_normaltime`: The home team's final score at the end of normal time (90 minutes).
201
+ * `away_score_current`: The latest recorded score for the away team.
202
+ * `away_score_display`: The displayed score of the away team.
203
+ * `away_score_period1`: The away team's score at the end of the first half.
204
+ * `away_score_period2`: The away team's goals scored in the second half.
205
+ * `away_score_normaltime`: The away team's final score at the end of normal time (90 minutes).
196
206
 
197
207
  Dependencies:
198
208
 
@@ -648,10 +658,15 @@ Dependencies:
648
658
 
649
659
  ## Changelog
650
660
 
661
+ * v1.2.0
662
+ * Added match score columns to `match_data`
663
+
651
664
  * v1.1.0
652
665
  * Added 4 new columns to `match_data`
653
666
  * Added `data_source` parameter to `save_json` and `save_excel` for including the source in file names
654
667
 
668
+ * v1.0.1 (Cancelled, not used)
669
+
655
670
  * v1.0.0
656
671
  * Initial release of `datafc`
657
672
  * Fetching match data using Selenium WebDriver
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="datafc",
8
- version="1.1.0",
8
+ version="1.2.0",
9
9
  author="Uraz Akgül",
10
10
  author_email="urazdev@gmail.com",
11
11
  description="A scalable Python library for fetching, processing, and exporting structured football match data.",
File without changes
File without changes
File without changes
File without changes
File without changes