sumo-wrapper-python 1.6.0__py3-none-any.whl → 1.6.1__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 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.6.0'
22
- __version_tuple__ = version_tuple = (1, 6, 0)
21
+ __version__ = version = '1.6.1'
22
+ __version_tuple__ = version_tuple = (1, 6, 1)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -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 = httpx.get(WELL_KNOWN).json()
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sumo-wrapper-python
3
- Version: 1.6.0
3
+ Version: 1.6.1
4
4
  Summary: Python wrapper for the Sumo API
5
5
  Author: Equinor
6
6
  License: Apache License
@@ -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=1J23hr68olyCiSnbHNYm6VGnkzB4hDCEmJzkxBTNSWo,520
8
+ sumo/wrapper/_version.py,sha256=oBVheJDDvi0mK4SCR_IERt3vP_efnZ5l5B_1mC1_E8w,520
9
9
  sumo/wrapper/login.py,sha256=PtpQ5Qi8Gm1N0hMnE79Je4QvQ8JMuKqa46TwZgjHRnM,2328
10
- sumo/wrapper/sumo_client.py,sha256=W1s-ENTRXHgP7GPocuJu1KSpdAzA7bGecS9lQt5T-W0,23028
11
- sumo_wrapper_python-1.6.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
12
- sumo_wrapper_python-1.6.0.dist-info/METADATA,sha256=EUIXN978Z2yuKBTQcOO2dTK1ogVFpnfYozboqDxFww0,14615
13
- sumo_wrapper_python-1.6.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
14
- sumo_wrapper_python-1.6.0.dist-info/entry_points.txt,sha256=V_vGky2C3He5vohJAxnBdvpt_fqfUDFj5irUm9HtoFc,55
15
- sumo_wrapper_python-1.6.0.dist-info/top_level.txt,sha256=rLbKyH9rWgCj3PoLeR7fvC5X8vCaUc5LF8-Y_GBWZL0,5
16
- sumo_wrapper_python-1.6.0.dist-info/RECORD,,
10
+ sumo/wrapper/sumo_client.py,sha256=CKwl-C2YndVAaDEXUzuOnm1Ix_oNVEBKqehI7BJhQXk,23107
11
+ sumo_wrapper_python-1.6.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
12
+ sumo_wrapper_python-1.6.1.dist-info/METADATA,sha256=Uqao5pvzAgXD0PTwIuKF5uh0P2QqsYnAQ3HQB69SkNk,14615
13
+ sumo_wrapper_python-1.6.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
14
+ sumo_wrapper_python-1.6.1.dist-info/entry_points.txt,sha256=V_vGky2C3He5vohJAxnBdvpt_fqfUDFj5irUm9HtoFc,55
15
+ sumo_wrapper_python-1.6.1.dist-info/top_level.txt,sha256=rLbKyH9rWgCj3PoLeR7fvC5X8vCaUc5LF8-Y_GBWZL0,5
16
+ sumo_wrapper_python-1.6.1.dist-info/RECORD,,