glam-processing 0.3.2__tar.gz → 0.4.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: glam-processing
3
- Version: 0.3.2
3
+ Version: 0.4.0
4
4
  Summary:
5
5
  Author: John Keniston
6
6
  Author-email: jfkeniston@gmail.com
@@ -154,8 +154,10 @@ class EarthDataDownloader(GlamDownloader):
154
154
  def auth(self, value):
155
155
  if not value.authenticated:
156
156
  try:
157
- value.login()
157
+ # try to retreive credentials from environment first
158
+ value.login(strategy="environment")
158
159
  except:
160
+ # otherwise prompt for credentials
159
161
  value.login(strategy="interactive", persist=True)
160
162
  self._auth = value
161
163
 
@@ -314,7 +316,7 @@ class CLMSDownloader(GlamDownloader):
314
316
 
315
317
  def query_composites(self, start_date, end_date):
316
318
 
317
- r = requests.get(self.manifest)
319
+ r = requests.get(self.manifest, verify=False)
318
320
  download_list = r.text.split("\n")
319
321
 
320
322
  composites = []
@@ -346,7 +348,7 @@ class CLMSDownloader(GlamDownloader):
346
348
  date = composite.get("date")
347
349
  url = composite.get("url")
348
350
 
349
- r = requests.get(url)
351
+ r = requests.get(url, verify=False)
350
352
 
351
353
  out = os.path.join(out_dir, f"{self.dataset}.{date}.tif")
352
354
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "glam-processing"
3
- version = "0.3.2"
3
+ version = "0.4.0"
4
4
  description = ""
5
5
  authors = ["John Keniston <jfkeniston@gmail.com>"]
6
6
  readme = "README.md"