dycw-utilities 0.129.14__py3-none-any.whl → 0.130.0__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.
- {dycw_utilities-0.129.14.dist-info → dycw_utilities-0.130.0.dist-info}/METADATA +26 -28
- {dycw_utilities-0.129.14.dist-info → dycw_utilities-0.130.0.dist-info}/RECORD +11 -13
- utilities/__init__.py +1 -1
- utilities/asyncio.py +9 -4
- utilities/logging.py +276 -498
- utilities/redis.py +3 -3
- utilities/sqlalchemy.py +8 -2
- utilities/sqlalchemy_polars.py +2 -2
- utilities/traceback.py +102 -901
- utilities/loguru.py +0 -144
- utilities/sys.py +0 -87
- {dycw_utilities-0.129.14.dist-info → dycw_utilities-0.130.0.dist-info}/WHEEL +0 -0
- {dycw_utilities-0.129.14.dist-info → dycw_utilities-0.130.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: dycw-utilities
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.130.0
|
4
4
|
Author-email: Derek Wan <d.wan@icloud.com>
|
5
5
|
License-File: LICENSE
|
6
6
|
Requires-Python: >=3.12
|
@@ -9,7 +9,7 @@ Provides-Extra: logging
|
|
9
9
|
Requires-Dist: atomicwrites<1.5,>=1.4.1; extra == 'logging'
|
10
10
|
Requires-Dist: coloredlogs<15.1,>=15.0.1; extra == 'logging'
|
11
11
|
Requires-Dist: tzlocal<5.4,>=5.3.1; extra == 'logging'
|
12
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
12
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'logging'
|
13
13
|
Provides-Extra: test
|
14
14
|
Requires-Dist: dycw-pytest-only<2.2,>=2.1.1; extra == 'test'
|
15
15
|
Requires-Dist: hypothesis<6.136,>=6.135.2; extra == 'test'
|
@@ -32,7 +32,7 @@ Requires-Dist: atomicwrites<1.5,>=1.4.1; extra == 'zzz-test-altair'
|
|
32
32
|
Requires-Dist: img2pdf<0.7,>=0.6.0; extra == 'zzz-test-altair'
|
33
33
|
Requires-Dist: polars-lts-cpu<1.31,>=1.30.0; extra == 'zzz-test-altair'
|
34
34
|
Requires-Dist: vl-convert-python<1.9,>=1.8.0; extra == 'zzz-test-altair'
|
35
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
35
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-altair'
|
36
36
|
Provides-Extra: zzz-test-asyncio
|
37
37
|
Provides-Extra: zzz-test-atomicwrites
|
38
38
|
Requires-Dist: atomicwrites<1.5,>=1.4.1; extra == 'zzz-test-atomicwrites'
|
@@ -43,20 +43,20 @@ Requires-Dist: cachetools<5.6,>=5.5.2; extra == 'zzz-test-cachetools'
|
|
43
43
|
Provides-Extra: zzz-test-click
|
44
44
|
Requires-Dist: click<8.3,>=8.2.1; extra == 'zzz-test-click'
|
45
45
|
Requires-Dist: sqlalchemy<2.1,>=2.0.41; extra == 'zzz-test-click'
|
46
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
46
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-click'
|
47
47
|
Provides-Extra: zzz-test-contextlib
|
48
48
|
Provides-Extra: zzz-test-contextvars
|
49
49
|
Provides-Extra: zzz-test-cryptography
|
50
|
-
Requires-Dist: cryptography<45.1,>=45.0.
|
50
|
+
Requires-Dist: cryptography<45.1,>=45.0.4; extra == 'zzz-test-cryptography'
|
51
51
|
Provides-Extra: zzz-test-cvxpy
|
52
52
|
Requires-Dist: cvxpy<1.7,>=1.6.5; extra == 'zzz-test-cvxpy'
|
53
53
|
Provides-Extra: zzz-test-dataclasses
|
54
54
|
Requires-Dist: orjson<3.11,>=3.10.15; extra == 'zzz-test-dataclasses'
|
55
55
|
Requires-Dist: polars-lts-cpu<1.31,>=1.30.0; extra == 'zzz-test-dataclasses'
|
56
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
56
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-dataclasses'
|
57
57
|
Provides-Extra: zzz-test-datetime
|
58
58
|
Requires-Dist: tzlocal<5.4,>=5.3.1; extra == 'zzz-test-datetime'
|
59
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
59
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-datetime'
|
60
60
|
Provides-Extra: zzz-test-enum
|
61
61
|
Provides-Extra: zzz-test-errors
|
62
62
|
Provides-Extra: zzz-test-eventkit
|
@@ -75,11 +75,11 @@ Provides-Extra: zzz-test-git
|
|
75
75
|
Provides-Extra: zzz-test-hashlib
|
76
76
|
Requires-Dist: orjson<3.11,>=3.10.15; extra == 'zzz-test-hashlib'
|
77
77
|
Requires-Dist: polars-lts-cpu<1.31,>=1.30.0; extra == 'zzz-test-hashlib'
|
78
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
78
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-hashlib'
|
79
79
|
Provides-Extra: zzz-test-http
|
80
80
|
Requires-Dist: atomicwrites<1.5,>=1.4.1; extra == 'zzz-test-http'
|
81
81
|
Requires-Dist: orjson<3.11,>=3.10.18; extra == 'zzz-test-http'
|
82
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
82
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-http'
|
83
83
|
Provides-Extra: zzz-test-hypothesis
|
84
84
|
Requires-Dist: aiosqlite<0.22,>=0.21.0; extra == 'zzz-test-hypothesis'
|
85
85
|
Requires-Dist: asyncpg<0.31,>=0.30.0; extra == 'zzz-test-hypothesis'
|
@@ -92,12 +92,12 @@ Requires-Dist: redis<6.3,>=6.2.0; extra == 'zzz-test-hypothesis'
|
|
92
92
|
Requires-Dist: sqlalchemy<2.1,>=2.0.41; extra == 'zzz-test-hypothesis'
|
93
93
|
Requires-Dist: tenacity<9.0,>=8.5.0; extra == 'zzz-test-hypothesis'
|
94
94
|
Requires-Dist: tzlocal<5.4,>=5.3.1; extra == 'zzz-test-hypothesis'
|
95
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
95
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-hypothesis'
|
96
96
|
Provides-Extra: zzz-test-ipython
|
97
97
|
Requires-Dist: ipython<9.1,>=9.0.1; extra == 'zzz-test-ipython'
|
98
98
|
Provides-Extra: zzz-test-iterables
|
99
99
|
Requires-Dist: polars-lts-cpu<1.31,>=1.30.0; extra == 'zzz-test-iterables'
|
100
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
100
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-iterables'
|
101
101
|
Provides-Extra: zzz-test-jupyter
|
102
102
|
Requires-Dist: jupyterlab<4.3,>=4.2.0; extra == 'zzz-test-jupyter'
|
103
103
|
Requires-Dist: pandas<2.4,>=2.3.0; extra == 'zzz-test-jupyter'
|
@@ -108,12 +108,10 @@ Requires-Dist: coloredlogs<15.1,>=15.0.1; extra == 'zzz-test-logging'
|
|
108
108
|
Requires-Dist: rich<14.1,>=14.0.0; extra == 'zzz-test-logging'
|
109
109
|
Requires-Dist: tomlkit<0.14,>=0.13.2; extra == 'zzz-test-logging'
|
110
110
|
Requires-Dist: tzlocal<5.4,>=5.3.1; extra == 'zzz-test-logging'
|
111
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
112
|
-
Provides-Extra: zzz-test-loguru
|
113
|
-
Requires-Dist: loguru<0.8,>=0.7.3; extra == 'zzz-test-loguru'
|
111
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-logging'
|
114
112
|
Provides-Extra: zzz-test-luigi
|
115
113
|
Requires-Dist: luigi<3.7,>=3.6.0; extra == 'zzz-test-luigi'
|
116
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
114
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-luigi'
|
117
115
|
Provides-Extra: zzz-test-math
|
118
116
|
Requires-Dist: numpy<2.4,>=2.3.0; extra == 'zzz-test-math'
|
119
117
|
Provides-Extra: zzz-test-memory-profiler
|
@@ -125,7 +123,7 @@ Provides-Extra: zzz-test-numpy
|
|
125
123
|
Requires-Dist: numpy<2.4,>=2.3.0; extra == 'zzz-test-numpy'
|
126
124
|
Provides-Extra: zzz-test-operator
|
127
125
|
Requires-Dist: polars-lts-cpu<1.31,>=1.30.0; extra == 'zzz-test-operator'
|
128
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
126
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-operator'
|
129
127
|
Provides-Extra: zzz-test-optuna
|
130
128
|
Requires-Dist: optuna<4.4,>=4.3.0; extra == 'zzz-test-optuna'
|
131
129
|
Provides-Extra: zzz-test-orjson
|
@@ -133,7 +131,7 @@ Requires-Dist: orjson<3.11,>=3.10.15; extra == 'zzz-test-orjson'
|
|
133
131
|
Requires-Dist: polars-lts-cpu<1.31,>=1.30.0; extra == 'zzz-test-orjson'
|
134
132
|
Requires-Dist: rich<14.1,>=14.0.0; extra == 'zzz-test-orjson'
|
135
133
|
Requires-Dist: tzlocal<5.4,>=5.3.1; extra == 'zzz-test-orjson'
|
136
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
134
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-orjson'
|
137
135
|
Provides-Extra: zzz-test-os
|
138
136
|
Provides-Extra: zzz-test-pathlib
|
139
137
|
Provides-Extra: zzz-test-pickle
|
@@ -141,7 +139,7 @@ Requires-Dist: atomicwrites<1.5,>=1.4.1; extra == 'zzz-test-pickle'
|
|
141
139
|
Provides-Extra: zzz-test-platform
|
142
140
|
Provides-Extra: zzz-test-polars
|
143
141
|
Requires-Dist: polars-lts-cpu<1.31,>=1.30.0; extra == 'zzz-test-polars'
|
144
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
142
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-polars'
|
145
143
|
Provides-Extra: zzz-test-pqdm
|
146
144
|
Requires-Dist: pqdm<0.3,>=0.2.0; extra == 'zzz-test-pqdm'
|
147
145
|
Provides-Extra: zzz-test-pydantic
|
@@ -156,12 +154,12 @@ Requires-Dist: pyrsistent<0.21,>=0.20.0; extra == 'zzz-test-pyrsistent'
|
|
156
154
|
Provides-Extra: zzz-test-pytest
|
157
155
|
Requires-Dist: atomicwrites<1.5,>=1.4.1; extra == 'zzz-test-pytest'
|
158
156
|
Requires-Dist: orjson<3.11,>=3.10.18; extra == 'zzz-test-pytest'
|
159
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
157
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-pytest'
|
160
158
|
Provides-Extra: zzz-test-pytest-regressions
|
161
159
|
Requires-Dist: pytest-regressions<2.9,>=2.8.0; extra == 'zzz-test-pytest-regressions'
|
162
160
|
Provides-Extra: zzz-test-python-dotenv
|
163
161
|
Requires-Dist: python-dotenv<1.2,>=1.1.0; extra == 'zzz-test-python-dotenv'
|
164
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
162
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-python-dotenv'
|
165
163
|
Provides-Extra: zzz-test-random
|
166
164
|
Provides-Extra: zzz-test-re
|
167
165
|
Provides-Extra: zzz-test-redis
|
@@ -171,7 +169,7 @@ Requires-Dist: redis<6.3,>=6.2.0; extra == 'zzz-test-redis'
|
|
171
169
|
Requires-Dist: rich<14.1,>=14.0.0; extra == 'zzz-test-redis'
|
172
170
|
Requires-Dist: tenacity<9.0,>=8.5.0; extra == 'zzz-test-redis'
|
173
171
|
Requires-Dist: tzlocal<5.4,>=5.3.1; extra == 'zzz-test-redis'
|
174
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
172
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-redis'
|
175
173
|
Provides-Extra: zzz-test-rich
|
176
174
|
Requires-Dist: rich<14.1,>=14.0.0; extra == 'zzz-test-rich'
|
177
175
|
Provides-Extra: zzz-test-scipy
|
@@ -179,7 +177,7 @@ Requires-Dist: scipy<1.16,>=1.15.3; extra == 'zzz-test-scipy'
|
|
179
177
|
Provides-Extra: zzz-test-sentinel
|
180
178
|
Provides-Extra: zzz-test-shelve
|
181
179
|
Provides-Extra: zzz-test-slack-sdk
|
182
|
-
Requires-Dist: aiohttp<3.13,>=3.12.
|
180
|
+
Requires-Dist: aiohttp<3.13,>=3.12.12; extra == 'zzz-test-slack-sdk'
|
183
181
|
Requires-Dist: slack-sdk<3.36,>=3.35.0; extra == 'zzz-test-slack-sdk'
|
184
182
|
Provides-Extra: zzz-test-socket
|
185
183
|
Provides-Extra: zzz-test-sqlalchemy
|
@@ -197,7 +195,7 @@ Requires-Dist: nest-asyncio<1.7,>=1.6.0; extra == 'zzz-test-sqlalchemy-polars'
|
|
197
195
|
Requires-Dist: polars-lts-cpu<1.31,>=1.30.0; extra == 'zzz-test-sqlalchemy-polars'
|
198
196
|
Requires-Dist: sqlalchemy<2.1,>=2.0.41; extra == 'zzz-test-sqlalchemy-polars'
|
199
197
|
Requires-Dist: tenacity<9.0,>=8.5.0; extra == 'zzz-test-sqlalchemy-polars'
|
200
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
198
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-sqlalchemy-polars'
|
201
199
|
Provides-Extra: zzz-test-streamlit
|
202
200
|
Requires-Dist: streamlit<1.46,>=1.45.0; extra == 'zzz-test-streamlit'
|
203
201
|
Provides-Extra: zzz-test-sys
|
@@ -205,7 +203,7 @@ Requires-Dist: atomicwrites<1.5,>=1.4.1; extra == 'zzz-test-sys'
|
|
205
203
|
Requires-Dist: rich<14.1,>=14.0.0; extra == 'zzz-test-sys'
|
206
204
|
Requires-Dist: tomlkit<0.14,>=0.13.2; extra == 'zzz-test-sys'
|
207
205
|
Requires-Dist: tzlocal<5.4,>=5.3.1; extra == 'zzz-test-sys'
|
208
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
206
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-sys'
|
209
207
|
Provides-Extra: zzz-test-tempfile
|
210
208
|
Provides-Extra: zzz-test-tenacity
|
211
209
|
Requires-Dist: tenacity<9.0,>=8.5.0; extra == 'zzz-test-tenacity'
|
@@ -216,11 +214,11 @@ Provides-Extra: zzz-test-traceback
|
|
216
214
|
Requires-Dist: rich<14.1,>=14.0.0; extra == 'zzz-test-traceback'
|
217
215
|
Requires-Dist: tomlkit<0.14,>=0.13.2; extra == 'zzz-test-traceback'
|
218
216
|
Requires-Dist: tzlocal<5.4,>=5.3.1; extra == 'zzz-test-traceback'
|
219
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
217
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-traceback'
|
220
218
|
Provides-Extra: zzz-test-types
|
221
219
|
Provides-Extra: zzz-test-typing
|
222
220
|
Requires-Dist: polars-lts-cpu<1.31,>=1.30.0; extra == 'zzz-test-typing'
|
223
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
221
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-typing'
|
224
222
|
Provides-Extra: zzz-test-tzlocal
|
225
223
|
Requires-Dist: tzlocal<5.4,>=5.3.1; extra == 'zzz-test-tzlocal'
|
226
224
|
Provides-Extra: zzz-test-uuid
|
@@ -228,11 +226,11 @@ Provides-Extra: zzz-test-version
|
|
228
226
|
Requires-Dist: tomlkit<0.14,>=0.13.2; extra == 'zzz-test-version'
|
229
227
|
Provides-Extra: zzz-test-warnings
|
230
228
|
Provides-Extra: zzz-test-whenever
|
231
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
229
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-whenever'
|
232
230
|
Provides-Extra: zzz-test-zipfile
|
233
231
|
Provides-Extra: zzz-test-zoneinfo
|
234
232
|
Requires-Dist: tzdata<2025.3,>=2025.2; extra == 'zzz-test-zoneinfo'
|
235
|
-
Requires-Dist: whenever<0.9,>=0.8.
|
233
|
+
Requires-Dist: whenever<0.9,>=0.8.5; extra == 'zzz-test-zoneinfo'
|
236
234
|
Description-Content-Type: text/markdown
|
237
235
|
|
238
236
|
[](https://badge.fury.io/py/dycw-utilities)
|
@@ -1,7 +1,7 @@
|
|
1
|
-
utilities/__init__.py,sha256=
|
1
|
+
utilities/__init__.py,sha256=z4PHcTK2dYMZ5C4Z9jzcKsWhZByOUgEBm_uxlGv4Bgk,60
|
2
2
|
utilities/aiolimiter.py,sha256=mD0wEiqMgwpty4XTbawFpnkkmJS6R4JRsVXFUaoitSU,628
|
3
3
|
utilities/altair.py,sha256=Gpja-flOo-Db0PIPJLJsgzAlXWoKUjPU1qY-DQ829ek,9156
|
4
|
-
utilities/asyncio.py,sha256=
|
4
|
+
utilities/asyncio.py,sha256=lvdgBhuMtxq0dpiwF9g2WMMrit3kqXibN1V5NZ4xdbo,38046
|
5
5
|
utilities/atomicwrites.py,sha256=geFjn9Pwn-tTrtoGjDDxWli9NqbYfy3gGL6ZBctiqSo,5393
|
6
6
|
utilities/atools.py,sha256=IYMuFSFGSKyuQmqD6v5IUtDlz8PPw0Sr87Cub_gRU3M,1168
|
7
7
|
utilities/cachetools.py,sha256=C1zqOg7BYz0IfQFK8e3qaDDgEZxDpo47F15RTfJM37Q,2910
|
@@ -32,8 +32,7 @@ utilities/iterables.py,sha256=mDqw2_0MUVp-P8FklgcaVTi2TXduH0MxbhTDzzhSBho,44915
|
|
32
32
|
utilities/jupyter.py,sha256=ft5JA7fBxXKzP-L9W8f2-wbF0QeYc_2uLQNFDVk4Z-M,2917
|
33
33
|
utilities/libcst.py,sha256=Jto5ppzRzsxn4AD32IS8n0lbgLYXwsVJB6EY8giNZyY,4974
|
34
34
|
utilities/lightweight_charts.py,sha256=0xNfcsrgFI0R9xL25LtSm-W5yhfBI93qQNT6HyaXAhg,2769
|
35
|
-
utilities/logging.py,sha256=
|
36
|
-
utilities/loguru.py,sha256=MEMQVWrdECxk1e3FxGzmOf21vWT9j8CAir98SEXFKPA,3809
|
35
|
+
utilities/logging.py,sha256=0dUW0F0RISy9arU58M6WHn7ACSs3-S4GHDs8ZCkjyNk,18420
|
37
36
|
utilities/luigi.py,sha256=fpH9MbxJDuo6-k9iCXRayFRtiVbUtibCJKugf7ygpv0,5988
|
38
37
|
utilities/math.py,sha256=-mQgbah-dPJwOEWf3SonrFoVZ2AVxMgpeQ3dfVa-oJA,26764
|
39
38
|
utilities/memory_profiler.py,sha256=tf2C51P2lCujPGvRt2Rfc7VEw5LDXmVPCG3z_AvBmbU,962
|
@@ -63,25 +62,24 @@ utilities/pytest_regressions.py,sha256=YI55B7EtLjhz7zPJZ6NK9bWrxrKCKabWZJe1cwcbA
|
|
63
62
|
utilities/python_dotenv.py,sha256=edXsvHZhZnYeqfMfrsRRpj7_9eJI6uizh3xLx8Q9B3w,3228
|
64
63
|
utilities/random.py,sha256=lYdjgxB7GCfU_fwFVl5U-BIM_HV3q6_urL9byjrwDM8,4157
|
65
64
|
utilities/re.py,sha256=5J4d8VwIPFVrX2Eb8zfoxImDv7IwiN_U7mJ07wR2Wvs,3958
|
66
|
-
utilities/redis.py,sha256=
|
65
|
+
utilities/redis.py,sha256=IceT5EjgrebVkGL8X3M35xlqjI2c7zFbyV1P4dExN4M,36037
|
67
66
|
utilities/reprlib.py,sha256=ssYTcBW-TeRh3fhCJv57sopTZHF5FrPyyUg9yp5XBlo,3953
|
68
67
|
utilities/scipy.py,sha256=wZJM7fEgBAkLSYYvSmsg5ac-QuwAI0BGqHVetw1_Hb0,947
|
69
68
|
utilities/sentinel.py,sha256=3jIwgpMekWgDAxPDA_hXMP2St43cPhciKN3LWiZ7kv0,1248
|
70
69
|
utilities/shelve.py,sha256=HZsMwK4tcIfg3sh0gApx4-yjQnrY4o3V3ZRimvRhoW0,738
|
71
70
|
utilities/slack_sdk.py,sha256=ltmzv68aa73CJGqTDvt8L9vDm22YU9iOCo3NCiNd3vA,4347
|
72
71
|
utilities/socket.py,sha256=K77vfREvzoVTrpYKo6MZakol0EYu2q1sWJnnZqL0So0,118
|
73
|
-
utilities/sqlalchemy.py,sha256=
|
74
|
-
utilities/sqlalchemy_polars.py,sha256=
|
72
|
+
utilities/sqlalchemy.py,sha256=IuQ7CIVNl29TG6i81K6fam8NmTmPjtA6OiIN4nIM9W8,37935
|
73
|
+
utilities/sqlalchemy_polars.py,sha256=OPrB_Aqh8KE3hfNqvvXSzqVH5CYgIYrDH13WoLdCzbw,15510
|
75
74
|
utilities/statsmodels.py,sha256=koyiBHvpMcSiBfh99wFUfSggLNx7cuAw3rwyfAhoKpQ,3410
|
76
75
|
utilities/streamlit.py,sha256=U9PJBaKP1IdSykKhPZhIzSPTZsmLsnwbEPZWzNhJPKk,2955
|
77
76
|
utilities/string.py,sha256=XmU-s04qIV_tODnKl2pQiwmHaxzgOqRKU-RyzdrfvSE,620
|
78
|
-
utilities/sys.py,sha256=h0Xr7Vj86wNalvwJVP1wj5Y0kD_VWm1vzuXZ_jw94mE,2743
|
79
77
|
utilities/tempfile.py,sha256=VqmZJAhTJ1OaVywFzk5eqROV8iJbW9XQ_QYAV0bpdRo,1384
|
80
78
|
utilities/tenacity.py,sha256=1PUvODiBVgeqIh7G5TRt5WWMSqjLYkEqP53itT97WQc,4914
|
81
79
|
utilities/text.py,sha256=ymBFlP_cA8OgNnZRVNs7FAh7OG8HxE6YkiLEMZv5g_A,11297
|
82
80
|
utilities/threading.py,sha256=GvBOp4CyhHfN90wGXZuA2VKe9fGzMaEa7oCl4f3nnPU,1009
|
83
81
|
utilities/timer.py,sha256=Rkc49KSpHuC8s7vUxGO9DU55U9I6yDKnchsQqrUCVBs,4075
|
84
|
-
utilities/traceback.py,sha256=
|
82
|
+
utilities/traceback.py,sha256=k3QhUca-643rl11S9uhibfNPlxjavOboCK56036KRcE,8859
|
85
83
|
utilities/types.py,sha256=gP04CcCOyFrG7BgblVCsrrChiuO2x842NDVW-GF7odo,18370
|
86
84
|
utilities/typing.py,sha256=H6ysJkI830aRwLsMKz0SZIw4cpcsm7d6KhQOwr-SDh0,13817
|
87
85
|
utilities/tzdata.py,sha256=yCf70NICwAeazN3_JcXhWvRqCy06XJNQ42j7r6gw3HY,1217
|
@@ -92,7 +90,7 @@ utilities/warnings.py,sha256=un1LvHv70PU-LLv8RxPVmugTzDJkkGXRMZTE2-fTQHw,1771
|
|
92
90
|
utilities/whenever.py,sha256=QbXgFAPuUL7PCp2hajmIP-FFIfIR1J6Y0TxJbeoj60I,18434
|
93
91
|
utilities/zipfile.py,sha256=24lQc9ATcJxHXBPc_tBDiJk48pWyRrlxO2fIsFxU0A8,699
|
94
92
|
utilities/zoneinfo.py,sha256=-5j7IQ9nb7gR43rdgA7ms05im-XuqhAk9EJnQBXxCoQ,1874
|
95
|
-
dycw_utilities-0.
|
96
|
-
dycw_utilities-0.
|
97
|
-
dycw_utilities-0.
|
98
|
-
dycw_utilities-0.
|
93
|
+
dycw_utilities-0.130.0.dist-info/METADATA,sha256=quuIe46-QTNNUiw-aMg0Gfs4UnHJJCeEROqgteW9I98,12989
|
94
|
+
dycw_utilities-0.130.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
95
|
+
dycw_utilities-0.130.0.dist-info/licenses/LICENSE,sha256=gppZp16M6nSVpBbUBrNL6JuYfvKwZiKgV7XoKKsHzqo,1066
|
96
|
+
dycw_utilities-0.130.0.dist-info/RECORD,,
|
utilities/__init__.py
CHANGED
utilities/asyncio.py
CHANGED
@@ -55,7 +55,12 @@ from utilities.errors import repr_error
|
|
55
55
|
from utilities.functions import ensure_int, ensure_not_none
|
56
56
|
from utilities.random import SYSTEM_RANDOM
|
57
57
|
from utilities.sentinel import Sentinel, sentinel
|
58
|
-
from utilities.types import
|
58
|
+
from utilities.types import (
|
59
|
+
MaybeCallableEvent,
|
60
|
+
MaybeType,
|
61
|
+
THashable,
|
62
|
+
TSupportsRichComparison,
|
63
|
+
)
|
59
64
|
|
60
65
|
if TYPE_CHECKING:
|
61
66
|
import datetime as dt
|
@@ -239,7 +244,7 @@ class EnhancedTaskGroup(TaskGroup):
|
|
239
244
|
|
240
245
|
_semaphore: Semaphore | None
|
241
246
|
_timeout: Duration | None
|
242
|
-
_error:
|
247
|
+
_error: MaybeType[BaseException]
|
243
248
|
_stack: AsyncExitStack
|
244
249
|
_timeout_cm: _AsyncGeneratorContextManager[None] | None
|
245
250
|
|
@@ -249,7 +254,7 @@ class EnhancedTaskGroup(TaskGroup):
|
|
249
254
|
*,
|
250
255
|
max_tasks: int | None = None,
|
251
256
|
timeout: Duration | None = None,
|
252
|
-
error:
|
257
|
+
error: MaybeType[BaseException] = TimeoutError,
|
253
258
|
) -> None:
|
254
259
|
super().__init__()
|
255
260
|
self._semaphore = None if max_tasks is None else Semaphore(max_tasks)
|
@@ -1051,7 +1056,7 @@ async def _stream_one(
|
|
1051
1056
|
|
1052
1057
|
@asynccontextmanager
|
1053
1058
|
async def timeout_dur(
|
1054
|
-
*, duration: Duration | None = None, error:
|
1059
|
+
*, duration: Duration | None = None, error: MaybeType[BaseException] = TimeoutError
|
1055
1060
|
) -> AsyncIterator[None]:
|
1056
1061
|
"""Timeout context manager which accepts durations."""
|
1057
1062
|
delay = None if duration is None else datetime_duration_to_float(duration)
|