python-ballchasing 0.4.0__py3-none-any.whl → 0.4.1__py3-none-any.whl

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.
ballchasing/api.py CHANGED
@@ -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
@@ -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.
@@ -1,5 +1,5 @@
1
1
  ballchasing/__init__.py,sha256=AS4JkwcGjNkO2ojK2nrBKTIjUnOqMFS_OLGDv52d4OA,2701
2
- ballchasing/api.py,sha256=rZ1KluEI9x-pFdoW5ugsbPsfBmdzFEmy_ElQ5ulZmXw,22581
2
+ ballchasing/api.py,sha256=DRw-wwTaQhFcQM1g7LIOGsqvHVq-0cCBoQBpOtyEGcs,22631
3
3
  ballchasing/constants.py,sha256=qFnkvqSsv5kZIVg1tyOwILZhAjKcOHhKsbL61WkdXq0,12010
4
4
  ballchasing/stats_info.tsv,sha256=IBvVe0CF5HsTvNJFQlVCT4zeq-RfiKvgtro5a8KMTis,12258
5
5
  ballchasing/util.py,sha256=Zm81h_I_r6HTAcvQxawGlr8xM6Yzs28D2ZJ3pQL3p7s,3041
@@ -9,11 +9,11 @@ ballchasing/typed/deep_replay.py,sha256=ru04XRDY6zmy99DA1BbfZYMbtoFGAZj3K-ZDNEvs
9
9
  ballchasing/typed/shallow_group.py,sha256=i-WvkqkBV4WBy_UbcWoZcas0yryggzCQpU-8Qm2FL7A,453
10
10
  ballchasing/typed/shallow_replay.py,sha256=r4zfCbHTJ4lf6VNcr6FSkXY_YD9p7Z3U6e0xWlzZZ9I,1877
11
11
  ballchasing/typed/shared.py,sha256=HvJT-xer0Tipp61rdD-yM5yrnWsi-eee33YUa5zB6jE,6905
12
- python_ballchasing-0.4.0.dist-info/licenses/LICENSE,sha256=ua0R_J89EfdcyYXy_6TMz6BoSxABvyBYCfgfOKu12FE,1075
12
+ python_ballchasing-0.4.1.dist-info/licenses/LICENSE,sha256=ua0R_J89EfdcyYXy_6TMz6BoSxABvyBYCfgfOKu12FE,1075
13
13
  scripts/make_types.py,sha256=6EBF5V0Lh7bt7LTKKBWJI8jywVObpDC20-GYOOdFqFU,6588
14
14
  scripts/test.py,sha256=j_qRBqFeymHtzh75z9JQxpwJSnAwsmljSsS8b2yyu9I,2748
15
15
  scripts/test_typed.py,sha256=H32HchcYGbjJPFna5W1GEEjsH9p-bljqZlQJ3Qa1ifU,1141
16
- python_ballchasing-0.4.0.dist-info/METADATA,sha256=yuVZBQ2wVPHnt2nRrneBMoW3zxULuqM8X5gAhFadYIg,3685
17
- python_ballchasing-0.4.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- python_ballchasing-0.4.0.dist-info/top_level.txt,sha256=pb478ijCotXjUeMz_Ki1wM6oGMWOG9ejH9m6LfoweJE,20
19
- python_ballchasing-0.4.0.dist-info/RECORD,,
16
+ python_ballchasing-0.4.1.dist-info/METADATA,sha256=iF5ZqLdLskF-uoV4ptiAOkVlS49BEJLF9vsiVFGhIUw,3689
17
+ python_ballchasing-0.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
+ python_ballchasing-0.4.1.dist-info/top_level.txt,sha256=pb478ijCotXjUeMz_Ki1wM6oGMWOG9ejH9m6LfoweJE,20
19
+ python_ballchasing-0.4.1.dist-info/RECORD,,