omlish 0.0.0.dev362__py3-none-any.whl → 0.0.0.dev364__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 omlish might be problematic. Click here for more details.
- omlish/.manifests.json +1 -1
- omlish/__about__.py +2 -2
- omlish/algorithm/distribute.py +3 -0
- omlish/algorithm/toposort.py +3 -0
- omlish/algorithm/unify.py +3 -0
- omlish/argparse/cli.py +1 -1
- omlish/asyncs/utils.py +1 -1
- omlish/codecs/base.py +1 -1
- omlish/codecs/chain.py +3 -0
- omlish/codecs/funcs.py +3 -0
- omlish/concurrent/executors.py +3 -0
- omlish/configs/nginx.py +3 -0
- omlish/configs/types.py +1 -1
- omlish/daemons/reparent.py +3 -0
- omlish/daemons/services.py +1 -1
- omlish/dataclasses/api/classes/conversion.py +1 -1
- omlish/dataclasses/processing/priority.py +3 -0
- omlish/datetimes.py +2 -1
- omlish/diag/pydevd.py +3 -0
- omlish/diag/replserver/console.py +3 -0
- omlish/diag/replserver/server.py +3 -0
- omlish/docker/cli.py +3 -0
- omlish/docker/compose.py +3 -0
- omlish/docker/manifests.py +3 -0
- omlish/formats/json/backends/base.py +3 -0
- omlish/formats/json/literals.py +1 -1
- omlish/formats/json5/__init__.py +4 -0
- omlish/formats/json5/codec.py +19 -0
- omlish/formats/json5/rendering.py +1 -1
- omlish/formats/props.py +3 -0
- omlish/formats/toml/writer.py +3 -0
- omlish/funcs/match.py +3 -0
- omlish/graphs/trees.py +1 -1
- omlish/http/clients/base.py +2 -2
- omlish/http/coro/fdio.py +3 -0
- omlish/http/coro/simple.py +3 -0
- omlish/http/dates.py +3 -0
- omlish/http/multipart.py +3 -0
- omlish/http/versions.py +3 -0
- omlish/inject/multis.py +2 -2
- omlish/io/compress/base.py +3 -0
- omlish/io/coro/readers.py +1 -1
- omlish/io/fileno.py +3 -0
- omlish/io/pyio.py +3 -0
- omlish/lang/__init__.py +1 -1
- omlish/lang/classes/abstract.py +1 -1
- omlish/lang/contextmanagers.py +1 -1
- omlish/lang/strings.py +1 -1
- omlish/lifecycles/abstract.py +3 -0
- omlish/lifecycles/base.py +3 -0
- omlish/lifecycles/contextmanagers.py +3 -0
- omlish/lifecycles/controller.py +3 -0
- omlish/lifecycles/manager.py +3 -0
- omlish/lifecycles/states.py +3 -0
- omlish/lifecycles/transitions.py +3 -0
- omlish/lite/check.py +1 -1
- omlish/lite/pycharm.py +3 -0
- omlish/lite/runtime.py +3 -0
- omlish/lite/secrets.py +3 -0
- omlish/manifests/types.py +3 -0
- omlish/marshal/naming.py +3 -0
- omlish/marshal/proxy.py +3 -0
- omlish/marshal/registries.py +3 -0
- omlish/multiprocessing/proxies.py +3 -0
- omlish/multiprocessing/spawn.py +3 -0
- omlish/os/deathsig.py +3 -0
- omlish/os/fcntl.py +3 -0
- omlish/os/filemodes.py +3 -0
- omlish/os/files.py +3 -0
- omlish/os/linux.py +3 -0
- omlish/os/mangle.py +1 -1
- omlish/os/paths.py +3 -0
- omlish/os/pidfiles/cli.py +3 -0
- omlish/os/signals.py +3 -0
- omlish/os/sizes.py +3 -0
- omlish/os/temp.py +3 -0
- omlish/reflect/ops.py +3 -0
- omlish/reflect/subst.py +3 -0
- omlish/specs/irc/messages/messages.py +1 -1
- omlish/specs/irc/numerics/formats.py +3 -0
- omlish/specs/irc/protocol/message.py +3 -0
- omlish/specs/irc/protocol/nuh.py +3 -0
- omlish/specs/irc/protocol/parsing.py +3 -0
- omlish/specs/irc/protocol/rendering.py +3 -0
- omlish/specs/irc/protocol/tags.py +3 -0
- omlish/specs/irc/protocol/utils.py +3 -0
- omlish/specs/jsonrpc/errors.py +3 -0
- omlish/specs/jsonrpc/marshal.py +3 -0
- omlish/specs/jsonschema/keywords/parse.py +11 -11
- omlish/sql/alchemy/asyncs.py +6 -3
- omlish/sql/alchemy/duckdb.py +3 -0
- omlish/sql/alchemy/exprs.py +3 -0
- omlish/sql/alchemy/secrets.py +4 -1
- omlish/sql/alchemy/sqlean.py +3 -0
- omlish/sql/tabledefs/alchemy.py +3 -0
- omlish/sql/tabledefs/dtypes.py +3 -0
- omlish/sql/tabledefs/lower.py +3 -0
- omlish/sql/tabledefs/marshal.py +3 -0
- omlish/subprocesses/run.py +2 -2
- omlish/term/vt100/c.py +3 -0
- omlish/testing/pytest/marks.py +3 -0
- omlish/testing/pytest/plugins/asyncs/backends/asyncio.py +3 -0
- omlish/testing/pytest/plugins/asyncs/backends/base.py +3 -0
- omlish/testing/pytest/plugins/asyncs/backends/trio.py +3 -0
- omlish/testing/pytest/plugins/asyncs/backends/trio_asyncio.py +3 -0
- omlish/testing/pytest/plugins/asyncs/utils.py +3 -0
- omlish/testing/pytest/plugins/depskip.py +3 -0
- omlish/testing/pytest/plugins/logging.py +3 -0
- omlish/testing/pytest/plugins/managermarks.py +3 -0
- omlish/testing/pytest/plugins/pydevd.py +3 -0
- omlish/testing/pytest/plugins/repeat.py +3 -0
- omlish/testing/pytest/plugins/skips.py +3 -0
- omlish/testing/pytest/plugins/spacing.py +3 -0
- omlish/testing/pytest/plugins/utils.py +3 -0
- omlish/text/go/quoting.py +3 -0
- omlish/text/parts.py +1 -1
- omlish/text/templating.py +31 -0
- {omlish-0.0.0.dev362.dist-info → omlish-0.0.0.dev364.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev362.dist-info → omlish-0.0.0.dev364.dist-info}/RECORD +123 -123
- {omlish-0.0.0.dev362.dist-info → omlish-0.0.0.dev364.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev362.dist-info → omlish-0.0.0.dev364.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev362.dist-info → omlish-0.0.0.dev364.dist-info}/licenses/LICENSE +0 -0
- {omlish-0.0.0.dev362.dist-info → omlish-0.0.0.dev364.dist-info}/top_level.txt +0 -0
omlish/lite/runtime.py
CHANGED
omlish/lite/secrets.py
CHANGED
omlish/manifests/types.py
CHANGED
omlish/marshal/naming.py
CHANGED
omlish/marshal/proxy.py
CHANGED
omlish/marshal/registries.py
CHANGED
omlish/multiprocessing/spawn.py
CHANGED
omlish/os/deathsig.py
CHANGED
omlish/os/fcntl.py
CHANGED
omlish/os/filemodes.py
CHANGED
omlish/os/files.py
CHANGED
omlish/os/linux.py
CHANGED
omlish/os/mangle.py
CHANGED
omlish/os/paths.py
CHANGED
omlish/os/pidfiles/cli.py
CHANGED
omlish/os/signals.py
CHANGED
omlish/os/sizes.py
CHANGED
omlish/os/temp.py
CHANGED
omlish/reflect/ops.py
CHANGED
omlish/reflect/subst.py
CHANGED
omlish/specs/irc/protocol/nuh.py
CHANGED
omlish/specs/jsonrpc/errors.py
CHANGED
omlish/specs/jsonrpc/marshal.py
CHANGED
|
@@ -74,25 +74,25 @@ class KeywordParser:
|
|
|
74
74
|
|
|
75
75
|
def parse_keyword(self, cls: type[KeywordT], v: ta.Any) -> KeywordT:
|
|
76
76
|
if issubclass(cls, AnyKeyword):
|
|
77
|
-
return cls(v)
|
|
77
|
+
return cls(v)
|
|
78
78
|
|
|
79
79
|
elif issubclass(cls, AnyArrayKeyword):
|
|
80
|
-
return cls(tuple(check.isinstance(v, ta.Sequence)))
|
|
80
|
+
return cls(tuple(check.isinstance(v, ta.Sequence)))
|
|
81
81
|
|
|
82
82
|
elif issubclass(cls, BooleanKeyword):
|
|
83
|
-
return cls(check.isinstance(v, bool))
|
|
83
|
+
return cls(check.isinstance(v, bool))
|
|
84
84
|
|
|
85
85
|
elif issubclass(cls, BooleanOrKeywordsKeyword):
|
|
86
86
|
if isinstance(v, bool):
|
|
87
|
-
return cls(v)
|
|
87
|
+
return cls(v)
|
|
88
88
|
else:
|
|
89
|
-
return cls(self.parse_keywords(v))
|
|
89
|
+
return cls(self.parse_keywords(v))
|
|
90
90
|
|
|
91
91
|
elif issubclass(cls, NumberKeyword):
|
|
92
|
-
return cls(check.isinstance(v, (int, float)))
|
|
92
|
+
return cls(check.isinstance(v, (int, float)))
|
|
93
93
|
|
|
94
94
|
elif issubclass(cls, StrKeyword):
|
|
95
|
-
return cls(check.isinstance(v, str))
|
|
95
|
+
return cls(check.isinstance(v, str))
|
|
96
96
|
|
|
97
97
|
elif issubclass(cls, StrOrStrArrayKeyword):
|
|
98
98
|
ss: str | ta.Sequence[str]
|
|
@@ -102,16 +102,16 @@ class KeywordParser:
|
|
|
102
102
|
ss = col.seq_of(check.of_isinstance(str))(v)
|
|
103
103
|
else:
|
|
104
104
|
raise TypeError(v)
|
|
105
|
-
return cls(ss)
|
|
105
|
+
return cls(ss)
|
|
106
106
|
|
|
107
107
|
elif issubclass(cls, KeywordsKeyword):
|
|
108
|
-
return cls(self.parse_keywords(v))
|
|
108
|
+
return cls(self.parse_keywords(v))
|
|
109
109
|
|
|
110
110
|
elif issubclass(cls, KeywordsArrayKeyword):
|
|
111
|
-
return cls(tuple(self.parse_keywords(e) for e in v))
|
|
111
|
+
return cls(tuple(self.parse_keywords(e) for e in v))
|
|
112
112
|
|
|
113
113
|
elif issubclass(cls, StrToKeywordsKeyword):
|
|
114
|
-
return cls({k: self.parse_keywords(mv) for k, mv in v.items()})
|
|
114
|
+
return cls({k: self.parse_keywords(mv) for k, mv in v.items()})
|
|
115
115
|
|
|
116
116
|
else:
|
|
117
117
|
raise TypeError(cls)
|
omlish/sql/alchemy/asyncs.py
CHANGED
|
@@ -16,9 +16,12 @@ T = ta.TypeVar('T')
|
|
|
16
16
|
P = ta.ParamSpec('P')
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
AsyncEngineLike = ta.Union[saa.AsyncEngine, 'AsyncEngine']
|
|
20
|
-
AsyncConnectionLike = ta.Union[saa.AsyncConnection, 'AsyncConnection']
|
|
21
|
-
AsyncTransactionLike = ta.Union[saa.AsyncTransaction, 'AsyncTransaction']
|
|
19
|
+
AsyncEngineLike: ta.TypeAlias = ta.Union[saa.AsyncEngine, 'AsyncEngine']
|
|
20
|
+
AsyncConnectionLike: ta.TypeAlias = ta.Union[saa.AsyncConnection, 'AsyncConnection']
|
|
21
|
+
AsyncTransactionLike: ta.TypeAlias = ta.Union[saa.AsyncTransaction, 'AsyncTransaction']
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
##
|
|
22
25
|
|
|
23
26
|
|
|
24
27
|
class AsyncTransaction:
|
omlish/sql/alchemy/duckdb.py
CHANGED
omlish/sql/alchemy/exprs.py
CHANGED
omlish/sql/alchemy/secrets.py
CHANGED
omlish/sql/alchemy/sqlean.py
CHANGED
omlish/sql/tabledefs/alchemy.py
CHANGED
omlish/sql/tabledefs/dtypes.py
CHANGED
omlish/sql/tabledefs/lower.py
CHANGED
omlish/sql/tabledefs/marshal.py
CHANGED
omlish/subprocesses/run.py
CHANGED
|
@@ -92,7 +92,7 @@ class SubprocessRun:
|
|
|
92
92
|
) -> SubprocessRunOutput:
|
|
93
93
|
if subprocesses is None:
|
|
94
94
|
subprocesses = self._DEFAULT_SUBPROCESSES
|
|
95
|
-
return check.not_none(subprocesses).run_(self.replace(**kwargs))
|
|
95
|
+
return check.not_none(subprocesses).run_(self.replace(**kwargs))
|
|
96
96
|
|
|
97
97
|
_DEFAULT_ASYNC_SUBPROCESSES: ta.ClassVar[ta.Optional[ta.Any]] = None # AbstractAsyncSubprocesses
|
|
98
98
|
|
|
@@ -103,7 +103,7 @@ class SubprocessRun:
|
|
|
103
103
|
) -> SubprocessRunOutput:
|
|
104
104
|
if async_subprocesses is None:
|
|
105
105
|
async_subprocesses = self._DEFAULT_ASYNC_SUBPROCESSES
|
|
106
|
-
return await check.not_none(async_subprocesses).run_(self.replace(**kwargs))
|
|
106
|
+
return await check.not_none(async_subprocesses).run_(self.replace(**kwargs))
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
SubprocessRun._FIELD_NAMES = frozenset(fld.name for fld in dc.fields(SubprocessRun)) # noqa
|
omlish/term/vt100/c.py
CHANGED
omlish/testing/pytest/marks.py
CHANGED