azpaddypy 0.4.3__py3-none-any.whl → 0.4.5__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.
- azpaddypy/mgmt/local_env_manager.py +6 -7
- {azpaddypy-0.4.3.dist-info → azpaddypy-0.4.5.dist-info}/METADATA +1 -1
- {azpaddypy-0.4.3.dist-info → azpaddypy-0.4.5.dist-info}/RECORD +6 -6
- {azpaddypy-0.4.3.dist-info → azpaddypy-0.4.5.dist-info}/WHEEL +0 -0
- {azpaddypy-0.4.3.dist-info → azpaddypy-0.4.5.dist-info}/licenses/LICENSE +0 -0
- {azpaddypy-0.4.3.dist-info → azpaddypy-0.4.5.dist-info}/top_level.txt +0 -0
@@ -173,7 +173,6 @@ def create_local_env_manager(
|
|
173
173
|
|
174
174
|
This function orchestrates loading settings from a `local.settings.json` file,
|
175
175
|
a `.env` file, and a direct dictionary of settings, in that order.
|
176
|
-
If the settings are not loaded from the file, the settings from the dictionary will not be applied.
|
177
176
|
|
178
177
|
Args:
|
179
178
|
file_path: Base path for `.env` or `local.settings.json`. The function
|
@@ -185,22 +184,22 @@ def create_local_env_manager(
|
|
185
184
|
override_settings: Whether settings from the dictionary should override.
|
186
185
|
"""
|
187
186
|
manager = LocalDevelopmentSettings(logger=logger)
|
188
|
-
|
189
|
-
loadded_from_dotenv = False
|
187
|
+
|
190
188
|
# Try loading local.settings.json
|
191
189
|
json_path = pathlib.Path(file_path).parent / "local.settings.json"
|
192
190
|
if json_path.is_file():
|
193
191
|
manager.load_from_json(json_path, override=override_json)
|
194
|
-
|
192
|
+
manager.logger.info(f"Loaded settings from {json_path}")
|
195
193
|
|
196
194
|
# Try loading .env
|
197
195
|
dotenv_path = pathlib.Path(file_path)
|
198
196
|
if dotenv_path.is_file() and dotenv_path.name == ".env":
|
199
197
|
manager.load_from_dotenv(dotenv_path, override=override_dotenv)
|
200
|
-
|
198
|
+
manager.logger.info(f"Loaded settings from {dotenv_path}")
|
199
|
+
|
201
200
|
# Apply dictionary settings
|
202
|
-
if settings
|
201
|
+
if settings:
|
203
202
|
manager.apply_settings(settings, override=override_settings)
|
204
|
-
|
203
|
+
manager.logger.info(f"Applied {len(settings)} settings to environment.")
|
205
204
|
|
206
205
|
return manager
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: azpaddypy
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.5
|
4
4
|
Summary: Comprehensive Python logger for Azure, integrating OpenTelemetry for advanced, structured, and distributed tracing.
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
6
6
|
Classifier: Operating System :: OS Independent
|
@@ -1,12 +1,12 @@
|
|
1
1
|
azpaddypy/__init__.py,sha256=hrWNAh4OHZOvm3Pbhq5eUjO-pSRYn0h0W0J87tc-lNI,45
|
2
2
|
azpaddypy/mgmt/__init__.py,sha256=waW9EAnTFDh2530ieQX1Z0r0Z-ZKHRwabVDfapjfN58,441
|
3
3
|
azpaddypy/mgmt/identity.py,sha256=mA_krQslMsK_sDob-z-QA0B9khK_JUO2way7xwPopR8,12001
|
4
|
-
azpaddypy/mgmt/local_env_manager.py,sha256=
|
4
|
+
azpaddypy/mgmt/local_env_manager.py,sha256=6pN6cbn8ltz6RGDsGnsX-opB4NEqDB9SHDBVpt-w4j4,8180
|
5
5
|
azpaddypy/mgmt/logging.py,sha256=3ZLSKwpX7Tprthrkm3uN4ph2n2CxiGYUNri7jBJuXEY,36514
|
6
6
|
azpaddypy/resources/__init__.py,sha256=Bvt3VK4RqwoxYpoh6EbLXIR18RuFPKaLP6zLL-icyFk,314
|
7
7
|
azpaddypy/resources/keyvault.py,sha256=4J08vLqoLFd1_UUDBji2oG2fatZaPkgnRyT_Z6wHAOc,20312
|
8
|
-
azpaddypy-0.4.
|
9
|
-
azpaddypy-0.4.
|
10
|
-
azpaddypy-0.4.
|
11
|
-
azpaddypy-0.4.
|
12
|
-
azpaddypy-0.4.
|
8
|
+
azpaddypy-0.4.5.dist-info/licenses/LICENSE,sha256=hQ6t0g2QaewGCQICHqTckBFbMVakGmoyTAzDpmEYV4c,1089
|
9
|
+
azpaddypy-0.4.5.dist-info/METADATA,sha256=FVIz6tImJVPLUXRNPI4xTEXJkpuq1R6C5p6ekSBic-I,665
|
10
|
+
azpaddypy-0.4.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
11
|
+
azpaddypy-0.4.5.dist-info/top_level.txt,sha256=hsDuboDhT61320ML8X479ezSTwT3rrlDWz1_Z45B2cs,10
|
12
|
+
azpaddypy-0.4.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|