azpaddypy 0.4.3__py3-none-any.whl → 0.4.4__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.
@@ -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
- loadded_from_json = False
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
- loadded_from_json = True
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
- loadded_from_dotenv = True
198
+ manager.logger.info(f"Loaded settings from {dotenv_path}")
199
+
201
200
  # Apply dictionary settings
202
- if settings and (loadded_from_json or loadded_from_dotenv):
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
3
+ Version: 0.4.4
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=F-7kpO0g0mud8YHvLRcUkuAuIJzjvcl776wN0cUM8Zo,8248
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.3.dist-info/licenses/LICENSE,sha256=hQ6t0g2QaewGCQICHqTckBFbMVakGmoyTAzDpmEYV4c,1089
9
- azpaddypy-0.4.3.dist-info/METADATA,sha256=idEJob7oF0edjPouQr3pgZjtLKIKMP_AzgJ2yYsIAaQ,665
10
- azpaddypy-0.4.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
- azpaddypy-0.4.3.dist-info/top_level.txt,sha256=hsDuboDhT61320ML8X479ezSTwT3rrlDWz1_Z45B2cs,10
12
- azpaddypy-0.4.3.dist-info/RECORD,,
8
+ azpaddypy-0.4.4.dist-info/licenses/LICENSE,sha256=hQ6t0g2QaewGCQICHqTckBFbMVakGmoyTAzDpmEYV4c,1089
9
+ azpaddypy-0.4.4.dist-info/METADATA,sha256=l4mXrqTCG3XVhYIRCN8mDZ1HEFCCmflre857Bd9ln4k,665
10
+ azpaddypy-0.4.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ azpaddypy-0.4.4.dist-info/top_level.txt,sha256=hsDuboDhT61320ML8X479ezSTwT3rrlDWz1_Z45B2cs,10
12
+ azpaddypy-0.4.4.dist-info/RECORD,,