maxar-platform 1.0.2a2__tar.gz → 1.0.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: maxar-platform
3
- Version: 1.0.2a2
3
+ Version: 1.0.4
4
4
  Summary: Maxar Geospatial Platform SDK
5
5
  License: MIT
6
6
  Author: Marc Pfister
@@ -29,7 +29,7 @@ Description-Content-Type: text/markdown
29
29
 
30
30
  A Python SDK for working with [Maxar Geospatial Platform](https://pro.maxar.com/)
31
31
 
32
- Version: 1.0.2a2
32
+ Version: 1.0.4
33
33
 
34
34
  ## Introduction
35
35
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  A Python SDK for working with [Maxar Geospatial Platform](https://pro.maxar.com/)
4
4
 
5
- Version: 1.0.2a2
5
+ Version: 1.0.4
6
6
 
7
7
  ## Introduction
8
8
 
@@ -23,7 +23,7 @@ Reference
23
23
  https://developers.maxar.com/
24
24
  """
25
25
 
26
- __version__ = "1.0.2a2"
26
+ __version__ = "1.0.4"
27
27
 
28
28
  import os
29
29
 
@@ -128,7 +128,7 @@ def cancel_order(order_id):
128
128
  """
129
129
 
130
130
  url = ORDERING_ORDER_CANCEL.replace(":id", order_id)
131
- r = session.get(url)
131
+ r = session.post(url)
132
132
 
133
133
 
134
134
  def submit_order(pipeline, order):
@@ -353,7 +353,7 @@ class MaxarSession:
353
353
 
354
354
  def login(self):
355
355
  """An interactive login for terminal or notebook use when envvars are not configured"""
356
- if hasattr(sys, "ps1"):
356
+ if sys.stdin.isatty() or hasattr(sys, "ps1"):
357
357
  print(
358
358
  "Log in with a username/password and/or an API key.\nCredentials are not saved - use envvars to store them."
359
359
  )
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "maxar-platform"
3
- version = "1.0.2a2"
3
+ version = "1.0.4"
4
4
  description = "Maxar Geospatial Platform SDK"
5
5
  authors = ["Marc Pfister <marc.pfister@maxar.com>"]
6
6
  license = "MIT"