sumo-wrapper-python 1.0.10__py3-none-any.whl → 1.0.12__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.
Potentially problematic release.
This version of sumo-wrapper-python might be problematic. Click here for more details.
- sumo/wrapper/_auth_provider.py +6 -4
- sumo/wrapper/_version.py +2 -2
- sumo/wrapper/sumo_client.py +4 -2
- {sumo_wrapper_python-1.0.10.dist-info → sumo_wrapper_python-1.0.12.dist-info}/METADATA +2 -2
- {sumo_wrapper_python-1.0.10.dist-info → sumo_wrapper_python-1.0.12.dist-info}/RECORD +9 -9
- {sumo_wrapper_python-1.0.10.dist-info → sumo_wrapper_python-1.0.12.dist-info}/WHEEL +1 -1
- {sumo_wrapper_python-1.0.10.dist-info → sumo_wrapper_python-1.0.12.dist-info}/LICENSE +0 -0
- {sumo_wrapper_python-1.0.10.dist-info → sumo_wrapper_python-1.0.12.dist-info}/entry_points.txt +0 -0
- {sumo_wrapper_python-1.0.10.dist-info → sumo_wrapper_python-1.0.12.dist-info}/top_level.txt +0 -0
sumo/wrapper/_auth_provider.py
CHANGED
|
@@ -406,10 +406,12 @@ def get_auth_provider(
|
|
|
406
406
|
if os.path.exists(get_token_path(resource_id, ".sharedkey")):
|
|
407
407
|
return AuthProviderSumoToken(resource_id)
|
|
408
408
|
# ELSE
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
409
|
+
if os.path.exists(get_token_path(resource_id, ".token")):
|
|
410
|
+
auth_silent = AuthProviderSilent(client_id, authority, resource_id)
|
|
411
|
+
token = auth_silent.get_token()
|
|
412
|
+
if token is not None:
|
|
413
|
+
return auth_silent
|
|
414
|
+
pass
|
|
413
415
|
# ELSE
|
|
414
416
|
if interactive:
|
|
415
417
|
return AuthProviderInteractive(client_id, authority, resource_id)
|
sumo/wrapper/_version.py
CHANGED
sumo/wrapper/sumo_client.py
CHANGED
|
@@ -383,8 +383,10 @@ class SumoClient:
|
|
|
383
383
|
"""
|
|
384
384
|
|
|
385
385
|
logger = logging.getLogger(name)
|
|
386
|
-
|
|
387
|
-
|
|
386
|
+
if len(logger.handlers) == 0:
|
|
387
|
+
handler = LogHandlerSumo(self)
|
|
388
|
+
logger.addHandler(handler)
|
|
389
|
+
pass
|
|
388
390
|
return logger
|
|
389
391
|
|
|
390
392
|
@raise_for_status_async
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sumo-wrapper-python
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.12
|
|
4
4
|
Summary: Python wrapper for the Sumo API
|
|
5
5
|
Author: Equinor
|
|
6
6
|
License: Apache License
|
|
@@ -218,7 +218,7 @@ Requires-Dist: httpx>=0.24.1
|
|
|
218
218
|
Requires-Dist: tenacity!=8.4.0,>=8.2.2
|
|
219
219
|
Requires-Dist: azure-identity>=1.13.0
|
|
220
220
|
Provides-Extra: docs
|
|
221
|
-
Requires-Dist: sphinx; extra == "docs"
|
|
221
|
+
Requires-Dist: sphinx==7.1.2; extra == "docs"
|
|
222
222
|
Requires-Dist: sphinx-rtd-theme; extra == "docs"
|
|
223
223
|
Requires-Dist: autoapi; extra == "docs"
|
|
224
224
|
Requires-Dist: sphinx-autodoc-typehints; extra == "docs"
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
sumo/__init__.py,sha256=ftS-xRPSH-vU7fIHlnZQaCTWbNvs4owJivNW65kzsIM,85
|
|
2
2
|
sumo/wrapper/__init__.py,sha256=wW7Bjl0btCgK9_exGVrfJsnFmTOybIdyeCudz0LueQM,235
|
|
3
|
-
sumo/wrapper/_auth_provider.py,sha256=
|
|
3
|
+
sumo/wrapper/_auth_provider.py,sha256=O7Yqw4xfEWCJXF_jAX0zosT4bSPUtbDLYZ46aQWJ4k4,13709
|
|
4
4
|
sumo/wrapper/_blob_client.py,sha256=SyfyFZ1hHVWKU4lmgUqSjl5TaK_OJNQ__0wDETrp-ag,1623
|
|
5
5
|
sumo/wrapper/_decorators.py,sha256=3IEi6GXVkkDACHoo8dOeDoBtZh5TlJ6Tw0qlpOVHqLQ,806
|
|
6
6
|
sumo/wrapper/_logging.py,sha256=lnhjn6oQna33jZpzeZ7IeBya2uKNfrzXr_C3nw7txo0,965
|
|
7
7
|
sumo/wrapper/_retry_strategy.py,sha256=9PjOT0hOhLbCHrJu02thUkGdY39NpB2rqa_XUODoguw,2415
|
|
8
|
-
sumo/wrapper/_version.py,sha256=
|
|
8
|
+
sumo/wrapper/_version.py,sha256=8lM9BSGBMir0oRyDe1uveXt1VScDIKzStYkjN7LpIAs,413
|
|
9
9
|
sumo/wrapper/config.py,sha256=6t7qqjrrmd11m4VMlRryiMYw2JDU_R51305woAP1TAs,865
|
|
10
10
|
sumo/wrapper/login.py,sha256=IlENRNdSc2UPmGdrcxjziovMVYpV40qQSnAuDy5LKh4,2375
|
|
11
|
-
sumo/wrapper/sumo_client.py,sha256=
|
|
12
|
-
sumo_wrapper_python-1.0.
|
|
13
|
-
sumo_wrapper_python-1.0.
|
|
14
|
-
sumo_wrapper_python-1.0.
|
|
15
|
-
sumo_wrapper_python-1.0.
|
|
16
|
-
sumo_wrapper_python-1.0.
|
|
17
|
-
sumo_wrapper_python-1.0.
|
|
11
|
+
sumo/wrapper/sumo_client.py,sha256=itx4zZBMA7JmgPOEVRI37_QNpJPpBvK7UokeLMRgnvE,15770
|
|
12
|
+
sumo_wrapper_python-1.0.12.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
13
|
+
sumo_wrapper_python-1.0.12.dist-info/METADATA,sha256=zFbPvD5ye8yGU4gp_L5fT5HSVV6F40e3x1SSHNMMamk,14462
|
|
14
|
+
sumo_wrapper_python-1.0.12.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
15
|
+
sumo_wrapper_python-1.0.12.dist-info/entry_points.txt,sha256=V_vGky2C3He5vohJAxnBdvpt_fqfUDFj5irUm9HtoFc,55
|
|
16
|
+
sumo_wrapper_python-1.0.12.dist-info/top_level.txt,sha256=rLbKyH9rWgCj3PoLeR7fvC5X8vCaUc5LF8-Y_GBWZL0,5
|
|
17
|
+
sumo_wrapper_python-1.0.12.dist-info/RECORD,,
|
|
File without changes
|
{sumo_wrapper_python-1.0.10.dist-info → sumo_wrapper_python-1.0.12.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|