hdpws 0.6.19__py3-none-any.whl → 0.6.23__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.
hdpws/__init__.py CHANGED
@@ -24,7 +24,7 @@
24
24
  #
25
25
  # NOSA HEADER END
26
26
  #
27
- # Copyright (c) 2023 United States Government as represented by
27
+ # Copyright (c) 2023-2024 United States Government as represented by
28
28
  # the National Aeronautics and Space Administration. No copyright is
29
29
  # claimed in the United States under Title 17, U.S.Code. All Other
30
30
  # Rights Reserved.
@@ -34,14 +34,14 @@
34
34
  Package for accessing the NASA's Heliophysics Data Portal (HDP) web
35
35
  services https://heliophysicsdata.gsfc.nasa.gov/WebServices/.
36
36
 
37
- Copyright © 2023 United States Government as represented by the
37
+ Copyright © 2023-2024 United States Government as represented by the
38
38
  National Aeronautics and Space Administration. No copyright is claimed in
39
39
  the United States under Title 17, U.S.Code. All Other Rights Reserved.
40
40
 
41
41
  """
42
42
 
43
43
 
44
- __version__ = "0.6.19"
44
+ __version__ = "0.6.23"
45
45
 
46
46
 
47
47
  #
hdpws/hdpws.py CHANGED
@@ -24,7 +24,7 @@
24
24
  #
25
25
  # NOSA HEADER END
26
26
  #
27
- # Copyright (c) 2023 United States Government as represented by
27
+ # Copyright (c) 2023-2024 United States Government as represented by
28
28
  # the National Aeronautics and Space Administration. No copyright is
29
29
  # claimed in the United States under Title 17, U.S.Code. All Other
30
30
  # Rights Reserved.
@@ -845,6 +845,44 @@ class HdpWs:
845
845
  return self.__get_complex_resource([ResourceType.DOCUMENT], query)
846
846
 
847
847
 
848
+ def get_spase_service(
849
+ self,
850
+ query: Dict
851
+ ) -> Dict:
852
+ """
853
+ Gets the specified SPASE Service documents from HDP.
854
+
855
+ Parameters
856
+ ----------
857
+ query
858
+ Dictionary containing query parameters and values. For
859
+ example,<pre>
860
+ query = {
861
+ 'ResourceID': 'spase://CCMC/Service/InstantRun',
862
+ 'Description': '"Instan-Run"'
863
+ }</pre>
864
+
865
+ Returns
866
+ -------
867
+ Dict
868
+ Dictionary containing a 'Result' key with a value of an
869
+ ElementTree representation of the results as described by
870
+ <https://heliophysicsdata.gsfc.nasa.gov/WebServices/hdpspase.xsd>
871
+ with the addition of the following key/values:<br>
872
+ - HttpStatus: with the value of the HTTP status code.
873
+ Successful == 200.<br>
874
+ When HttpStatus != 200:<br>
875
+ - HttpText: containing a string representation of the HTTP
876
+ entity body.<br>
877
+ When HttpText is a standard HDP WS error entity body the
878
+ following key/values (convenience to avoid parsing
879
+ HttpStatus):<br>
880
+ - ErrorMessage: value from HttpText.<br>
881
+ - ErrorDescription: value from HttpText.<br>
882
+ """
883
+ return self.__get_complex_resource([ResourceType.SERVICE], query)
884
+
885
+
848
886
  def get_spase_software(
849
887
  self,
850
888
  query: Dict
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hdpws
3
- Version: 0.6.19
3
+ Version: 0.6.23
4
4
  Summary: NASA's Heliophysics Data Portal Web Service Client Library
5
5
  Home-page: https://heliophysicsdata.gsfc.nasa.gov/WebServices
6
6
  Author: Bernie Harris
@@ -47,13 +47,11 @@ To run the included example, do the following
47
47
 
48
48
  ---
49
49
 
50
- The following [Jupyter notebooks](https://jupyter.org/) demonstrate
50
+ Also, the following [Jupyter notebooks](https://jupyter.org/) demonstrate
51
51
  different features of the library:
52
- 1. [Simple Query Example](https://heliophysicsdata.gsfc.nasa.gov/WebServices/jupyter/HdpWsExample.html) ([ipynb file](https://heliophysicsdata.gsfc.nasa.gov/WebServices/jupyter/HdpWsExample.ipynb))demonstrating a simple query.
53
- 2. [Example with data retrieval](https://heliophysicsdata.gsfc.nasa.gov/WebServices/jupyter/HdpWsExampleWithCdasWs.html) using [cdasws](https://pypi.org/project/cdasws/) ([ipynb file](https://heliophysicsdata.gsfc.nasa.gov/WebServices/jupyter/HdpWsExampleWithCdasWs.ipynb)).
52
+ 1. [Simple Query Example](https://heliophysicsdata.gsfc.nasa.gov/WebServices/jupyter/HdpWsExample.html) ([ipynb file](https://heliophysicsdata.gsfc.nasa.gov/WebServices/jupyter/HdpWsExample.ipynb)) demonstrating a simple query. [Launch on Binder](https://mybinder.org/v2/gh/berniegsfc/hdpws-notebooks/main?labpath=HdpWsExample.ipynb).
53
+ 2. [Example with data retrieval](https://heliophysicsdata.gsfc.nasa.gov/WebServices/jupyter/HdpWsExampleWithCdasWs.html) using [cdasws](https://pypi.org/project/cdasws/) ([ipynb file](https://heliophysicsdata.gsfc.nasa.gov/WebServices/jupyter/HdpWsExampleWithCdasWs.ipynb)). [Launch on Binder](https://mybinder.org/v2/gh/berniegsfc/hdpws-notebooks/main?labpath=HdpWsExampleWithCdasWs.ipynb).
54
54
 
55
- These notebooks will eventually be available on
56
- [Binder](https://mybinder.org/v2/gh/berniegsfc/hdpws-notebooks/main).
57
55
 
58
56
  ## Motivation
59
57
 
@@ -0,0 +1,11 @@
1
+ hdpws/__init__.py,sha256=Veis_wqirs7XpnPVRsexYfkXfijRcBx1lOP2pMn95VY,2059
2
+ hdpws/__main__.py,sha256=vumYLbz12sIRum3o6BNDw0XOzGrYMOvNCM2cufHBpb4,15241
3
+ hdpws/dateinterval.py,sha256=OwFRQUbTMyzR1R7T5gSKT2st4PbLWAwOtcsP7_PqQys,4901
4
+ hdpws/hdpws.py,sha256=EYnnCo2JtkP5GjpykxF6VGz1NmGFTVTuh3g4yjCAmqQ,40168
5
+ hdpws/resourcetype.py,sha256=ybBKFKDcVesRkRKb-mEXIxRt-INed3QZzysx1rmy6bo,1771
6
+ hdpws/spase.py,sha256=ylnH9mh1McwwyB6-LzaOOWr1ggJiuNgcEH3-6mXJjfI,13343
7
+ hdpws-0.6.23.dist-info/LICENSE,sha256=9VDxMcDDn3_T-sDQTMPxmiPZBDkPIiTO4OzYK5olDmk,12589
8
+ hdpws-0.6.23.dist-info/METADATA,sha256=JoxMo3FniBG8_t2dP8Kt21zMVsmWW330I2ILhxO_4YU,3656
9
+ hdpws-0.6.23.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
10
+ hdpws-0.6.23.dist-info/top_level.txt,sha256=BTo-2sxU1YuKAD5Ykfc8bNQvgVX486A74voiQxV4NiQ,6
11
+ hdpws-0.6.23.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- hdpws/__init__.py,sha256=rcJe6jeJ2CGqPmw28EnwV3tIol3fZpFR9kdYbOGhyvs,2049
2
- hdpws/__main__.py,sha256=vumYLbz12sIRum3o6BNDw0XOzGrYMOvNCM2cufHBpb4,15241
3
- hdpws/dateinterval.py,sha256=OwFRQUbTMyzR1R7T5gSKT2st4PbLWAwOtcsP7_PqQys,4901
4
- hdpws/hdpws.py,sha256=St93ujMetEcKv137btlsHxsSVStBqUBX67o-QmB0nAk,38772
5
- hdpws/resourcetype.py,sha256=ybBKFKDcVesRkRKb-mEXIxRt-INed3QZzysx1rmy6bo,1771
6
- hdpws/spase.py,sha256=ylnH9mh1McwwyB6-LzaOOWr1ggJiuNgcEH3-6mXJjfI,13343
7
- hdpws-0.6.19.dist-info/LICENSE,sha256=9VDxMcDDn3_T-sDQTMPxmiPZBDkPIiTO4OzYK5olDmk,12589
8
- hdpws-0.6.19.dist-info/METADATA,sha256=mi70jFs7hnVUQgBOCF2lk4u3O2HNpUCT59aCJR-sV-M,3543
9
- hdpws-0.6.19.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
10
- hdpws-0.6.19.dist-info/top_level.txt,sha256=BTo-2sxU1YuKAD5Ykfc8bNQvgVX486A74voiQxV4NiQ,6
11
- hdpws-0.6.19.dist-info/RECORD,,
File without changes