omlish 0.0.0.dev466__py3-none-any.whl → 0.0.0.dev467__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.
- omlish/__about__.py +5 -5
- omlish/lang/__init__.py +1 -0
- omlish/lang/contextmanagers.py +12 -0
- {omlish-0.0.0.dev466.dist-info → omlish-0.0.0.dev467.dist-info}/METADATA +7 -7
- {omlish-0.0.0.dev466.dist-info → omlish-0.0.0.dev467.dist-info}/RECORD +9 -9
- {omlish-0.0.0.dev466.dist-info → omlish-0.0.0.dev467.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev466.dist-info → omlish-0.0.0.dev467.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev466.dist-info → omlish-0.0.0.dev467.dist-info}/licenses/LICENSE +0 -0
- {omlish-0.0.0.dev466.dist-info → omlish-0.0.0.dev467.dist-info}/top_level.txt +0 -0
omlish/__about__.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
__version__ = '0.0.0.
|
|
2
|
-
__revision__ = '
|
|
1
|
+
__version__ = '0.0.0.dev467'
|
|
2
|
+
__revision__ = '6af5e3e662a690b664fc967f7c9d0b74ce820cce'
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
#
|
|
@@ -79,7 +79,7 @@ class Project(ProjectBase):
|
|
|
79
79
|
],
|
|
80
80
|
|
|
81
81
|
'misc': [
|
|
82
|
-
'wrapt ~=
|
|
82
|
+
'wrapt ~= 2.0',
|
|
83
83
|
],
|
|
84
84
|
|
|
85
85
|
'secrets': [
|
|
@@ -96,10 +96,10 @@ class Project(ProjectBase):
|
|
|
96
96
|
# 'psycopg ~= 3.2',
|
|
97
97
|
|
|
98
98
|
'pymysql ~= 1.1',
|
|
99
|
-
# 'mysql-connector-python ~= 9.
|
|
99
|
+
# 'mysql-connector-python ~= 9.5',
|
|
100
100
|
# 'mysqlclient ~= 2.2',
|
|
101
101
|
|
|
102
|
-
'aiomysql ~= 0.
|
|
102
|
+
'aiomysql ~= 0.3',
|
|
103
103
|
'aiosqlite ~= 0.21',
|
|
104
104
|
'asyncpg ~= 0.30',
|
|
105
105
|
|
omlish/lang/__init__.py
CHANGED
omlish/lang/contextmanagers.py
CHANGED
|
@@ -176,6 +176,18 @@ async def async_maybe_managing(obj: T) -> ta.AsyncGenerator[T]:
|
|
|
176
176
|
yield obj
|
|
177
177
|
|
|
178
178
|
|
|
179
|
+
@contextlib.asynccontextmanager
|
|
180
|
+
async def async_or_sync_maybe_managing(obj: T) -> ta.AsyncGenerator[T]:
|
|
181
|
+
if isinstance(obj, ta.AsyncContextManager):
|
|
182
|
+
async with obj:
|
|
183
|
+
yield obj
|
|
184
|
+
elif isinstance(obj, ta.ContextManager):
|
|
185
|
+
with obj:
|
|
186
|
+
yield obj
|
|
187
|
+
else:
|
|
188
|
+
yield obj
|
|
189
|
+
|
|
190
|
+
|
|
179
191
|
##
|
|
180
192
|
|
|
181
193
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: omlish
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.dev467
|
|
4
4
|
Summary: omlish
|
|
5
5
|
Author: wrmsr
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -33,12 +33,12 @@ Requires-Dist: pyyaml~=6.0; extra == "all"
|
|
|
33
33
|
Requires-Dist: cbor2~=5.7; extra == "all"
|
|
34
34
|
Requires-Dist: cloudpickle~=3.1; extra == "all"
|
|
35
35
|
Requires-Dist: httpx[http2]~=0.28; extra == "all"
|
|
36
|
-
Requires-Dist: wrapt~=
|
|
36
|
+
Requires-Dist: wrapt~=2.0; extra == "all"
|
|
37
37
|
Requires-Dist: cryptography~=46.0; extra == "all"
|
|
38
38
|
Requires-Dist: sqlalchemy[asyncio]~=2.0; extra == "all"
|
|
39
39
|
Requires-Dist: pg8000~=1.31; extra == "all"
|
|
40
40
|
Requires-Dist: pymysql~=1.1; extra == "all"
|
|
41
|
-
Requires-Dist: aiomysql~=0.
|
|
41
|
+
Requires-Dist: aiomysql~=0.3; extra == "all"
|
|
42
42
|
Requires-Dist: aiosqlite~=0.21; extra == "all"
|
|
43
43
|
Requires-Dist: asyncpg~=0.30; extra == "all"
|
|
44
44
|
Requires-Dist: apsw~=3.50; extra == "all"
|
|
@@ -53,7 +53,7 @@ Requires-Dist: asttokens~=3.0; extra == "all"
|
|
|
53
53
|
Requires-Dist: executing~=2.2; extra == "all"
|
|
54
54
|
Requires-Dist: orjson~=3.11; extra == "all"
|
|
55
55
|
Requires-Dist: pyyaml~=6.0; extra == "all"
|
|
56
|
-
Requires-Dist: wrapt~=
|
|
56
|
+
Requires-Dist: wrapt~=2.0; extra == "all"
|
|
57
57
|
Provides-Extra: async
|
|
58
58
|
Requires-Dist: anyio~=4.11; extra == "async"
|
|
59
59
|
Requires-Dist: sniffio~=1.3; extra == "async"
|
|
@@ -78,7 +78,7 @@ Requires-Dist: cloudpickle~=3.1; extra == "formats"
|
|
|
78
78
|
Provides-Extra: http
|
|
79
79
|
Requires-Dist: httpx[http2]~=0.28; extra == "http"
|
|
80
80
|
Provides-Extra: misc
|
|
81
|
-
Requires-Dist: wrapt~=
|
|
81
|
+
Requires-Dist: wrapt~=2.0; extra == "misc"
|
|
82
82
|
Provides-Extra: secrets
|
|
83
83
|
Requires-Dist: cryptography~=46.0; extra == "secrets"
|
|
84
84
|
Provides-Extra: sqlalchemy
|
|
@@ -86,7 +86,7 @@ Requires-Dist: sqlalchemy[asyncio]~=2.0; extra == "sqlalchemy"
|
|
|
86
86
|
Provides-Extra: sqldrivers
|
|
87
87
|
Requires-Dist: pg8000~=1.31; extra == "sqldrivers"
|
|
88
88
|
Requires-Dist: pymysql~=1.1; extra == "sqldrivers"
|
|
89
|
-
Requires-Dist: aiomysql~=0.
|
|
89
|
+
Requires-Dist: aiomysql~=0.3; extra == "sqldrivers"
|
|
90
90
|
Requires-Dist: aiosqlite~=0.21; extra == "sqldrivers"
|
|
91
91
|
Requires-Dist: asyncpg~=0.30; extra == "sqldrivers"
|
|
92
92
|
Requires-Dist: apsw~=3.50; extra == "sqldrivers"
|
|
@@ -104,7 +104,7 @@ Requires-Dist: asttokens~=3.0; extra == "plus"
|
|
|
104
104
|
Requires-Dist: executing~=2.2; extra == "plus"
|
|
105
105
|
Requires-Dist: orjson~=3.11; extra == "plus"
|
|
106
106
|
Requires-Dist: pyyaml~=6.0; extra == "plus"
|
|
107
|
-
Requires-Dist: wrapt~=
|
|
107
|
+
Requires-Dist: wrapt~=2.0; extra == "plus"
|
|
108
108
|
Dynamic: license-file
|
|
109
109
|
|
|
110
110
|
# Overview
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
omlish/.omlish-manifests.json,sha256=FLw7xkPiSXuImZgqSP8BwrEib2R1doSzUPLUkc-QUIA,8410
|
|
2
|
-
omlish/__about__.py,sha256=
|
|
2
|
+
omlish/__about__.py,sha256=j1W4ZyB_sk2AAWcwpXGSBHgTdg-WSXXME0s51aTVi9g,3611
|
|
3
3
|
omlish/__init__.py,sha256=SsyiITTuK0v74XpKV8dqNaCmjOlan1JZKrHQv5rWKPA,253
|
|
4
4
|
omlish/c3.py,sha256=ZNIMl1kwg3qdei4DiUrJPQe5M81S1e76N-GuNSwLBAE,8683
|
|
5
5
|
omlish/cached.py,sha256=MLap_p0rdGoDIMVhXVHm1tsbcWobJF0OanoodV03Ju8,542
|
|
@@ -414,14 +414,14 @@ omlish/iterators/recipes.py,sha256=wOwOZg-zWG9Zc3wcAxJFSe2rtavVBYwZOfG09qYEx_4,4
|
|
|
414
414
|
omlish/iterators/tools.py,sha256=M16LXrJhMdsz5ea2qH0vws30ZvhQuQSCVFSLpRf_gTg,2096
|
|
415
415
|
omlish/iterators/transforms.py,sha256=YHVdD9nBkS1k4kogi4Ba0UOTU_pKkuX9jGw1Tqj3UMw,3598
|
|
416
416
|
omlish/iterators/unique.py,sha256=BSE-eanva8byFCJi09Nt2zzTsVr8LnTqY1PIInGYRs0,1396
|
|
417
|
-
omlish/lang/__init__.py,sha256=
|
|
417
|
+
omlish/lang/__init__.py,sha256=UhApcrcf5BXIfgyQwhLGp_PEUlVviJ7mkQrqfl0M5dM,10889
|
|
418
418
|
omlish/lang/asyncs.py,sha256=iIHJp7nvgJVj7zS0Ji7NsVSzz54vkzrj0Snc83dxe9g,1965
|
|
419
419
|
omlish/lang/attrstorage.py,sha256=UUnoENCMQF3twBfxBcIKa5mpXsAxWnNYDayhU8xgmpU,5224
|
|
420
420
|
omlish/lang/casing.py,sha256=dmk6gPwfr7Tqp3g2d8d_zZ8ir8TWvXHCEZYl-ECkJS0,4940
|
|
421
421
|
omlish/lang/clsdct.py,sha256=HAGIvBSbCefzRjXriwYSBLO7QHKRv2UsE78jixOb-fA,1828
|
|
422
422
|
omlish/lang/collections.py,sha256=kVMp1JJ6ycvKzuiOmf2ZF5Eg2mm3vJGPjkUcV_IACMk,2528
|
|
423
423
|
omlish/lang/comparison.py,sha256=MOwEG0Yny-jBPHO9kQto9FSRyeNpQW24UABsghkrHxY,1356
|
|
424
|
-
omlish/lang/contextmanagers.py,sha256=
|
|
424
|
+
omlish/lang/contextmanagers.py,sha256=fM7N7Z9h1dIhaWYcmFLSEOqiXHVP61A5uaK9y2A0iPE,10345
|
|
425
425
|
omlish/lang/datetimes.py,sha256=01tg21QOx-PWDlm-CSFTalym3vpqF0EKzeinmtcVNoU,379
|
|
426
426
|
omlish/lang/descriptors.py,sha256=sVJ1Pr4ihp26Tu9UCvDSyfSf-DhBnFGnbpYIFF32c7g,6877
|
|
427
427
|
omlish/lang/enums.py,sha256=F9tflHfaAoV2MpyuhZzpfX9-H55M3zNa9hCszsngEo8,111
|
|
@@ -831,9 +831,9 @@ omlish/typedvalues/marshal.py,sha256=2xqX6JllhtGpmeYkU7C-qzgU__0x-vd6CzYbAsocQlc
|
|
|
831
831
|
omlish/typedvalues/of_.py,sha256=UXkxSj504WI2UrFlqdZJbu2hyDwBhL7XVrc2qdR02GQ,1309
|
|
832
832
|
omlish/typedvalues/reflect.py,sha256=PAvKW6T4cW7u--iX80w3HWwZUS3SmIZ2_lQjT65uAyk,1026
|
|
833
833
|
omlish/typedvalues/values.py,sha256=ym46I-q2QJ_6l4UlERqv3yj87R-kp8nCKMRph0xQ3UA,1307
|
|
834
|
-
omlish-0.0.0.
|
|
835
|
-
omlish-0.0.0.
|
|
836
|
-
omlish-0.0.0.
|
|
837
|
-
omlish-0.0.0.
|
|
838
|
-
omlish-0.0.0.
|
|
839
|
-
omlish-0.0.0.
|
|
834
|
+
omlish-0.0.0.dev467.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
|
835
|
+
omlish-0.0.0.dev467.dist-info/METADATA,sha256=G93jyKvKIvLBs-CUkIOj2oC_fClPJlHOBA9dYmrU5tw,18999
|
|
836
|
+
omlish-0.0.0.dev467.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
837
|
+
omlish-0.0.0.dev467.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
|
|
838
|
+
omlish-0.0.0.dev467.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
|
|
839
|
+
omlish-0.0.0.dev467.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|