omlish 0.0.0.dev342__py3-none-any.whl → 0.0.0.dev344__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 +2 -2
- omlish/algorithm/distribute.py +1 -1
- omlish/algorithm/toposort.py +1 -1
- omlish/argparse/cli.py +1 -1
- omlish/asyncs/asyncio/channels.py +1 -1
- omlish/asyncs/asyncio/sockets.py +1 -1
- omlish/asyncs/asyncio/streams.py +1 -1
- omlish/asyncs/asyncio/subprocesses.py +1 -1
- omlish/asyncs/asyncio/timeouts.py +1 -1
- omlish/asyncs/asyncio/utils.py +1 -1
- omlish/asyncs/bluelet/api.py +1 -1
- omlish/asyncs/bluelet/core.py +1 -1
- omlish/asyncs/bluelet/events.py +1 -1
- omlish/asyncs/bluelet/files.py +1 -1
- omlish/asyncs/bluelet/runner.py +1 -1
- omlish/asyncs/bluelet/sockets.py +1 -1
- omlish/asyncs/buffers.py +1 -1
- omlish/asyncs/ioproxy/io.py +1 -1
- omlish/asyncs/ioproxy/proxier.py +1 -1
- omlish/asyncs/ioproxy/proxy.py +1 -1
- omlish/asyncs/ioproxy/typing.py +1 -1
- omlish/bootstrap/diag.py +1 -1
- omlish/bootstrap/main.py +1 -1
- omlish/bootstrap/sys.py +1 -1
- omlish/collections/abc.py +1 -1
- omlish/collections/ordered.py +6 -0
- omlish/collections/unmodifiable.py +9 -0
- omlish/configs/formats.py +1 -1
- omlish/configs/nginx.py +1 -1
- omlish/configs/processing/flattening.py +2 -2
- omlish/configs/processing/inheritance.py +1 -1
- omlish/configs/processing/matching.py +1 -1
- omlish/configs/processing/merging.py +1 -1
- omlish/configs/processing/names.py +1 -1
- omlish/configs/processing/rewriting.py +1 -1
- omlish/configs/processing/strings.py +1 -1
- omlish/configs/shadow.py +1 -1
- omlish/configs/types.py +1 -1
- omlish/datetimes.py +1 -1
- omlish/diag/lslocks.py +1 -1
- omlish/diag/lsof.py +1 -1
- omlish/diag/ps.py +1 -1
- omlish/docker/detect.py +1 -1
- omlish/docker/ns1.py +1 -1
- omlish/docker/ports.py +1 -1
- omlish/formats/dotenv.py +1 -1
- omlish/formats/edn/parsing.py +1 -1
- omlish/formats/ini/sections.py +1 -1
- omlish/formats/props.py +1 -1
- omlish/formats/toml/parser.py +1 -1
- omlish/http/coro/fdio.py +1 -1
- omlish/http/coro/server.py +1 -1
- omlish/http/coro/simple.py +1 -1
- omlish/http/coro/sockets.py +1 -1
- omlish/http/handlers.py +1 -1
- omlish/http/parsing.py +1 -1
- omlish/http/versions.py +1 -1
- omlish/io/buffers.py +1 -1
- omlish/io/fdio/handlers.py +1 -1
- omlish/io/fdio/kqueue.py +1 -1
- omlish/io/fdio/manager.py +1 -1
- omlish/io/fdio/pollers.py +1 -1
- omlish/io/fileno.py +1 -1
- omlish/lang/attrs.py +3 -0
- omlish/lite/check.py +1 -1
- omlish/lite/configs.py +1 -1
- omlish/lite/contextmanagers.py +1 -1
- omlish/lite/dataclasses.py +1 -1
- omlish/lite/imports.py +1 -1
- omlish/lite/inject.py +1 -1
- omlish/lite/marshal.py +1 -1
- omlish/lite/maybes.py +1 -1
- omlish/lite/pycharm.py +1 -1
- omlish/lite/reprs.py +1 -1
- omlish/lite/secrets.py +1 -1
- omlish/lite/timeouts.py +1 -1
- omlish/lite/types.py +1 -1
- omlish/logs/callers.py +1 -1
- omlish/logs/filters.py +1 -1
- omlish/logs/handlers.py +1 -1
- omlish/logs/json.py +1 -1
- omlish/logs/protocol.py +1 -1
- omlish/logs/standard.py +1 -1
- omlish/logs/timing.py +1 -1
- omlish/manifests/base.py +1 -1
- omlish/manifests/load.py +1 -1
- omlish/manifests/types.py +1 -1
- omlish/os/atomics.py +1 -1
- omlish/os/fcntl.py +1 -1
- omlish/os/filemodes.py +1 -1
- omlish/os/files.py +1 -1
- omlish/os/forkhooks.py +1 -1
- omlish/os/journald.py +1 -1
- omlish/os/linux.py +1 -1
- omlish/os/mangle.py +1 -1
- omlish/os/paths.py +1 -1
- omlish/os/pidfiles/manager.py +1 -1
- omlish/os/pidfiles/pidfile.py +1 -1
- omlish/os/pidfiles/pinning.py +1 -1
- omlish/os/signals.py +1 -1
- omlish/os/temp.py +1 -1
- omlish/secrets/ssl.py +1 -1
- omlish/secrets/tempssl.py +1 -1
- omlish/sockets/addresses.py +1 -1
- omlish/sockets/bind.py +1 -1
- omlish/sockets/handlers.py +1 -1
- omlish/sockets/io.py +1 -1
- omlish/sockets/ports.py +1 -1
- omlish/sockets/server/handlers.py +1 -1
- omlish/sockets/server/server.py +1 -1
- omlish/sockets/server/ssl.py +1 -1
- omlish/sockets/server/threading.py +1 -1
- omlish/sockets/wait.py +1 -1
- omlish/sql/queries/params.py +4 -1
- omlish/subprocesses/async_.py +1 -1
- omlish/subprocesses/base.py +1 -1
- omlish/subprocesses/editor.py +1 -1
- omlish/subprocesses/run.py +1 -1
- omlish/subprocesses/sync.py +1 -1
- omlish/subprocesses/utils.py +1 -1
- omlish/subprocesses/wrap.py +1 -1
- omlish/term/progressbar.py +1 -1
- omlish/text/glyphsplit.py +1 -1
- omlish/text/indent.py +1 -1
- omlish/text/mangle.py +1 -1
- omlish/text/minja.py +1 -1
- omlish/typedvalues/accessor.py +1 -1
- omlish/typedvalues/collection.py +1 -1
- omlish/typedvalues/consumer.py +1 -1
- {omlish-0.0.0.dev342.dist-info → omlish-0.0.0.dev344.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev342.dist-info → omlish-0.0.0.dev344.dist-info}/RECORD +135 -135
- {omlish-0.0.0.dev342.dist-info → omlish-0.0.0.dev344.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev342.dist-info → omlish-0.0.0.dev344.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev342.dist-info → omlish-0.0.0.dev344.dist-info}/licenses/LICENSE +0 -0
- {omlish-0.0.0.dev342.dist-info → omlish-0.0.0.dev344.dist-info}/top_level.txt +0 -0
omlish/__about__.py
CHANGED
omlish/algorithm/distribute.py
CHANGED
omlish/algorithm/toposort.py
CHANGED
omlish/argparse/cli.py
CHANGED
omlish/asyncs/asyncio/sockets.py
CHANGED
omlish/asyncs/asyncio/streams.py
CHANGED
omlish/asyncs/asyncio/utils.py
CHANGED
omlish/asyncs/bluelet/api.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ruff: noqa: UP006 UP007
|
1
|
+
# ruff: noqa: UP006 UP007 UP045
|
2
2
|
# @omlish-lite
|
3
3
|
# Based on bluelet ( https://github.com/sampsyo/bluelet ) by Adrian Sampson, original license:
|
4
4
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
omlish/asyncs/bluelet/core.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ruff: noqa: UP006 UP007
|
1
|
+
# ruff: noqa: UP006 UP007 UP045
|
2
2
|
# @omlish-lite
|
3
3
|
# Based on bluelet ( https://github.com/sampsyo/bluelet ) by Adrian Sampson, original license:
|
4
4
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
omlish/asyncs/bluelet/events.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ruff: noqa: UP007
|
1
|
+
# ruff: noqa: UP007 UP045
|
2
2
|
# @omlish-lite
|
3
3
|
# Based on bluelet ( https://github.com/sampsyo/bluelet ) by Adrian Sampson, original license:
|
4
4
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
omlish/asyncs/bluelet/files.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ruff: noqa: UP006 UP007
|
1
|
+
# ruff: noqa: UP006 UP007 UP045
|
2
2
|
# @omlish-lite
|
3
3
|
# Based on bluelet ( https://github.com/sampsyo/bluelet ) by Adrian Sampson, original license:
|
4
4
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
omlish/asyncs/bluelet/runner.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ruff: noqa: UP006 UP007
|
1
|
+
# ruff: noqa: UP006 UP007 UP045
|
2
2
|
# @omlish-lite
|
3
3
|
# Based on bluelet ( https://github.com/sampsyo/bluelet ) by Adrian Sampson, original license:
|
4
4
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
omlish/asyncs/bluelet/sockets.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ruff: noqa: UP006 UP007
|
1
|
+
# ruff: noqa: UP006 UP007 UP045
|
2
2
|
# @omlish-lite
|
3
3
|
# Based on bluelet ( https://github.com/sampsyo/bluelet ) by Adrian Sampson, original license:
|
4
4
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
omlish/asyncs/buffers.py
CHANGED
omlish/asyncs/ioproxy/io.py
CHANGED
omlish/asyncs/ioproxy/proxier.py
CHANGED
omlish/asyncs/ioproxy/proxy.py
CHANGED
omlish/asyncs/ioproxy/typing.py
CHANGED
omlish/bootstrap/diag.py
CHANGED
omlish/bootstrap/main.py
CHANGED
omlish/bootstrap/sys.py
CHANGED
omlish/collections/abc.py
CHANGED
omlish/collections/ordered.py
CHANGED
@@ -56,6 +56,12 @@ class OrderedSet(ta.MutableSet[T]):
|
|
56
56
|
return len(self) == len(other) and list(self) == list(other)
|
57
57
|
return set(self) == set(other)
|
58
58
|
|
59
|
+
def __ne__(self, other) -> bool:
|
60
|
+
return not (self == other)
|
61
|
+
|
62
|
+
def __hash__(self) -> int:
|
63
|
+
raise TypeError
|
64
|
+
|
59
65
|
|
60
66
|
class OrderedFrozenSet(ta.FrozenSet[T]): # noqa
|
61
67
|
_list: ta.Sequence[T]
|
@@ -41,6 +41,9 @@ class UnmodifiableSequence(ta.Sequence[T], Unmodifiable, lang.Final):
|
|
41
41
|
def __gt__(self, other: ta.Any) -> bool:
|
42
42
|
return self._target > other
|
43
43
|
|
44
|
+
def __hash__(self) -> int:
|
45
|
+
return hash(self._target)
|
46
|
+
|
44
47
|
def __iter__(self) -> ta.Iterator[T]:
|
45
48
|
return iter(self._target)
|
46
49
|
|
@@ -92,6 +95,9 @@ class UnmodifiableSet(ta.AbstractSet[T], Unmodifiable, lang.Final):
|
|
92
95
|
def __gt__(self, s: ta.AbstractSet[ta.Any]) -> bool:
|
93
96
|
return self._target > s
|
94
97
|
|
98
|
+
def __hash__(self) -> int:
|
99
|
+
return hash(self._target)
|
100
|
+
|
95
101
|
def __iter__(self) -> ta.Iterator[T]:
|
96
102
|
return iter(self._target)
|
97
103
|
|
@@ -148,6 +154,9 @@ class UnmodifiableMapping(ta.Mapping[K, V], Unmodifiable, lang.Final):
|
|
148
154
|
def __gt__(self, other: ta.Any) -> bool:
|
149
155
|
return self._target > other
|
150
156
|
|
157
|
+
def __hash__(self) -> int:
|
158
|
+
return hash(self._target)
|
159
|
+
|
151
160
|
def __iter__(self) -> ta.Iterator[T]:
|
152
161
|
return iter(self._target) # type: ignore
|
153
162
|
|
omlish/configs/formats.py
CHANGED
omlish/configs/nginx.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ruff: noqa: UP006 UP007
|
1
|
+
# ruff: noqa: UP006 UP007 UP045
|
2
2
|
# @omlish-lite
|
3
3
|
import abc
|
4
4
|
import typing as ta
|
@@ -43,7 +43,7 @@ class ConfigFlattening:
|
|
43
43
|
elif isinstance(value, list):
|
44
44
|
check.not_empty(prefix)
|
45
45
|
for i, v in enumerate(value):
|
46
|
-
rec(prefix[:-1]
|
46
|
+
rec([*prefix[:-1], f'{prefix[-1]}{self._index_open}{i}{self._index_close}'], v)
|
47
47
|
else:
|
48
48
|
k = self._delimiter.join(prefix)
|
49
49
|
if k in ret:
|
omlish/configs/shadow.py
CHANGED
omlish/configs/types.py
CHANGED
omlish/datetimes.py
CHANGED
omlish/diag/lslocks.py
CHANGED
omlish/diag/lsof.py
CHANGED
omlish/diag/ps.py
CHANGED
omlish/docker/detect.py
CHANGED
omlish/docker/ns1.py
CHANGED
omlish/docker/ports.py
CHANGED
omlish/formats/dotenv.py
CHANGED
omlish/formats/edn/parsing.py
CHANGED
omlish/formats/ini/sections.py
CHANGED
omlish/formats/props.py
CHANGED
@@ -379,7 +379,7 @@ class Properties(collections.abc.MutableMapping):
|
|
379
379
|
self._source_file,
|
380
380
|
)
|
381
381
|
|
382
|
-
codepoint2 = int(codepoint2_hex[2:], base=16)
|
382
|
+
codepoint2 = int(codepoint2_hex[2:], base=16) # noqa
|
383
383
|
if not (0xDC00 <= codepoint2 <= 0xDFFF):
|
384
384
|
raise ParseError(
|
385
385
|
'Low surrogate unicode escape sequence expected after high surrogate '
|
omlish/formats/toml/parser.py
CHANGED
omlish/http/coro/fdio.py
CHANGED
omlish/http/coro/server.py
CHANGED
omlish/http/coro/simple.py
CHANGED
omlish/http/coro/sockets.py
CHANGED
omlish/http/handlers.py
CHANGED
omlish/http/parsing.py
CHANGED
omlish/http/versions.py
CHANGED
omlish/io/buffers.py
CHANGED
omlish/io/fdio/handlers.py
CHANGED
omlish/io/fdio/kqueue.py
CHANGED
omlish/io/fdio/manager.py
CHANGED
omlish/io/fdio/pollers.py
CHANGED
omlish/io/fileno.py
CHANGED
omlish/lang/attrs.py
CHANGED
omlish/lite/check.py
CHANGED
omlish/lite/configs.py
CHANGED
omlish/lite/contextmanagers.py
CHANGED
omlish/lite/dataclasses.py
CHANGED
omlish/lite/imports.py
CHANGED
omlish/lite/inject.py
CHANGED
omlish/lite/marshal.py
CHANGED
omlish/lite/maybes.py
CHANGED
omlish/lite/pycharm.py
CHANGED
omlish/lite/reprs.py
CHANGED
omlish/lite/secrets.py
CHANGED
omlish/lite/timeouts.py
CHANGED
omlish/lite/types.py
CHANGED
omlish/logs/callers.py
CHANGED
omlish/logs/filters.py
CHANGED
omlish/logs/handlers.py
CHANGED