harmony-py 1.3.2__tar.gz → 1.3.4__tar.gz

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.
Files changed (26) hide show
  1. {harmony_py-1.3.2/harmony_py.egg-info → harmony_py-1.3.4}/PKG-INFO +14 -2
  2. {harmony_py-1.3.2 → harmony_py-1.3.4}/README.md +12 -0
  3. {harmony_py-1.3.2 → harmony_py-1.3.4}/harmony/__init__.py +1 -1
  4. {harmony_py-1.3.2 → harmony_py-1.3.4}/harmony/client.py +0 -1
  5. {harmony_py-1.3.2 → harmony_py-1.3.4}/harmony/request.py +2 -0
  6. {harmony_py-1.3.2 → harmony_py-1.3.4/harmony_py.egg-info}/PKG-INFO +14 -2
  7. {harmony_py-1.3.2 → harmony_py-1.3.4}/harmony_py.egg-info/requires.txt +1 -1
  8. {harmony_py-1.3.2 → harmony_py-1.3.4}/pyproject.toml +1 -1
  9. {harmony_py-1.3.2 → harmony_py-1.3.4}/tests/test_request.py +18 -0
  10. {harmony_py-1.3.2 → harmony_py-1.3.4}/CONTRIBUTING.md +0 -0
  11. {harmony_py-1.3.2 → harmony_py-1.3.4}/LICENSE +0 -0
  12. {harmony_py-1.3.2 → harmony_py-1.3.4}/MANIFEST.in +0 -0
  13. {harmony_py-1.3.2 → harmony_py-1.3.4}/design/checkpoint_01/harmony_py_mock.py +0 -0
  14. {harmony_py-1.3.2 → harmony_py-1.3.4}/examples/helper.py +0 -0
  15. {harmony_py-1.3.2 → harmony_py-1.3.4}/harmony/auth.py +0 -0
  16. {harmony_py-1.3.2 → harmony_py-1.3.4}/harmony/config.py +0 -0
  17. {harmony_py-1.3.2 → harmony_py-1.3.4}/harmony/util.py +0 -0
  18. {harmony_py-1.3.2 → harmony_py-1.3.4}/harmony_py.egg-info/SOURCES.txt +0 -0
  19. {harmony_py-1.3.2 → harmony_py-1.3.4}/harmony_py.egg-info/dependency_links.txt +0 -0
  20. {harmony_py-1.3.2 → harmony_py-1.3.4}/harmony_py.egg-info/top_level.txt +0 -0
  21. {harmony_py-1.3.2 → harmony_py-1.3.4}/internal/genparams.py +0 -0
  22. {harmony_py-1.3.2 → harmony_py-1.3.4}/setup.cfg +0 -0
  23. {harmony_py-1.3.2 → harmony_py-1.3.4}/tests/test_auth.py +0 -0
  24. {harmony_py-1.3.2 → harmony_py-1.3.4}/tests/test_client.py +0 -0
  25. {harmony_py-1.3.2 → harmony_py-1.3.4}/tests/test_config.py +0 -0
  26. {harmony_py-1.3.2 → harmony_py-1.3.4}/tests/test_util.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: harmony-py
3
- Version: 1.3.2
3
+ Version: 1.3.4
4
4
  Summary: Python library for integrating with NASA's Harmony Services.
5
5
  Author-email: NASA EOSDIS Harmony Team <christopher.d.durbin@nasa.gov>
6
6
  License: Copyright © 2019-2021 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved.
@@ -86,7 +86,7 @@ Requires-Dist: progressbar2~=4.2.0
86
86
  Requires-Dist: requests~=2.32.3
87
87
  Requires-Dist: sphinxcontrib-napoleon~=0.7
88
88
  Requires-Dist: curlify~=2.2.1
89
- Requires-Dist: shapely~=2.0.4
89
+ Requires-Dist: shapely<3,>=2.0.4
90
90
  Provides-Extra: dev
91
91
  Requires-Dist: coverage~=7.4; extra == "dev"
92
92
  Requires-Dist: flake8~=7.1.1; extra == "dev"
@@ -130,6 +130,10 @@ Harmony-Py provides a Python alternative to directly using [Harmony's OGC Covera
130
130
 
131
131
  We welcome feedback on Harmony-Py via [GitHub Issues](https://github.com/nasa/harmony-py/issues)
132
132
 
133
+ ## Documentation
134
+
135
+ **[View the full API documentation on ReadTheDocs →](https://harmony-py.readthedocs.io/en/latest/)**
136
+
133
137
  # Using Harmony Py
134
138
 
135
139
  ## Prerequisites
@@ -145,6 +149,14 @@ The library is available from [PyPI](https://pypi.org/project/harmony-py/) and c
145
149
 
146
150
  This will install harmony-py and its dependencies into your current Python environment. It's recommended that you install harmony-py into a virtual environment along with any other dependencies you may have.
147
151
 
152
+ ## Examples & Tutorials
153
+
154
+ Looking for examples of harmony-py in action? Check out these resources:
155
+
156
+ * **[Example Jupyter Notebooks](https://github.com/nasa/harmony-py/tree/main/examples)** - In this repository, see the `examples/` directory for hands-on tutorials
157
+ * **[TEMPO Atmospheric Data Tutorial](https://nasa.github.io/ASDC_Data_and_User_Services/TEMPO/how_to_examine_TEMPO_data_using_harmony-py.html)** - Learn how to access and analyze TEMPO data from NASA's ASDC using harmony-py
158
+ * **[Subsetting NASA Earthdata Using Harmony](https://nasa-openscapes.github.io/earthdata-cloud-cookbook/tutorials/Harmony.html)** - Tutorial on requesting spatial and temporal subsets of ICESat-2 data using harmony-py
159
+
148
160
 
149
161
  # Running Examples & Developing on Harmony Py
150
162
 
@@ -8,6 +8,10 @@ Harmony-Py provides a Python alternative to directly using [Harmony's OGC Covera
8
8
 
9
9
  We welcome feedback on Harmony-Py via [GitHub Issues](https://github.com/nasa/harmony-py/issues)
10
10
 
11
+ ## Documentation
12
+
13
+ **[View the full API documentation on ReadTheDocs →](https://harmony-py.readthedocs.io/en/latest/)**
14
+
11
15
  # Using Harmony Py
12
16
 
13
17
  ## Prerequisites
@@ -23,6 +27,14 @@ The library is available from [PyPI](https://pypi.org/project/harmony-py/) and c
23
27
 
24
28
  This will install harmony-py and its dependencies into your current Python environment. It's recommended that you install harmony-py into a virtual environment along with any other dependencies you may have.
25
29
 
30
+ ## Examples & Tutorials
31
+
32
+ Looking for examples of harmony-py in action? Check out these resources:
33
+
34
+ * **[Example Jupyter Notebooks](https://github.com/nasa/harmony-py/tree/main/examples)** - In this repository, see the `examples/` directory for hands-on tutorials
35
+ * **[TEMPO Atmospheric Data Tutorial](https://nasa.github.io/ASDC_Data_and_User_Services/TEMPO/how_to_examine_TEMPO_data_using_harmony-py.html)** - Learn how to access and analyze TEMPO data from NASA's ASDC using harmony-py
36
+ * **[Subsetting NASA Earthdata Using Harmony](https://nasa-openscapes.github.io/earthdata-cloud-cookbook/tutorials/Harmony.html)** - Tutorial on requesting spatial and temporal subsets of ICESat-2 data using harmony-py
37
+
26
38
 
27
39
  # Running Examples & Developing on Harmony Py
28
40
 
@@ -1,5 +1,5 @@
1
1
  # Automatically updated by `make build`
2
- __version__ = "1.3.2"
2
+ __version__ = "1.3.4"
3
3
 
4
4
  from harmony.config import Environment
5
5
  from harmony.request import BBox, WKT, Collection, LinkType, Dimension, Request, \
@@ -170,7 +170,6 @@ class Client:
170
170
  retry_strategy = Retry(
171
171
  total=3,
172
172
  backoff_factor=1, # Wait 1, 2, 4 seconds between retries
173
- backoff_jitter=0.5,
174
173
  status_forcelist=[429, 500, 502, 503, 504],
175
174
  allowed_methods=["GET"],
176
175
  raise_on_status=False,
@@ -423,6 +423,8 @@ class Request(OgcBaseRequest):
423
423
  (lambda tr: 'start' in tr or 'stop' in tr,
424
424
  ('When included in the request, the temporal range should include a '
425
425
  'start or stop attribute.')),
426
+ (lambda tr: all(key in ['start', 'stop'] for key in tr.keys()),
427
+ ('Temporal range keys must be either "start" or "stop".')),
426
428
  (lambda tr: tr['start'] < tr['stop'] if 'start' in tr and 'stop' in tr else True,
427
429
  'The temporal range\'s start must be earlier than its stop datetime.')
428
430
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: harmony-py
3
- Version: 1.3.2
3
+ Version: 1.3.4
4
4
  Summary: Python library for integrating with NASA's Harmony Services.
5
5
  Author-email: NASA EOSDIS Harmony Team <christopher.d.durbin@nasa.gov>
6
6
  License: Copyright © 2019-2021 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved.
@@ -86,7 +86,7 @@ Requires-Dist: progressbar2~=4.2.0
86
86
  Requires-Dist: requests~=2.32.3
87
87
  Requires-Dist: sphinxcontrib-napoleon~=0.7
88
88
  Requires-Dist: curlify~=2.2.1
89
- Requires-Dist: shapely~=2.0.4
89
+ Requires-Dist: shapely<3,>=2.0.4
90
90
  Provides-Extra: dev
91
91
  Requires-Dist: coverage~=7.4; extra == "dev"
92
92
  Requires-Dist: flake8~=7.1.1; extra == "dev"
@@ -130,6 +130,10 @@ Harmony-Py provides a Python alternative to directly using [Harmony's OGC Covera
130
130
 
131
131
  We welcome feedback on Harmony-Py via [GitHub Issues](https://github.com/nasa/harmony-py/issues)
132
132
 
133
+ ## Documentation
134
+
135
+ **[View the full API documentation on ReadTheDocs →](https://harmony-py.readthedocs.io/en/latest/)**
136
+
133
137
  # Using Harmony Py
134
138
 
135
139
  ## Prerequisites
@@ -145,6 +149,14 @@ The library is available from [PyPI](https://pypi.org/project/harmony-py/) and c
145
149
 
146
150
  This will install harmony-py and its dependencies into your current Python environment. It's recommended that you install harmony-py into a virtual environment along with any other dependencies you may have.
147
151
 
152
+ ## Examples & Tutorials
153
+
154
+ Looking for examples of harmony-py in action? Check out these resources:
155
+
156
+ * **[Example Jupyter Notebooks](https://github.com/nasa/harmony-py/tree/main/examples)** - In this repository, see the `examples/` directory for hands-on tutorials
157
+ * **[TEMPO Atmospheric Data Tutorial](https://nasa.github.io/ASDC_Data_and_User_Services/TEMPO/how_to_examine_TEMPO_data_using_harmony-py.html)** - Learn how to access and analyze TEMPO data from NASA's ASDC using harmony-py
158
+ * **[Subsetting NASA Earthdata Using Harmony](https://nasa-openscapes.github.io/earthdata-cloud-cookbook/tutorials/Harmony.html)** - Tutorial on requesting spatial and temporal subsets of ICESat-2 data using harmony-py
159
+
148
160
 
149
161
  # Running Examples & Developing on Harmony Py
150
162
 
@@ -4,7 +4,7 @@ progressbar2~=4.2.0
4
4
  requests~=2.32.3
5
5
  sphinxcontrib-napoleon~=0.7
6
6
  curlify~=2.2.1
7
- shapely~=2.0.4
7
+ shapely<3,>=2.0.4
8
8
 
9
9
  [dev]
10
10
  coverage~=7.4
@@ -35,7 +35,7 @@ dependencies = [
35
35
  "requests ~= 2.32.3",
36
36
  "sphinxcontrib-napoleon ~= 0.7",
37
37
  "curlify ~= 2.2.1",
38
- "shapely ~= 2.0.4"
38
+ "shapely >=2.0.4,<3"
39
39
  ]
40
40
 
41
41
  [project.urls]
@@ -206,6 +206,24 @@ def test_request_spatial_error_messages(key, value, message):
206
206
  'stop': dt.datetime(1941, 12, 7)
207
207
  },
208
208
  'The temporal range\'s start must be earlier than its stop datetime.'
209
+ ), (
210
+ 'temporal', {
211
+ 'start': dt.datetime(2019, 11, 1),
212
+ 'end': dt.datetime(2019, 12, 30)
213
+ },
214
+ ('Temporal range keys must be either "start" or "stop".')
215
+ ), (
216
+ 'temporal', {
217
+ 'end': dt.datetime(2019, 12, 30)
218
+ },
219
+ ('Temporal range keys must be either "start" or "stop".')
220
+ ), (
221
+ 'temporal', {
222
+ 'start': dt.datetime(2019, 11, 1),
223
+ 'end': dt.datetime(2019, 12, 30),
224
+ 'invalid_key': dt.datetime(2020, 1, 1)
225
+ },
226
+ ('Temporal range keys must be either "start" or "stop".')
209
227
  )
210
228
  ])
211
229
  def test_request_temporal_error_messages(key, value, message):
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes