cwyodmodules 0.3.56__py3-none-any.whl → 0.3.57__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.
- cwyodmodules/batch/utilities/helpers/env_helper.py +2 -2
- cwyodmodules/mgmt_config.py +22 -1
- {cwyodmodules-0.3.56.dist-info → cwyodmodules-0.3.57.dist-info}/METADATA +1 -1
- {cwyodmodules-0.3.56.dist-info → cwyodmodules-0.3.57.dist-info}/RECORD +7 -7
- {cwyodmodules-0.3.56.dist-info → cwyodmodules-0.3.57.dist-info}/WHEEL +0 -0
- {cwyodmodules-0.3.56.dist-info → cwyodmodules-0.3.57.dist-info}/licenses/LICENSE +0 -0
- {cwyodmodules-0.3.56.dist-info → cwyodmodules-0.3.57.dist-info}/top_level.txt +0 -0
@@ -7,7 +7,7 @@ from ..orchestrator.orchestration_strategy import OrchestrationStrategy
|
|
7
7
|
from ..helpers.config.conversation_flow import ConversationFlow
|
8
8
|
from ..helpers.config.database_type import DatabaseType
|
9
9
|
|
10
|
-
from mgmt_config import logger, identity, keyvault, head_keyvault
|
10
|
+
from mgmt_config import logger, local_env_manager, identity, keyvault, head_keyvault
|
11
11
|
|
12
12
|
|
13
13
|
|
@@ -25,7 +25,7 @@ class EnvHelper:
|
|
25
25
|
|
26
26
|
@logger.trace_function(log_execution=True, log_args=False, log_result=False)
|
27
27
|
def __load_config(self, **kwargs) -> None:
|
28
|
-
|
28
|
+
local_env_manager.print_settings()
|
29
29
|
logger.info("Initializing EnvHelper")
|
30
30
|
logger.info("key_vault_uri: " + os.getenv("key_vault_uri"))
|
31
31
|
logger.info("head_key_vault_uri: " + os.getenv("head_key_vault_uri"))
|
cwyodmodules/mgmt_config.py
CHANGED
@@ -17,6 +17,7 @@ from typing import Optional, Dict, Any
|
|
17
17
|
from azpaddypy.mgmt.logging import create_app_logger, create_function_logger
|
18
18
|
from azpaddypy.mgmt.identity import create_azure_identity
|
19
19
|
from azpaddypy.resources.keyvault import create_azure_keyvault
|
20
|
+
from azpaddypy.mgmt.local_env_manager import create_local_env_manager
|
20
21
|
|
21
22
|
# Alias for import in other packages
|
22
23
|
|
@@ -38,6 +39,16 @@ LOGGER_ENABLE_CONSOLE = os.getenv("LOGGER_ENABLE_CONSOLE", "true").lower() == "t
|
|
38
39
|
# Application Insights connection string (optional, will use environment variable if not set)
|
39
40
|
LOGGER_CONNECTION_STRING = os.getenv("APPLICATIONINSIGHTS_CONNECTION_STRING")
|
40
41
|
|
42
|
+
# Local development settings
|
43
|
+
LOCAL_SETTINGS = {
|
44
|
+
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
|
45
|
+
"AzureWebJobsDashboard": "UseDevelopmentStorage=true",
|
46
|
+
"input_queue_connection__queueServiceUri": "UseDevelopmentStorage=true",
|
47
|
+
"AzureWebJobsStorage__accountName": "UseDevelopmentStorage=true",
|
48
|
+
"AzureWebJobsStorage__blobServiceUri": "UseDevelopmentStorage=true",
|
49
|
+
"AZURE_CLIENT_ID": "aa73da4a-2888-4cb7-896e-5d51125f11f0"
|
50
|
+
}
|
51
|
+
|
41
52
|
# Configure which Azure SDK components to instrument
|
42
53
|
LOGGER_INSTRUMENTATION_OPTIONS = {
|
43
54
|
"azure_sdk": {"enabled": True},
|
@@ -94,6 +105,16 @@ logger = create_function_logger(
|
|
94
105
|
)
|
95
106
|
logger.info("Function logger initialized")
|
96
107
|
|
108
|
+
# Create local development settings instance
|
109
|
+
local_env_manager = create_local_env_manager(
|
110
|
+
file_path=".env",
|
111
|
+
settings=LOCAL_SETTINGS,
|
112
|
+
logger=logger,
|
113
|
+
override_json=True,
|
114
|
+
override_dotenv=True,
|
115
|
+
override_settings=True,
|
116
|
+
)
|
117
|
+
|
97
118
|
# Create identity instance with shared logger
|
98
119
|
identity = create_azure_identity(
|
99
120
|
service_name=SERVICE_NAME,
|
@@ -185,4 +206,4 @@ logger.info(
|
|
185
206
|
# =============================================================================
|
186
207
|
|
187
208
|
# Export logger, identity, and keyvault for use in applications
|
188
|
-
__all__ = ["logger", "identity", "keyvault", "head_keyvault"]
|
209
|
+
__all__ = ["logger", "local_env_manager", "identity", "keyvault", "head_keyvault"]
|
@@ -1,5 +1,5 @@
|
|
1
1
|
cwyodmodules/__init__.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
2
|
-
cwyodmodules/mgmt_config.py,sha256=
|
2
|
+
cwyodmodules/mgmt_config.py,sha256=8_44C151sT6sFrxjygWVhevVg4Wi0jVU9va8XLHvY7Y,8405
|
3
3
|
cwyodmodules/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
cwyodmodules/api/chat_history.py,sha256=bVXFmhTHIfEiHv_nBrfizO-cQRHhKgrdcZ07OD1b0Tw,20683
|
5
5
|
cwyodmodules/batch/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -37,7 +37,7 @@ cwyodmodules/batch/utilities/helpers/azure_postgres_helper_light_rag.py,sha256=M
|
|
37
37
|
cwyodmodules/batch/utilities/helpers/azure_search_helper.py,sha256=vIIMEck1wPg9oRlWweE2gSZ1nUYc_tmEe4QeFlsrwKk,11314
|
38
38
|
cwyodmodules/batch/utilities/helpers/document_chunking_helper.py,sha256=2MZOjW-fHXgYijP3m9O-nizOlk96Yg0axyxT0K6fTnM,725
|
39
39
|
cwyodmodules/batch/utilities/helpers/document_loading_helper.py,sha256=2HBEl3vW-_PKbX5pPntTC_R5eToTk2Qb-q3M4Mt6hCU,603
|
40
|
-
cwyodmodules/batch/utilities/helpers/env_helper.py,sha256=
|
40
|
+
cwyodmodules/batch/utilities/helpers/env_helper.py,sha256=57cHGLgBCUmsiY9XvlpbwtUuBoR-XaQReOxVi3c2aZE,15910
|
41
41
|
cwyodmodules/batch/utilities/helpers/lightrag_helper.py,sha256=7lb9JMm5IohsO73LWo5bWmlzWCGYNsx_fYl-aFdwATQ,3845
|
42
42
|
cwyodmodules/batch/utilities/helpers/llm_helper.py,sha256=lHLYrUidtaemmKrVbWoo7oIvwluUoPUk16U5lV-YIX8,8282
|
43
43
|
cwyodmodules/batch/utilities/helpers/orchestrator_helper.py,sha256=mCcZyMFG0otnw9gzWd-PYocHmDdFDVg-RT9oDPiDZPk,897
|
@@ -109,8 +109,8 @@ cwyodmodules/graphrag/query/generate.py,sha256=BZiB6iw7PkIovw-CyYFogMHnDxK0Qu_4u
|
|
109
109
|
cwyodmodules/graphrag/query/graph_search.py,sha256=95h3ecSWx4864XgKABtG0fh3Nk8HkqJVzoCrO8daJ-Y,7724
|
110
110
|
cwyodmodules/graphrag/query/types.py,sha256=1Iq1dp4I4a56_cuFjOZ0NTgd0A2_MpVFznp_czgt6cI,617
|
111
111
|
cwyodmodules/graphrag/query/vector_search.py,sha256=9Gwu9LPjtoAYUU8WKqCvbCHAIg3dpk71reoYd1scLnQ,1807
|
112
|
-
cwyodmodules-0.3.
|
113
|
-
cwyodmodules-0.3.
|
114
|
-
cwyodmodules-0.3.
|
115
|
-
cwyodmodules-0.3.
|
116
|
-
cwyodmodules-0.3.
|
112
|
+
cwyodmodules-0.3.57.dist-info/licenses/LICENSE,sha256=UqBDTipijsSW2ZSOXyTZnMsXmLoEHTgNEM0tL4g-Sso,1150
|
113
|
+
cwyodmodules-0.3.57.dist-info/METADATA,sha256=YxFXQgG1mdvR4t8qvDdaN5WCyoBuVruG96VkxhHqjqQ,2002
|
114
|
+
cwyodmodules-0.3.57.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
115
|
+
cwyodmodules-0.3.57.dist-info/top_level.txt,sha256=99RENLbkdRX-qpJvsxZ5AfmTL5s6shSaKOWYpz1vwzg,13
|
116
|
+
cwyodmodules-0.3.57.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|