processcube-etw-library 2026.1.22.130934b0__tar.gz → 2026.1.22.145211__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.
- {processcube_etw_library-2026.1.22.130934b0/src/processcube_etw_library.egg-info → processcube_etw_library-2026.1.22.145211}/PKG-INFO +1 -1
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library/settings.py +1 -10
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211/src/processcube_etw_library.egg-info}/PKG-INFO +1 -1
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/.github/workflows/build_and_publish.yml +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/.gitignore +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/.python-version +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/README.md +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/pyproject.toml +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/setup.cfg +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library/__init__.py +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library/create_external_task_client.py +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library/etw_app.py +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library/health/__init__.py +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library/health/built_in.py +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library/health/check.py +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library/health/handlers.py +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library/health/models.py +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library/health/registry.py +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library/health/routes.py +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library/identity_provider.py +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library/server_config.py +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library/typed_handler.py +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library.egg-info/SOURCES.txt +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library.egg-info/dependency_links.txt +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library.egg-info/requires.txt +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/src/processcube_etw_library.egg-info/top_level.txt +0 -0
- {processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/uv.lock +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import logging
|
|
2
|
-
from os import getenv
|
|
3
2
|
from typing import Optional, Type, TypeVar
|
|
4
3
|
|
|
5
4
|
from pydantic import Field, model_validator
|
|
@@ -22,13 +21,8 @@ DEFAULTS = {
|
|
|
22
21
|
|
|
23
22
|
|
|
24
23
|
def _determine_authority_url(engine_url: str) -> str:
|
|
25
|
-
if authority_url := getenv("PROCESSCUBE_AUTHORITY_URL"):
|
|
26
|
-
logger.info("Using authority URL from environment variable PROCESSCUBE_AUTHORITY_URL")
|
|
27
|
-
return authority_url
|
|
28
|
-
|
|
29
24
|
app_info_client = AppInfoClient(engine_url)
|
|
30
25
|
authority_url = app_info_client.get_authority()
|
|
31
|
-
logger.debug(f"Determined authority URL from AppInfoClient: {authority_url}")
|
|
32
26
|
if type(authority_url) is not str:
|
|
33
27
|
raise ValueError("Could not determine authority URL from AppInfoClient")
|
|
34
28
|
|
|
@@ -77,9 +71,7 @@ class ETWSettings(BaseSettings):
|
|
|
77
71
|
@model_validator(mode="after")
|
|
78
72
|
def resolve_authority_url(self) -> "ETWSettings":
|
|
79
73
|
if not self.processcube_authority_url.strip():
|
|
80
|
-
self.processcube_authority_url = _determine_authority_url(
|
|
81
|
-
self.processcube_engine_url
|
|
82
|
-
)
|
|
74
|
+
self.processcube_authority_url = _determine_authority_url(self.processcube_engine_url)
|
|
83
75
|
logger.info(
|
|
84
76
|
f"Authority URL resolved from AppInfoClient: {self.processcube_authority_url}"
|
|
85
77
|
)
|
|
@@ -89,7 +81,6 @@ class ETWSettings(BaseSettings):
|
|
|
89
81
|
_settings: Optional[ETWSettings] = None
|
|
90
82
|
|
|
91
83
|
|
|
92
|
-
|
|
93
84
|
def load_settings(settings_class: Type[T] = ETWSettings) -> T:
|
|
94
85
|
"""
|
|
95
86
|
Call this with a custom settings class to extend the base settings:
|
|
File without changes
|
{processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/.gitignore
RENAMED
|
File without changes
|
|
File without changes
|
{processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/README.md
RENAMED
|
File without changes
|
|
File without changes
|
{processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{processcube_etw_library-2026.1.22.130934b0 → processcube_etw_library-2026.1.22.145211}/uv.lock
RENAMED
|
File without changes
|