python-ballchasing 0.4.0__tar.gz → 0.4.1__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 (24) hide show
  1. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/PKG-INFO +2 -1
  2. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/README.md +2 -1
  3. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/ballchasing/api.py +2 -0
  4. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/pyproject.toml +1 -1
  5. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/python_ballchasing.egg-info/PKG-INFO +2 -1
  6. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/LICENSE +0 -0
  7. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/ballchasing/__init__.py +0 -0
  8. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/ballchasing/constants.py +0 -0
  9. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/ballchasing/stats_info.tsv +0 -0
  10. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/ballchasing/typed/__init__.py +0 -0
  11. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/ballchasing/typed/deep_group.py +0 -0
  12. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/ballchasing/typed/deep_replay.py +0 -0
  13. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/ballchasing/typed/shallow_group.py +0 -0
  14. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/ballchasing/typed/shallow_replay.py +0 -0
  15. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/ballchasing/typed/shared.py +0 -0
  16. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/ballchasing/util.py +0 -0
  17. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/python_ballchasing.egg-info/SOURCES.txt +0 -0
  18. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/python_ballchasing.egg-info/dependency_links.txt +0 -0
  19. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/python_ballchasing.egg-info/requires.txt +0 -0
  20. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/python_ballchasing.egg-info/top_level.txt +0 -0
  21. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/scripts/make_types.py +0 -0
  22. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/scripts/test.py +0 -0
  23. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/scripts/test_typed.py +0 -0
  24. {python_ballchasing-0.4.0 → python_ballchasing-0.4.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-ballchasing
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: A Python wrapper around the Ballchasing API
5
5
  Author-email: Rolv-Arild Braaten <rolv_arild@hotmail.com>
6
6
  License: MIT License
@@ -91,6 +91,7 @@ for group in groups:
91
91
  api.download_replay(replay_id=replay["id"], folder="/path/to/destination/") # You could also download like this
92
92
  ```
93
93
 
94
+ ---
94
95
  Additionally, there's the option to put responses (replays, groups) into typed objects for better type hinting and validation.
95
96
  It also attempts to fill in missing variables not returned by ballchasing (e.g. if a team has 0 goals they won't have a "goal" entry in the response)
96
97
  The classes can also be found under the `typing` folder and used as a reference for what the API returns.
@@ -74,6 +74,7 @@ for group in groups:
74
74
  api.download_replay(replay_id=replay["id"], folder="/path/to/destination/") # You could also download like this
75
75
  ```
76
76
 
77
+ ---
77
78
  Additionally, there's the option to put responses (replays, groups) into typed objects for better type hinting and validation.
78
79
  It also attempts to fill in missing variables not returned by ballchasing (e.g. if a team has 0 goals they won't have a "goal" entry in the response)
79
80
  The classes can also be found under the `typing` folder and used as a reference for what the API returns.
@@ -88,4 +89,4 @@ print(replay.blue.players[0].name) # Example of easy attribute access
88
89
 
89
90
  group = api.get_group("g2-vs-bds-hwbf2eyolb", typed=True)
90
91
  print(group.players[0].name)
91
- ```
92
+ ```
@@ -155,6 +155,8 @@ class BallchasingApi:
155
155
  # Gateway Timeout, retry
156
156
  time.sleep(5)
157
157
  continue
158
+ else:
159
+ raise e
158
160
 
159
161
  batch = d["list"][:request_count]
160
162
  yield from batch
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python-ballchasing"
7
- version = "0.4.0"
7
+ version = "0.4.1"
8
8
  authors = [
9
9
  { name = "Rolv-Arild Braaten", email = "rolv_arild@hotmail.com" },
10
10
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-ballchasing
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: A Python wrapper around the Ballchasing API
5
5
  Author-email: Rolv-Arild Braaten <rolv_arild@hotmail.com>
6
6
  License: MIT License
@@ -91,6 +91,7 @@ for group in groups:
91
91
  api.download_replay(replay_id=replay["id"], folder="/path/to/destination/") # You could also download like this
92
92
  ```
93
93
 
94
+ ---
94
95
  Additionally, there's the option to put responses (replays, groups) into typed objects for better type hinting and validation.
95
96
  It also attempts to fill in missing variables not returned by ballchasing (e.g. if a team has 0 goals they won't have a "goal" entry in the response)
96
97
  The classes can also be found under the `typing` folder and used as a reference for what the API returns.