zpdatafetch 2.2.0__tar.gz → 2.2.2__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.
- {zpdatafetch-2.2.0/src/zpdatafetch.egg-info → zpdatafetch-2.2.2}/PKG-INFO +2 -2
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/README.md +1 -1
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/pyproject.toml +1 -1
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zdatafetch/activity.py +2 -2
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zdatafetch/followers.py +2 -2
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zdatafetch/profile.py +2 -2
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zdatafetch/rideons.py +3 -3
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zdatafetch/ridersinworld.py +2 -2
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zdatafetch/worlds.py +1 -1
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2/src/zpdatafetch.egg-info}/PKG-INFO +2 -2
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/LICENSE +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/setup.cfg +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/shared/__init__.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/shared/cli.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/shared/config.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/shared/error_helpers.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/shared/exceptions.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/shared/http_client.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/shared/json_helpers.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/shared/logging.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/shared/validation.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zdatafetch/__init__.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zdatafetch/auth.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zdatafetch/cli.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zdatafetch/config.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zdatafetch/logging_config.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/__init__.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/async_zp.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/cli.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/config.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/logging_config.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zp.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zp_obj.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zp_utils.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zpcyclist.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zpcyclistfetch.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zpleague.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zpleaguefetch.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zpprime.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zpprimesfetch.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zpracefinish.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zpracelog.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zpraceresult.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zpracesignup.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zpracesprint.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zpresultfetch.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zpsignupfetch.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zpsprintsfetch.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zpteam.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch/zpteamfetch.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch.egg-info/SOURCES.txt +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch.egg-info/dependency_links.txt +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch.egg-info/entry_points.txt +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch.egg-info/requires.txt +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zpdatafetch.egg-info/top_level.txt +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zrdatafetch/__init__.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zrdatafetch/async_zr.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zrdatafetch/cli.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zrdatafetch/config.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zrdatafetch/logging_config.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zrdatafetch/rate_limiter.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zrdatafetch/zr.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zrdatafetch/zr_utils.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zrdatafetch/zrraceresult.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zrdatafetch/zrresultfetch.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zrdatafetch/zrrider.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zrdatafetch/zrriderfetch.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zrdatafetch/zrteamfetch.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zrdatafetch/zrteamroster.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zsdatafetch/__init__.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zsdatafetch/async_zs.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zsdatafetch/cli.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zsdatafetch/logging_config.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zsdatafetch/models/__init__.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zsdatafetch/models/component.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zsdatafetch/models/incident.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zsdatafetch/models/maintenance.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zsdatafetch/models/page.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zsdatafetch/models/status.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zsdatafetch/models/summary.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zsdatafetch/zs.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zsdatafetch/zsincidentfetch.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zsdatafetch/zsmaintenancefetch.py +0 -0
- {zpdatafetch-2.2.0 → zpdatafetch-2.2.2}/src/zsdatafetch/zssummaryfetch.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: zpdatafetch
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.2
|
|
4
4
|
Summary: A package for fetching data from Zwiftpower and Zwiftracing.app
|
|
5
5
|
Author-email: Doug Morris <doug@mhost.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -24,7 +24,7 @@ Provides-Extra: trio
|
|
|
24
24
|
Requires-Dist: trio>=0.26.0; extra == "trio"
|
|
25
25
|
Dynamic: license-file
|
|
26
26
|
|
|
27
|
-
# zpdatafetch, zrdatafetch & zsdatafetch
|
|
27
|
+
# zdatafetch, zpdatafetch, zrdatafetch, & zsdatafetch
|
|
28
28
|
|
|
29
29
|
A python library and command-line tool for fetching data from ZwiftPower.com, Zwiftracing.app, and Zwift Status APIs.
|
|
30
30
|
|
|
@@ -99,7 +99,7 @@ class ZwiftActivity:
|
|
|
99
99
|
auth = ZwiftAuth(config.username, config.password)
|
|
100
100
|
auth.login()
|
|
101
101
|
token = auth.get_access_token()
|
|
102
|
-
headers = {'Authorization': f'Bearer {token}'}
|
|
102
|
+
headers = {'Authorization': f'Bearer {token}', 'Accept': 'application/json'}
|
|
103
103
|
|
|
104
104
|
# Fetch data
|
|
105
105
|
self.rider_id = rider_id
|
|
@@ -184,7 +184,7 @@ class ZwiftActivity:
|
|
|
184
184
|
auth = ZwiftAuth(config.username, config.password)
|
|
185
185
|
auth.login()
|
|
186
186
|
token = auth.get_access_token()
|
|
187
|
-
headers = {'Authorization': f'Bearer {token}'}
|
|
187
|
+
headers = {'Authorization': f'Bearer {token}', 'Accept': 'application/json'}
|
|
188
188
|
|
|
189
189
|
# Fetch all activities
|
|
190
190
|
results = {}
|
|
@@ -105,7 +105,7 @@ class ZwiftFollowers:
|
|
|
105
105
|
auth = ZwiftAuth(config.username, config.password)
|
|
106
106
|
auth.login()
|
|
107
107
|
token = auth.get_access_token()
|
|
108
|
-
headers = {'Authorization': f'Bearer {token}'}
|
|
108
|
+
headers = {'Authorization': f'Bearer {token}', 'Accept': 'application/json'}
|
|
109
109
|
|
|
110
110
|
# Fetch data
|
|
111
111
|
self.rider_id = rider_id
|
|
@@ -214,7 +214,7 @@ class ZwiftFollowers:
|
|
|
214
214
|
auth = ZwiftAuth(config.username, config.password)
|
|
215
215
|
auth.login()
|
|
216
216
|
token = auth.get_access_token()
|
|
217
|
-
headers = {'Authorization': f'Bearer {token}'}
|
|
217
|
+
headers = {'Authorization': f'Bearer {token}', 'Accept': 'application/json'}
|
|
218
218
|
|
|
219
219
|
# Fetch all follower data
|
|
220
220
|
results = {}
|
|
@@ -196,7 +196,7 @@ class ZwiftProfile:
|
|
|
196
196
|
# Fetch data
|
|
197
197
|
url = f'{self.BASE_URL}/api/profiles/{rider_id}'
|
|
198
198
|
token = auth.get_access_token()
|
|
199
|
-
headers = {'Authorization': f'Bearer {token}'}
|
|
199
|
+
headers = {'Authorization': f'Bearer {token}', 'Accept': 'application/json'}
|
|
200
200
|
|
|
201
201
|
try:
|
|
202
202
|
with httpx.Client() as client:
|
|
@@ -264,7 +264,7 @@ class ZwiftProfile:
|
|
|
264
264
|
auth = ZwiftAuth(config.username, config.password)
|
|
265
265
|
auth.login()
|
|
266
266
|
token = auth.get_access_token()
|
|
267
|
-
headers = {'Authorization': f'Bearer {token}'}
|
|
267
|
+
headers = {'Authorization': f'Bearer {token}', 'Accept': 'application/json'}
|
|
268
268
|
|
|
269
269
|
# Fetch all profiles
|
|
270
270
|
results = {}
|
|
@@ -100,7 +100,7 @@ class ZwiftRideOns:
|
|
|
100
100
|
auth = ZwiftAuth(config.username, config.password)
|
|
101
101
|
auth.login()
|
|
102
102
|
token = auth.get_access_token()
|
|
103
|
-
headers = {'Authorization': f'Bearer {token}'}
|
|
103
|
+
headers = {'Authorization': f'Bearer {token}', 'Accept': 'application/json'}
|
|
104
104
|
|
|
105
105
|
# Fetch data
|
|
106
106
|
self.rider_id = rider_id
|
|
@@ -183,7 +183,7 @@ class ZwiftRideOns:
|
|
|
183
183
|
auth = ZwiftAuth(config.username, config.password)
|
|
184
184
|
auth.login()
|
|
185
185
|
token = auth.get_access_token()
|
|
186
|
-
headers = {'Authorization': f'Bearer {token}'}
|
|
186
|
+
headers = {'Authorization': f'Bearer {token}', 'Accept': 'application/json'}
|
|
187
187
|
|
|
188
188
|
# Fetch all RideOns
|
|
189
189
|
results = {}
|
|
@@ -255,7 +255,7 @@ class ZwiftRideOns:
|
|
|
255
255
|
auth = ZwiftAuth(config.username, config.password)
|
|
256
256
|
auth.login()
|
|
257
257
|
token = auth.get_access_token()
|
|
258
|
-
headers = {'Authorization': f'Bearer {token}'}
|
|
258
|
+
headers = {'Authorization': f'Bearer {token}', 'Accept': 'application/json'}
|
|
259
259
|
|
|
260
260
|
# POST RideOn
|
|
261
261
|
url = f'{ZwiftRideOns.BASE_URL}/api/profiles/{rider_id}/activities/{activity_id}/rideon'
|
|
@@ -91,7 +91,7 @@ class ZwiftRidersInWorld:
|
|
|
91
91
|
auth = ZwiftAuth(config.username, config.password)
|
|
92
92
|
auth.login()
|
|
93
93
|
token = auth.get_access_token()
|
|
94
|
-
headers = {'Authorization': f'Bearer {token}'}
|
|
94
|
+
headers = {'Authorization': f'Bearer {token}', 'Accept': 'application/json'}
|
|
95
95
|
|
|
96
96
|
# Fetch data
|
|
97
97
|
self.world_id = world_id
|
|
@@ -191,7 +191,7 @@ class ZwiftRidersInWorld:
|
|
|
191
191
|
auth = ZwiftAuth(config.username, config.password)
|
|
192
192
|
auth.login()
|
|
193
193
|
token = auth.get_access_token()
|
|
194
|
-
headers = {'Authorization': f'Bearer {token}'}
|
|
194
|
+
headers = {'Authorization': f'Bearer {token}', 'Accept': 'application/json'}
|
|
195
195
|
|
|
196
196
|
# Fetch all riders
|
|
197
197
|
results = {}
|
|
@@ -123,7 +123,7 @@ class ZwiftWorlds:
|
|
|
123
123
|
auth = ZwiftAuth(config.username, config.password)
|
|
124
124
|
auth.login()
|
|
125
125
|
token = auth.get_access_token()
|
|
126
|
-
headers = {'Authorization': f'Bearer {token}'}
|
|
126
|
+
headers = {'Authorization': f'Bearer {token}', 'Accept': 'application/json'}
|
|
127
127
|
|
|
128
128
|
# Fetch data
|
|
129
129
|
url = f'{self.BASE_URL}/relay/worlds'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: zpdatafetch
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.2
|
|
4
4
|
Summary: A package for fetching data from Zwiftpower and Zwiftracing.app
|
|
5
5
|
Author-email: Doug Morris <doug@mhost.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -24,7 +24,7 @@ Provides-Extra: trio
|
|
|
24
24
|
Requires-Dist: trio>=0.26.0; extra == "trio"
|
|
25
25
|
Dynamic: license-file
|
|
26
26
|
|
|
27
|
-
# zpdatafetch, zrdatafetch & zsdatafetch
|
|
27
|
+
# zdatafetch, zpdatafetch, zrdatafetch, & zsdatafetch
|
|
28
28
|
|
|
29
29
|
A python library and command-line tool for fetching data from ZwiftPower.com, Zwiftracing.app, and Zwift Status APIs.
|
|
30
30
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|