sumo-wrapper-python 1.6.0__py3-none-any.whl → 1.7.0__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.
- sumo/wrapper/_version.py +2 -2
- sumo/wrapper/sumo_client.py +7 -3
- {sumo_wrapper_python-1.6.0.dist-info → sumo_wrapper_python-1.7.0.dist-info}/METADATA +1 -1
- {sumo_wrapper_python-1.6.0.dist-info → sumo_wrapper_python-1.7.0.dist-info}/RECORD +8 -8
- {sumo_wrapper_python-1.6.0.dist-info → sumo_wrapper_python-1.7.0.dist-info}/WHEEL +0 -0
- {sumo_wrapper_python-1.6.0.dist-info → sumo_wrapper_python-1.7.0.dist-info}/entry_points.txt +0 -0
- {sumo_wrapper_python-1.6.0.dist-info → sumo_wrapper_python-1.7.0.dist-info}/licenses/LICENSE +0 -0
- {sumo_wrapper_python-1.6.0.dist-info → sumo_wrapper_python-1.7.0.dist-info}/top_level.txt +0 -0
sumo/wrapper/_version.py
CHANGED
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '1.
|
|
22
|
-
__version_tuple__ = version_tuple = (1,
|
|
21
|
+
__version__ = version = '1.7.0'
|
|
22
|
+
__version_tuple__ = version_tuple = (1, 7, 0)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
sumo/wrapper/sumo_client.py
CHANGED
|
@@ -26,6 +26,8 @@ WELL_KNOWN = os.environ.get(
|
|
|
26
26
|
"SUMOCONNECTIONINFO", "https://api.sumo.equinor.com/well-known"
|
|
27
27
|
)
|
|
28
28
|
|
|
29
|
+
well_known = None
|
|
30
|
+
|
|
29
31
|
|
|
30
32
|
class SumoClient:
|
|
31
33
|
"""Authenticate and perform requests to the Sumo API."""
|
|
@@ -70,8 +72,9 @@ class SumoClient:
|
|
|
70
72
|
"""
|
|
71
73
|
|
|
72
74
|
logger.setLevel(verbosity)
|
|
73
|
-
|
|
74
|
-
well_known
|
|
75
|
+
global well_known
|
|
76
|
+
if well_known is None:
|
|
77
|
+
well_known = httpx.get(WELL_KNOWN).json()
|
|
75
78
|
if env not in well_known["envs"]:
|
|
76
79
|
raise ValueError(f"Invalid environment: {env}")
|
|
77
80
|
|
|
@@ -519,7 +522,7 @@ class SumoClient:
|
|
|
519
522
|
).text
|
|
520
523
|
self.auth.store_shared_access_key_for_case(case_uuid, token)
|
|
521
524
|
|
|
522
|
-
def client_for_case(self, case_uuid):
|
|
525
|
+
def client_for_case(self, case_uuid, interactive=False):
|
|
523
526
|
"""Instantiate and return new SumoClient for accessing the
|
|
524
527
|
case identified by *case_uuid*."""
|
|
525
528
|
if self.auth.has_case_token(case_uuid):
|
|
@@ -529,6 +532,7 @@ class SumoClient:
|
|
|
529
532
|
retry_strategy=self._retry_strategy,
|
|
530
533
|
timeout=self._timeout,
|
|
531
534
|
case_uuid=case_uuid,
|
|
535
|
+
interactive=interactive,
|
|
532
536
|
)
|
|
533
537
|
else:
|
|
534
538
|
return self
|
|
@@ -5,12 +5,12 @@ sumo/wrapper/_blob_client.py,sha256=SyfyFZ1hHVWKU4lmgUqSjl5TaK_OJNQ__0wDETrp-ag,
|
|
|
5
5
|
sumo/wrapper/_decorators.py,sha256=ZwyrWkfAXiGNSgYsQSEXA13D-WIQM2XPf0v2z9N8HyQ,1002
|
|
6
6
|
sumo/wrapper/_logging.py,sha256=WAGrjPmK2_JC9w1IxT5onq1iEAreEsyzmm95pXBe0dA,1074
|
|
7
7
|
sumo/wrapper/_retry_strategy.py,sha256=JSXy-ki5vWI_N4D52LpK9EoAmPrnT3H6OG0aBLsJRMk,2525
|
|
8
|
-
sumo/wrapper/_version.py,sha256=
|
|
8
|
+
sumo/wrapper/_version.py,sha256=pvN114lCpRNcdz9ufJCnl1MMqgOtZU1RmZfWI_uxL9s,520
|
|
9
9
|
sumo/wrapper/login.py,sha256=PtpQ5Qi8Gm1N0hMnE79Je4QvQ8JMuKqa46TwZgjHRnM,2328
|
|
10
|
-
sumo/wrapper/sumo_client.py,sha256=
|
|
11
|
-
sumo_wrapper_python-1.
|
|
12
|
-
sumo_wrapper_python-1.
|
|
13
|
-
sumo_wrapper_python-1.
|
|
14
|
-
sumo_wrapper_python-1.
|
|
15
|
-
sumo_wrapper_python-1.
|
|
16
|
-
sumo_wrapper_python-1.
|
|
10
|
+
sumo/wrapper/sumo_client.py,sha256=yGCfJCIxOMANuApIk2aii-a2HIgZzZH8UpEhs84va30,23167
|
|
11
|
+
sumo_wrapper_python-1.7.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
12
|
+
sumo_wrapper_python-1.7.0.dist-info/METADATA,sha256=iONTtIeFvEqGTsGU6UJpm_7l4eQzaMFILoH9hvCncMQ,14615
|
|
13
|
+
sumo_wrapper_python-1.7.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
14
|
+
sumo_wrapper_python-1.7.0.dist-info/entry_points.txt,sha256=V_vGky2C3He5vohJAxnBdvpt_fqfUDFj5irUm9HtoFc,55
|
|
15
|
+
sumo_wrapper_python-1.7.0.dist-info/top_level.txt,sha256=rLbKyH9rWgCj3PoLeR7fvC5X8vCaUc5LF8-Y_GBWZL0,5
|
|
16
|
+
sumo_wrapper_python-1.7.0.dist-info/RECORD,,
|
|
File without changes
|
{sumo_wrapper_python-1.6.0.dist-info → sumo_wrapper_python-1.7.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{sumo_wrapper_python-1.6.0.dist-info → sumo_wrapper_python-1.7.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|