sparclclient 1.2.5b2__py2.py3-none-any.whl → 1.2.6b1__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 CHANGED
@@ -34,4 +34,5 @@ __all__ = ["client", "align_records"]
34
34
  #__version__ = "1.2.2"
35
35
  #__version__ = "1.2.3"
36
36
  #__version__ = "1.2.4"
37
- __version__ = "1.2.5b2"
37
+ #__version__ = "1.2.5"
38
+ __version__ = "1.2.6b1"
sparcl/client.py CHANGED
@@ -159,6 +159,9 @@ class SparclClient: # was SparclApi()
159
159
  wait for server to send a response. Generally time to
160
160
  wait for first byte. Defaults to 5400.
161
161
 
162
+ announcement (:obj:`bool`, optional): SPARCL announcements.
163
+ Defaults to True.
164
+
162
165
  Example:
163
166
  >>> client = SparclClient()
164
167
 
@@ -179,6 +182,7 @@ class SparclClient: # was SparclApi()
179
182
  show_curl=False,
180
183
  connect_timeout=1.1, # seconds
181
184
  read_timeout=90 * 60, # seconds
185
+ announcement=True,
182
186
  ):
183
187
  """Create client instance."""
184
188
  session = requests.Session()
@@ -203,6 +207,7 @@ class SparclClient: # was SparclApi()
203
207
  # (connect timeout, read timeout) in seconds
204
208
  self.timeout = (self.c_timeout, self.r_timeout)
205
209
  # @@@ read timeout should be a function of the POST payload size
210
+ self.announcement = f"{self.rooturl}/sparc/announcement/"
206
211
 
207
212
  if verbose:
208
213
  print(f"apiurl={self.apiurl}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: sparclclient
3
- Version: 1.2.5b2
3
+ Version: 1.2.6b1
4
4
  Summary: A client for getting spectra and meta-data from NOIRLab.
5
5
  Author-email: "S. Pothier" <datalab-spectro@noirlab.edu>
6
6
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  sparcl/Results.py,sha256=vnACjm8sp7MrsJ_5LTuKMuyRWqeBJxOxQM302cHmAlk,9159
2
- sparcl/__init__.py,sha256=C426jTa0lmCTq7oopehH3ZLsGCJ9jKvvHWY9SgDDoVU,1101
3
- sparcl/client.py,sha256=rIh0V7bp7Sv9JKwyEXgaaqLyV81ij4qHrWJ3xDPxkBA,38661
2
+ sparcl/__init__.py,sha256=lMHtynz3bejNYSIyc_EAcrwae8CIPWDZXyGPRDqPwuw,1124
3
+ sparcl/client.py,sha256=HwU_32XVM9qZ_j2rkRHRU7ojc6HqLtUHhcbWTPHoOTo,38853
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.5b2.dist-info/LICENSE,sha256=y10EluGMCzGs9X4oYCYyix3l6u-lawB_vlGR8qe442Q,1576
19
- sparclclient-1.2.5b2.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
20
- sparclclient-1.2.5b2.dist-info/METADATA,sha256=4bHl4xRroNz_uqaxNh9-bA0AjEZ89T-LVd7Cwqxh7e0,680
21
- sparclclient-1.2.5b2.dist-info/RECORD,,
18
+ sparclclient-1.2.6b1.dist-info/LICENSE,sha256=y10EluGMCzGs9X4oYCYyix3l6u-lawB_vlGR8qe442Q,1576
19
+ sparclclient-1.2.6b1.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
20
+ sparclclient-1.2.6b1.dist-info/METADATA,sha256=FRg5qxcn8DuR0-wtR-t8IYIrogLsaiOAYpGehOfkWKo,680
21
+ sparclclient-1.2.6b1.dist-info/RECORD,,