dycw-utilities 0.166.30__py3-none-any.whl → 0.166.31__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.
Potentially problematic release.
This version of dycw-utilities might be problematic. Click here for more details.
- {dycw_utilities-0.166.30.dist-info → dycw_utilities-0.166.31.dist-info}/METADATA +1 -1
- {dycw_utilities-0.166.30.dist-info → dycw_utilities-0.166.31.dist-info}/RECORD +7 -7
- utilities/__init__.py +1 -1
- utilities/pydantic_settings_sops.py +13 -0
- {dycw_utilities-0.166.30.dist-info → dycw_utilities-0.166.31.dist-info}/WHEEL +0 -0
- {dycw_utilities-0.166.30.dist-info → dycw_utilities-0.166.31.dist-info}/entry_points.txt +0 -0
- {dycw_utilities-0.166.30.dist-info → dycw_utilities-0.166.31.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
utilities/__init__.py,sha256=
|
|
1
|
+
utilities/__init__.py,sha256=J63g-0Wc3WmP7lyA4Ia1OO0SML9uonoD5YMTXi-KZlw,61
|
|
2
2
|
utilities/aeventkit.py,sha256=ddoleSwW9zdc2tjX5Ge0pMKtYwV_JMxhHYOxnWX2AGM,12609
|
|
3
3
|
utilities/altair.py,sha256=nHdpWt8ZwdUwRQN970MvHd5bRWokNqzHcZQEdSHKRuE,9033
|
|
4
4
|
utilities/asyncio.py,sha256=60l1IwjnRGeaVphAFiwDIHyfKoZYKY-XGpptUxGiU-M,17034
|
|
@@ -54,7 +54,7 @@ utilities/pqdm.py,sha256=idv2seRVP2f6NeSfpeEnT5A-tQezaHZKDyeu16g2-0E,3091
|
|
|
54
54
|
utilities/psutil.py,sha256=KUlu4lrUw9Zg1V7ZGetpWpGb9DB8l_SSDWGbANFNCPU,2104
|
|
55
55
|
utilities/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
56
56
|
utilities/pydantic_settings.py,sha256=bFr9UDrVhdqTl7O_TPutCLdsQ5rUp--nO76-_F8z0bs,5102
|
|
57
|
-
utilities/pydantic_settings_sops.py,sha256=
|
|
57
|
+
utilities/pydantic_settings_sops.py,sha256=9Ou6Cx6PiYOU49vtkKqqW1Sdp_i3WlVyg8KkUUKNliM,2310
|
|
58
58
|
utilities/pyinstrument.py,sha256=hnXaL-4HE7wWBI5JKaPfYTpsrXe68YiuZKahHV0VJn8,841
|
|
59
59
|
utilities/pytest.py,sha256=4KzMZYg5Zzfyjxrw8VlnZNYCD2S0Uee1JIFMIPyIkO8,10076
|
|
60
60
|
utilities/pytest_regressions.py,sha256=ocjHTtfOeiGfQAKIei8pKNd61sxN9dawrJJ9gPt2wzA,4097
|
|
@@ -91,8 +91,8 @@ utilities/zoneinfo.py,sha256=tdIScrTB2-B-LH0ukb1HUXKooLknOfJNwHk10MuMYvA,3619
|
|
|
91
91
|
utilities/pytest_plugins/__init__.py,sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8,35
|
|
92
92
|
utilities/pytest_plugins/pytest_randomly.py,sha256=B1qYVlExGOxTywq2r1SMi5o7btHLk2PNdY_b1p98dkE,409
|
|
93
93
|
utilities/pytest_plugins/pytest_regressions.py,sha256=mnHYBfdprz50UGVkVzV1bZERZN5CFfoF8YbokGxdFwU,1639
|
|
94
|
-
dycw_utilities-0.166.
|
|
95
|
-
dycw_utilities-0.166.
|
|
96
|
-
dycw_utilities-0.166.
|
|
97
|
-
dycw_utilities-0.166.
|
|
98
|
-
dycw_utilities-0.166.
|
|
94
|
+
dycw_utilities-0.166.31.dist-info/METADATA,sha256=_C5N_WrI7n6SDUrEsBQ_knk0sDnF7dl1PgGDkJgPbOw,1700
|
|
95
|
+
dycw_utilities-0.166.31.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
96
|
+
dycw_utilities-0.166.31.dist-info/entry_points.txt,sha256=BOD_SoDxwsfJYOLxhrSXhHP_T7iw-HXI9f2WVkzYxvQ,135
|
|
97
|
+
dycw_utilities-0.166.31.dist-info/licenses/LICENSE,sha256=gppZp16M6nSVpBbUBrNL6JuYfvKwZiKgV7XoKKsHzqo,1066
|
|
98
|
+
dycw_utilities-0.166.31.dist-info/RECORD,,
|
utilities/__init__.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
from logging import Filter, LogRecord, getLogger
|
|
4
|
+
from re import search
|
|
3
5
|
from typing import TYPE_CHECKING, Any, ClassVar, override
|
|
4
6
|
|
|
5
7
|
from pydantic_settings.sources import DEFAULT_PATH
|
|
@@ -21,6 +23,17 @@ if TYPE_CHECKING:
|
|
|
21
23
|
from utilities.types import MaybeSequenceStr
|
|
22
24
|
|
|
23
25
|
|
|
26
|
+
class _SuppressDefaultConfigMessage(Filter):
|
|
27
|
+
@override
|
|
28
|
+
def filter(self, record: LogRecord) -> bool:
|
|
29
|
+
return not search(
|
|
30
|
+
r"^default config file does not exists '.*'$", record.getMessage()
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
getLogger("sopsy.utils").addFilter(_SuppressDefaultConfigMessage())
|
|
35
|
+
|
|
36
|
+
|
|
24
37
|
class SopsBaseSettings(CustomBaseSettings):
|
|
25
38
|
"""Base settings for loading secrets using `sops/age`."""
|
|
26
39
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|