windborne 1.2.7__py3-none-any.whl → 1.2.8__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.
- windborne/api_request.py +4 -22
- {windborne-1.2.7.dist-info → windborne-1.2.8.dist-info}/METADATA +1 -1
- {windborne-1.2.7.dist-info → windborne-1.2.8.dist-info}/RECORD +6 -6
- {windborne-1.2.7.dist-info → windborne-1.2.8.dist-info}/WHEEL +0 -0
- {windborne-1.2.7.dist-info → windborne-1.2.8.dist-info}/entry_points.txt +0 -0
- {windborne-1.2.7.dist-info → windborne-1.2.8.dist-info}/top_level.txt +0 -0
windborne/api_request.py
CHANGED
@@ -48,14 +48,6 @@ def verify_api_credentials(client_id, api_key):
|
|
48
48
|
"For instructions, refer to https://windbornesystems.com/docs/api/cli#introduction or https://windbornesystems.com/docs/api/pip_data#introduction."
|
49
49
|
)
|
50
50
|
|
51
|
-
# Validate WB_CLIENT_ID format
|
52
|
-
if is_valid_uuid_v4(client_id):
|
53
|
-
raise NotImplementedError(
|
54
|
-
"Personal API tokens are not yet supported. "
|
55
|
-
"You will need to get a globally-authorizing API key. "
|
56
|
-
"For questions, email data@windbornesystems.com."
|
57
|
-
)
|
58
|
-
|
59
51
|
if not (is_valid_uuid_v4(client_id) or is_valid_client_id_format(client_id)):
|
60
52
|
raise ValueError(
|
61
53
|
f"Your Client ID is misformatted: {client_id}. "
|
@@ -110,20 +102,10 @@ def make_api_request(url, params=None, as_json=True, retry_counter=0):
|
|
110
102
|
|
111
103
|
client_id, api_key = get_verified_api_credentials()
|
112
104
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
signed_token = jwt.encode({
|
118
|
-
'client_id': client_id,
|
119
|
-
'iat': int(time.time()),
|
120
|
-
'token_id': token_id
|
121
|
-
}, api_key, algorithm='HS256')
|
122
|
-
else:
|
123
|
-
signed_token = jwt.encode({
|
124
|
-
'client_id': client_id,
|
125
|
-
'iat': int(time.time()),
|
126
|
-
}, api_key, algorithm='HS256')
|
105
|
+
signed_token = jwt.encode({
|
106
|
+
'client_id': client_id,
|
107
|
+
'iat': int(time.time()),
|
108
|
+
}, api_key, algorithm='HS256')
|
127
109
|
|
128
110
|
try:
|
129
111
|
if params:
|
@@ -1,13 +1,13 @@
|
|
1
1
|
windborne/__init__.py,sha256=Dx55NmJ5_PvajmNRwJoHYufeGYFK2sIDVjm1w9WZGWs,2324
|
2
|
-
windborne/api_request.py,sha256=
|
2
|
+
windborne/api_request.py,sha256=Zd5T6lumTh8mXUaPY2Mi4H3NoTK1mGGBBEyVYqc2I_k,7898
|
3
3
|
windborne/cli.py,sha256=xW5cm4wP5nnbT-nAjSrnXVlJb6E10SMveG3SWO13KtA,32138
|
4
4
|
windborne/data_api.py,sha256=sYZkcQog8RuLErfdLLa4gC8fRkAoPGNKKQJ8i6o-LTQ,33826
|
5
5
|
windborne/forecasts_api.py,sha256=Jf7F6yYHEEEIpscnWO5-zWjEtGCR3DV6kVKuEjIudLA,20696
|
6
6
|
windborne/observation_formatting.py,sha256=c739aaun6aaYhXl5VI-SRGR-TDS355_0Bfu1t6McoiM,14993
|
7
7
|
windborne/track_formatting.py,sha256=LaLfTyjpWoOtHmReJPLViY0MKm_iPL_5I2OB_lNvGGA,10054
|
8
8
|
windborne/utils.py,sha256=H8gvZ4Lrr0UmLl25iMZs6NsZliCY_73Ved_rBIqxJg4,7240
|
9
|
-
windborne-1.2.
|
10
|
-
windborne-1.2.
|
11
|
-
windborne-1.2.
|
12
|
-
windborne-1.2.
|
13
|
-
windborne-1.2.
|
9
|
+
windborne-1.2.8.dist-info/METADATA,sha256=qF-N6JHmUKoTgNG1ZMt-Lv8S56iObXu06-BeFWkHHcU,1304
|
10
|
+
windborne-1.2.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
11
|
+
windborne-1.2.8.dist-info/entry_points.txt,sha256=j_YrqdCDrCd7p5MIwQ2BYwNXEi95VNANzLRJmcXEg1U,49
|
12
|
+
windborne-1.2.8.dist-info/top_level.txt,sha256=PE9Lauriu5S5REf7JKhXprufZ_V5RiZ_TnfnrLGJrmE,10
|
13
|
+
windborne-1.2.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|