sparclclient 1.2.1.dev7__py2.py3-none-any.whl → 1.2.2__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/utils.py CHANGED
@@ -4,6 +4,7 @@ import time
4
4
  import socket
5
5
  import itertools
6
6
  import json
7
+ import subprocess
7
8
 
8
9
  # External packages
9
10
  # none
@@ -195,3 +196,15 @@ def curl_find_str(sspec, server, qstr=None):
195
196
  curlpost2 = f"-d '{json.dumps(sspec)}' '{url}'"
196
197
  curlpost3 = " | python3 -m json.tool"
197
198
  return curlpost1 + curlpost2 + curlpost3
199
+
200
+
201
+ def githash(verbose=False):
202
+ try:
203
+ # "/usr/bin/git"
204
+ ret = subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True)
205
+ commit_hash = ret.stdout.decode().strip()
206
+ except Exception as err:
207
+ if verbose:
208
+ print(err)
209
+ commit_hash = "<NA>"
210
+ return commit_hash
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sparclclient
3
- Version: 1.2.1.dev7
3
+ Version: 1.2.2
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
@@ -10,5 +10,5 @@ Project-URL: Documentation, https://sparclclient.readthedocs.io/en/latest/
10
10
  Project-URL: Homepage, https://github.com/pypa/sparclclient
11
11
 
12
12
  # sparclclient
13
- Python Client for SPARC (SPectra Analysis and Retrievable Catalog Lab)
13
+ Python Client for SPARCL (SPectra Analysis and Retrievable Catalog Lab)
14
14
 
@@ -0,0 +1,19 @@
1
+ sparcl/Results.py,sha256=YFh7HmiAfjxQv1y55OHhXsJbpKBh7mn92zPJZ56gJxw,8477
2
+ sparcl/__init__.py,sha256=XPUf2qg5Gmv12dFBk1oQLj6eGRY7CLrfK_WXrZf8WA0,1030
3
+ sparcl/client.py,sha256=aPQMozJ0ufcGCt2Z5jGY6NAXWLuVUFLh4BJyCViW5vs,36169
4
+ sparcl/conf.py,sha256=GFNDelaiVIAkjNjvFlG7HAlPpU39nqZmTPohQGmOcgI,928
5
+ sparcl/exceptions.py,sha256=ODtoGCi1HI4xwXBbbLT-gQqd9Jjb_8TmVj-Jz_b1tg4,4040
6
+ sparcl/fields.py,sha256=NZUBqDidpbXfeX5F4b306F323xZY2CRIx8eVv-HWTVU,5127
7
+ sparcl/gather_2d.py,sha256=r_ZXinXlr3bOOwHrNBSWvtKC4-Dohv4nYA3iEiT1_G8,8686
8
+ sparcl/resample_spectra.py,sha256=Z_Lkoq4LapaIQp7tqZ88LayRLE8o9c832Icc0jSr5ok,1282
9
+ sparcl/sparc.ini,sha256=q_wjo9DLnCYRxWFMl0CtMYp4DD1AXfEcK6BP6cmncwo,329
10
+ sparcl/type_conversion.py,sha256=QmXNX9j_7QHnBu83f2ZBfREoql9wuo98ZbhQtSjRRWc,12965
11
+ sparcl/unsupported.py,sha256=bfkkZa-PuqwN-Bqo3vCIrLupbWMDTCiTHPMNfXnqmMc,1848
12
+ sparcl/utils.py,sha256=pDAk9roe7ezfVohnKcLMxFjjXHkp7EQLbgVNe5sSTrk,6259
13
+ sparcl/benchmarks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
+ sparcl/benchmarks/benchmarks.py,sha256=OmlSdnAPLmcvGXsr-HzGyfAAcnoqlO0JQ4EIA7JGhZc,9424
15
+ sparcl/notebooks/sparcl-examples.ipynb,sha256=gEwMKI1x7A1YsVeCsQn1QoMO0ZuIhMUAu3qedTiQ7hM,169268
16
+ sparclclient-1.2.2.dist-info/LICENSE,sha256=y10EluGMCzGs9X4oYCYyix3l6u-lawB_vlGR8qe442Q,1576
17
+ sparclclient-1.2.2.dist-info/WHEEL,sha256=Sgu64hAMa6g5FdzHxXv9Xdse9yxpGGMeagVtPMWpJQY,99
18
+ sparclclient-1.2.2.dist-info/METADATA,sha256=xVwcd6Afp5xmOz0-kEwhmyDP7B9vAm0w02-K9lMcHJ4,564
19
+ sparclclient-1.2.2.dist-info/RECORD,,
@@ -1,19 +0,0 @@
1
- sparcl/Results.py,sha256=atkVGKfoTbEEfWF5iARhodjlK1rfXQjBv5o9IEZteRc,8078
2
- sparcl/__init__.py,sha256=UyeAwijmVjaIYOxVQQ8FXVL0BudvvfBkrn7lOHqDTwk,1175
3
- sparcl/client.py,sha256=eyXI44aW6IP56x3QjTnhN9HTNEt4FVrhy666NFl8rmM,32024
4
- sparcl/conf.py,sha256=GFNDelaiVIAkjNjvFlG7HAlPpU39nqZmTPohQGmOcgI,928
5
- sparcl/exceptions.py,sha256=QfK3aTl1HTQmbhUCRfW9eo-rzEA1yUawKGtv_ca4nvY,3801
6
- sparcl/fields.py,sha256=Oef3KNmWqsqi8BPXuQA7EazLtwgfkqprbrPxev8sCio,5126
7
- sparcl/gather_2d.py,sha256=mTM9YhsGf2CMOQ-CE4-JcAs1PhA0mVKlciy9dKnp67o,8685
8
- sparcl/resample_spectra.py,sha256=Z_Lkoq4LapaIQp7tqZ88LayRLE8o9c832Icc0jSr5ok,1282
9
- sparcl/sparc.ini,sha256=q_wjo9DLnCYRxWFMl0CtMYp4DD1AXfEcK6BP6cmncwo,329
10
- sparcl/type_conversion.py,sha256=QmXNX9j_7QHnBu83f2ZBfREoql9wuo98ZbhQtSjRRWc,12965
11
- sparcl/unsupported.py,sha256=bfkkZa-PuqwN-Bqo3vCIrLupbWMDTCiTHPMNfXnqmMc,1848
12
- sparcl/utils.py,sha256=bEfX9PbMcxMbQuOPOV-ZTHO5NhR9OLs1rhuUi8ZS4zw,5922
13
- sparcl/benchmarks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- sparcl/benchmarks/benchmarks.py,sha256=OmlSdnAPLmcvGXsr-HzGyfAAcnoqlO0JQ4EIA7JGhZc,9424
15
- sparcl/notebooks/sparcl-examples.ipynb,sha256=yero5ITtq11FCy5it_kwgjSl49806I6QZrchpnnRjq0,257188
16
- sparclclient-1.2.1.dev7.dist-info/LICENSE,sha256=y10EluGMCzGs9X4oYCYyix3l6u-lawB_vlGR8qe442Q,1576
17
- sparclclient-1.2.1.dev7.dist-info/WHEEL,sha256=Sgu64hAMa6g5FdzHxXv9Xdse9yxpGGMeagVtPMWpJQY,99
18
- sparclclient-1.2.1.dev7.dist-info/METADATA,sha256=B0wcpOT-A2jCtMgo9FP0R0Us8EGiUqXyb98vbjb2IIk,568
19
- sparclclient-1.2.1.dev7.dist-info/RECORD,,