We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e7f306 commit 6c798f2Copy full SHA for 6c798f2
1 file changed
pyiceberg/utils/config.py
@@ -16,6 +16,7 @@
16
# under the License.
17
import logging
18
import os
19
+from functools import lru_cache
20
21
import strictyaml
22
@@ -179,3 +180,8 @@ def get_bool(self, key: str) -> bool | None:
179
180
except ValueError as err:
181
raise ValueError(f"{key} should be a boolean or left unset. Current value: {val}") from err
182
return None
183
+
184
185
+@lru_cache(maxsize=1)
186
+def get_env_config() -> Config:
187
+ return Config()
0 commit comments