dycw-utilities 0.168.1__py3-none-any.whl → 0.168.2__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dycw-utilities
3
- Version: 0.168.1
3
+ Version: 0.168.2
4
4
  Author-email: Derek Wan <d.wan@icloud.com>
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.12
@@ -1,4 +1,4 @@
1
- utilities/__init__.py,sha256=OrbMLBGcu3xLdMPQ4r4I_hMdXdAIG1S5Jw5pNJuMvfk,60
1
+ utilities/__init__.py,sha256=laZOGwJ0RsMH0EaRNvyAIgJfYrO34zI83hxIX2m8SuE,60
2
2
  utilities/aeventkit.py,sha256=OmDBhYGgbsKrB7cdC5FFpJHUatX9O76eTeKVVTksp2Y,12673
3
3
  utilities/altair.py,sha256=nHdpWt8ZwdUwRQN970MvHd5bRWokNqzHcZQEdSHKRuE,9033
4
4
  utilities/asyncio.py,sha256=60l1IwjnRGeaVphAFiwDIHyfKoZYKY-XGpptUxGiU-M,17034
@@ -55,7 +55,7 @@ utilities/pottery.py,sha256=nA0SsF9irvfC0tk68YAr08tuL9lGRSlBKihSx7Ibk84,3963
55
55
  utilities/pqdm.py,sha256=idv2seRVP2f6NeSfpeEnT5A-tQezaHZKDyeu16g2-0E,3091
56
56
  utilities/psutil.py,sha256=KUlu4lrUw9Zg1V7ZGetpWpGb9DB8l_SSDWGbANFNCPU,2104
57
57
  utilities/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
- utilities/pydantic_settings.py,sha256=wwuvW12ZVhJfoAJoiQpVT8EDVyNm79H3cWJR7u-wMQo,5115
58
+ utilities/pydantic_settings.py,sha256=F_0dRYT9D5rdZamG73G9tMFVoc-dAxroAfMly6gkbtA,5345
59
59
  utilities/pydantic_settings_sops.py,sha256=9Ou6Cx6PiYOU49vtkKqqW1Sdp_i3WlVyg8KkUUKNliM,2310
60
60
  utilities/pyinstrument.py,sha256=hnXaL-4HE7wWBI5JKaPfYTpsrXe68YiuZKahHV0VJn8,841
61
61
  utilities/pytest.py,sha256=6o2qoAPygQLveU8t1JOdzAGmZ96Hs5jFn9OT_mcDNCk,10062
@@ -93,8 +93,8 @@ utilities/zoneinfo.py,sha256=tdIScrTB2-B-LH0ukb1HUXKooLknOfJNwHk10MuMYvA,3619
93
93
  utilities/pytest_plugins/__init__.py,sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8,35
94
94
  utilities/pytest_plugins/pytest_randomly.py,sha256=B1qYVlExGOxTywq2r1SMi5o7btHLk2PNdY_b1p98dkE,409
95
95
  utilities/pytest_plugins/pytest_regressions.py,sha256=mnHYBfdprz50UGVkVzV1bZERZN5CFfoF8YbokGxdFwU,1639
96
- dycw_utilities-0.168.1.dist-info/METADATA,sha256=7jVdRmilyNEQ9D64FlUih9pQEMUGQwKz0SvvbkcKgr4,1699
97
- dycw_utilities-0.168.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
98
- dycw_utilities-0.168.1.dist-info/entry_points.txt,sha256=BOD_SoDxwsfJYOLxhrSXhHP_T7iw-HXI9f2WVkzYxvQ,135
99
- dycw_utilities-0.168.1.dist-info/licenses/LICENSE,sha256=gppZp16M6nSVpBbUBrNL6JuYfvKwZiKgV7XoKKsHzqo,1066
100
- dycw_utilities-0.168.1.dist-info/RECORD,,
96
+ dycw_utilities-0.168.2.dist-info/METADATA,sha256=sRnW_rmJprz7rM-vWg-RijzrqooNKDqAwu1OTOWEI3w,1699
97
+ dycw_utilities-0.168.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
98
+ dycw_utilities-0.168.2.dist-info/entry_points.txt,sha256=BOD_SoDxwsfJYOLxhrSXhHP_T7iw-HXI9f2WVkzYxvQ,135
99
+ dycw_utilities-0.168.2.dist-info/licenses/LICENSE,sha256=gppZp16M6nSVpBbUBrNL6JuYfvKwZiKgV7XoKKsHzqo,1066
100
+ dycw_utilities-0.168.2.dist-info/RECORD,,
utilities/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  from __future__ import annotations
2
2
 
3
- __version__ = "0.168.1"
3
+ __version__ = "0.168.2"
@@ -29,7 +29,7 @@ type PathLikeOrWithSection = PathLike | PathLikeWithSection
29
29
 
30
30
 
31
31
  class CustomBaseSettings(BaseSettings):
32
- """Base settings for loading JSON files."""
32
+ """Base settings for loading JSON/TOML/YAML files."""
33
33
 
34
34
  # paths
35
35
  json_files: ClassVar[Sequence[PathLikeOrWithSection]] = []
@@ -158,8 +158,19 @@ def _get_section(
158
158
  return reduce(lambda acc, el: acc.get(el, {}), always_iterable(section), mapping)
159
159
 
160
160
 
161
+ ##
162
+
163
+
164
+ class HashableBaseSettings(BaseSettings):
165
+ """Base settings for loading JSON files."""
166
+
167
+ # config
168
+ model_config: ClassVar[SettingsConfigDict] = SettingsConfigDict(frozen=True)
169
+
170
+
161
171
  __all__ = [
162
172
  "CustomBaseSettings",
173
+ "HashableBaseSettings",
163
174
  "JsonConfigSectionSettingsSource",
164
175
  "TomlConfigSectionSettingsSource",
165
176
  "YamlConfigSectionSettingsSource",