sparclclient 1.2.6b1__py2.py3-none-any.whl → 1.2.6b3__py2.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.
- sparcl/__init__.py +1 -1
- sparcl/client.py +9 -2
- {sparclclient-1.2.6b1.dist-info → sparclclient-1.2.6b3.dist-info}/METADATA +1 -1
- {sparclclient-1.2.6b1.dist-info → sparclclient-1.2.6b3.dist-info}/RECORD +6 -6
- {sparclclient-1.2.6b1.dist-info → sparclclient-1.2.6b3.dist-info}/LICENSE +0 -0
- {sparclclient-1.2.6b1.dist-info → sparclclient-1.2.6b3.dist-info}/WHEEL +0 -0
sparcl/__init__.py
CHANGED
sparcl/client.py
CHANGED
|
@@ -207,11 +207,17 @@ class SparclClient: # was SparclApi()
|
|
|
207
207
|
# (connect timeout, read timeout) in seconds
|
|
208
208
|
self.timeout = (self.c_timeout, self.r_timeout)
|
|
209
209
|
# @@@ read timeout should be a function of the POST payload size
|
|
210
|
-
self.announcement =
|
|
210
|
+
self.announcement = None
|
|
211
211
|
|
|
212
212
|
if verbose:
|
|
213
213
|
print(f"apiurl={self.apiurl}")
|
|
214
214
|
|
|
215
|
+
if announcement:
|
|
216
|
+
ann = f"{self.apiurl}/announcement/"
|
|
217
|
+
annstr = requests.get(ann, timeout=self.timeout).content
|
|
218
|
+
self.announcement = str(annstr)
|
|
219
|
+
print(f"announcement={self.announcement}")
|
|
220
|
+
|
|
215
221
|
# Get API Version
|
|
216
222
|
try:
|
|
217
223
|
endpoint = f"{self.apiurl}/version/"
|
|
@@ -254,7 +260,8 @@ class SparclClient: # was SparclApi()
|
|
|
254
260
|
f" client_hash={ut.githash()},"
|
|
255
261
|
f" verbose={self.verbose},"
|
|
256
262
|
f" connect_timeout={self.c_timeout},"
|
|
257
|
-
f" read_timeout={self.r_timeout})"
|
|
263
|
+
f" read_timeout={self.r_timeout}),"
|
|
264
|
+
f" announcement={self.announcement})"
|
|
258
265
|
)
|
|
259
266
|
|
|
260
267
|
def token_expired(self, renew=False):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
sparcl/Results.py,sha256=vnACjm8sp7MrsJ_5LTuKMuyRWqeBJxOxQM302cHmAlk,9159
|
|
2
|
-
sparcl/__init__.py,sha256=
|
|
3
|
-
sparcl/client.py,sha256=
|
|
2
|
+
sparcl/__init__.py,sha256=qMZRePhImxtEd3G5ujVQV83gEfZNbXBzBzTiv2aRSRQ,1124
|
|
3
|
+
sparcl/client.py,sha256=3zpQj1QOW8vVrv15BF-dE5G8M1CBiP23aqsDsfsKeYs,39114
|
|
4
4
|
sparcl/conf.py,sha256=GFNDelaiVIAkjNjvFlG7HAlPpU39nqZmTPohQGmOcgI,928
|
|
5
5
|
sparcl/exceptions.py,sha256=sznmOMGENHvxutSXlRVWqi87bR2Qiebka7LyR3mAII0,4244
|
|
6
6
|
sparcl/fields.py,sha256=NZUBqDidpbXfeX5F4b306F323xZY2CRIx8eVv-HWTVU,5127
|
|
@@ -15,7 +15,7 @@ sparcl/benchmarks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
|
15
15
|
sparcl/benchmarks/benchmarks.py,sha256=OmlSdnAPLmcvGXsr-HzGyfAAcnoqlO0JQ4EIA7JGhZc,9424
|
|
16
16
|
sparcl/benchmarks/sparcl_benchmarking.ipynb,sha256=gwof2hqM9Qb49qzRX-mky7WNqXZCMSB7ry8bX8dImxc,17559
|
|
17
17
|
sparcl/notebooks/sparcl-examples.ipynb,sha256=gEwMKI1x7A1YsVeCsQn1QoMO0ZuIhMUAu3qedTiQ7hM,169268
|
|
18
|
-
sparclclient-1.2.
|
|
19
|
-
sparclclient-1.2.
|
|
20
|
-
sparclclient-1.2.
|
|
21
|
-
sparclclient-1.2.
|
|
18
|
+
sparclclient-1.2.6b3.dist-info/LICENSE,sha256=y10EluGMCzGs9X4oYCYyix3l6u-lawB_vlGR8qe442Q,1576
|
|
19
|
+
sparclclient-1.2.6b3.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
|
|
20
|
+
sparclclient-1.2.6b3.dist-info/METADATA,sha256=cJfor5U6k-cJoe6MrEgQGRucgR27bLpKWdhOR1NdRkA,680
|
|
21
|
+
sparclclient-1.2.6b3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|