omlish 0.0.0.dev154__tar.gz → 0.0.0.dev155__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {omlish-0.0.0.dev154/omlish.egg-info → omlish-0.0.0.dev155}/PKG-INFO +1 -1
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/__about__.py +2 -2
- omlish-0.0.0.dev155/omlish/lite/__init__.py +1 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/asyncio/subprocesses.py +17 -5
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/check.py +0 -2
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/contextmanagers.py +14 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/marshal.py +11 -5
- omlish-0.0.0.dev155/omlish/os/linux.py +484 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/term.py +29 -14
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155/omlish.egg-info}/PKG-INFO +1 -1
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish.egg-info/SOURCES.txt +1 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/pyproject.toml +1 -1
- omlish-0.0.0.dev154/omlish/text/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/LICENSE +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/MANIFEST.in +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/README.rst +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/.manifests.json +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/BufferedTokenStream.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/CommonTokenFactory.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/CommonTokenStream.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/FileStream.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/InputStream.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/IntervalSet.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/LICENSE.txt +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/LL1Analyzer.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/Lexer.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/ListTokenSource.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/Parser.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/ParserInterpreter.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/ParserRuleContext.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/PredictionContext.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/Recognizer.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/RuleContext.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/StdinStream.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/Token.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/TokenStreamRewriter.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/Utils.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/_pygrun.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/atn/ATN.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/atn/ATNConfig.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/atn/ATNConfigSet.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/atn/ATNDeserializationOptions.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/atn/ATNDeserializer.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/atn/ATNSimulator.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/atn/ATNState.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/atn/ATNType.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/atn/LexerATNSimulator.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/atn/LexerAction.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/atn/LexerActionExecutor.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/atn/ParserATNSimulator.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/atn/PredictionMode.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/atn/SemanticContext.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/atn/Transition.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/atn/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/dfa/DFA.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/dfa/DFASerializer.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/dfa/DFAState.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/dfa/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/error/DiagnosticErrorListener.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/error/ErrorListener.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/error/ErrorStrategy.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/error/Errors.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/error/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/tree/Chunk.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/tree/ParseTreeMatch.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/tree/ParseTreePattern.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/tree/ParseTreePatternMatcher.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/tree/RuleTagToken.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/tree/TokenTagToken.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/tree/Tree.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/tree/Trees.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/tree/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/xpath/XPath.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/xpath/XPathLexer.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/antlr/_runtime/xpath/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/argparse/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/argparse/all.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/argparse/cli.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/asyncs/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/asyncs/all.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/asyncs/anyio.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/asyncs/asyncio/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/asyncs/asyncio/all.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/asyncs/asyncio/asyncio.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/asyncs/asyncio/channels.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/asyncs/asyncio/streams.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/asyncs/asyncio/timeouts.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/asyncs/asyncs.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/asyncs/bridge.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/asyncs/flavors.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/asyncs/trio.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/asyncs/trio_asyncio.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/bootstrap/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/bootstrap/__main__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/bootstrap/base.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/bootstrap/diag.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/bootstrap/harness.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/bootstrap/main.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/bootstrap/marshal.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/bootstrap/sys.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/c3.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/cached.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/check.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/abc.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/cache/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/cache/descriptor.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/cache/impl.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/cache/types.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/coerce.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/exceptions.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/frozen.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/hasheq.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/identity.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/indexed.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/mappings.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/ordered.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/persistent.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/skiplist.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/sorted.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/treap.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/treapmap.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/unmodifiable.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/collections/utils.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/concurrent/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/concurrent/executors.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/concurrent/futures.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/concurrent/threadlets.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/configs/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/configs/classes.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/configs/flattening.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/configs/strings.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/LICENSE +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/api.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/as_.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/copy.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/descriptors.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/exceptions.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/fields.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/frozen.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/hashing.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/init.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/internals.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/main.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/metaclass.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/metadata.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/order.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/params.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/processing.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/reflect.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/replace.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/repr.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/simple.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/slots.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/impl/utils.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dataclasses/utils.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/datetimes.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/defs.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/diag/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/diag/_pycharm/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/diag/_pycharm/runhack.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/diag/asts.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/diag/debug.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/diag/procfs.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/diag/procstats.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/diag/ps.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/diag/pycharm.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/diag/pydevd.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/diag/replserver/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/diag/replserver/__main__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/diag/replserver/console.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/diag/replserver/server.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/diag/threads.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dispatch/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dispatch/_dispatch2.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dispatch/_dispatch3.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dispatch/dispatch.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dispatch/functions.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dispatch/methods.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/docker/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/docker/all.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/docker/cli.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/docker/compose.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/docker/consts.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/docker/detect.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/docker/hub.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/docker/manifests.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/docker/timebomb.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/dynamic.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/dotenv.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/backends/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/backends/base.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/backends/default.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/backends/jiter.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/backends/orjson.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/backends/std.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/backends/ujson.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/consts.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/encoding.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/json.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/literals.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/render.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/stream/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/stream/build.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/stream/errors.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/stream/lex.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/stream/parse.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/stream/render.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/json/types.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/props.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/xml.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/formats/yaml.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/funcs/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/funcs/genmachine.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/funcs/match.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/funcs/pairs.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/funcs/pipes.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/graphs/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/graphs/dags.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/graphs/domination.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/graphs/dot/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/graphs/dot/items.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/graphs/dot/make.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/graphs/dot/rendering.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/graphs/dot/utils.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/graphs/trees.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/all.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/asgi.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/clients.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/consts.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/cookies.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/coroserver.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/dates.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/encodings.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/handlers.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/headers.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/json.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/jwt.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/multipart.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/parsing.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/sessions.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/sse.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/versions.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/http/wsgi.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/binder.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/bindings.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/eagers.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/elements.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/exceptions.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/impl/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/impl/bindings.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/impl/elements.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/impl/injector.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/impl/inspect.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/impl/multis.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/impl/origins.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/impl/privates.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/impl/providers.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/impl/proxy.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/impl/scopes.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/injector.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/inspect.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/keys.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/listeners.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/managed.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/multis.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/origins.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/overrides.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/privates.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/providers.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/scopes.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/types.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/inject/utils.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/abc.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/buffers.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/compress/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/compress/abc.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/compress/adapters.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/compress/base.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/compress/brotli.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/compress/bz2.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/compress/gzip.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/compress/lz4.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/compress/lzma.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/compress/snappy.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/compress/zlib.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/compress/zstd.py +0 -0
- {omlish-0.0.0.dev154/omlish/lite → omlish-0.0.0.dev155/omlish/io/fdio}/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/fdio/corohttp.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/fdio/handlers.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/fdio/kqueue.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/fdio/manager.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/fdio/pollers.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/generators/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/generators/consts.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/generators/direct.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/generators/readers.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/generators/stepped.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/pyio.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/io/trampoline.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/iterators.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/cached.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/classes/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/classes/abstract.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/classes/restrict.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/classes/simple.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/classes/virtual.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/clsdct.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/cmp.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/contextmanagers.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/datetimes.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/descriptors.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/exceptions.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/functions.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/generators.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/imports.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/iterables.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/maybes.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/objects.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/resolving.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/resources.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/strings.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/sys.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/timeouts.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lang/typing.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/libc.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lifecycles/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lifecycles/abstract.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lifecycles/base.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lifecycles/contextmanagers.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lifecycles/controller.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lifecycles/manager.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lifecycles/states.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lifecycles/transitions.py +0 -0
- {omlish-0.0.0.dev154/omlish/io/fdio → omlish-0.0.0.dev155/omlish/lite/asyncio}/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/cached.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/inject.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/json.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/logs.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/maybes.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/pycharm.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/reflect.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/resources.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/runtime.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/secrets.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/socket.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/socketserver.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/strings.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/subprocesses.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/lite/typing.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/logs/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/logs/abc.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/logs/configs.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/logs/formatters.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/logs/handlers.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/logs/noisy.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/logs/utils.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/manifests/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/manifests/load.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/manifests/types.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/any.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/base.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/base64.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/dataclasses.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/datetimes.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/enums.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/exceptions.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/factories.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/forbidden.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/global_.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/helpers.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/iterables.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/mappings.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/maybes.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/namedtuples.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/naming.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/newtypes.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/nop.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/numbers.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/objects.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/optionals.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/polymorphism.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/primitives.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/registries.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/standard.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/unions.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/utils.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/uuids.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/marshal/values.py +0 -0
- {omlish-0.0.0.dev154/omlish/lite/asyncio → omlish-0.0.0.dev155/omlish/math}/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/math/bits.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/math/floats.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/math/stats.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/multiprocessing.py +0 -0
- {omlish-0.0.0.dev154/omlish/math → omlish-0.0.0.dev155/omlish/os}/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/os/deathsig.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/os/files.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/os/journald.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/os/pidfile.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/os/sizes.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/reflect/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/reflect/inspect.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/reflect/ops.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/reflect/subst.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/reflect/types.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/runmodule.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/secrets/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/secrets/crypto.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/secrets/marshal.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/secrets/openssl.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/secrets/pwgen.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/secrets/pwhash.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/secrets/secrets.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/secrets/subprocesses.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jmespath/LICENSE +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jmespath/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jmespath/__main__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jmespath/ast.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jmespath/cli.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jmespath/exceptions.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jmespath/functions.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jmespath/lexer.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jmespath/parser.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jmespath/scope.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jmespath/visitor.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonrpc/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonrpc/errors.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonrpc/marshal.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonrpc/types.py +0 -0
- {omlish-0.0.0.dev154/omlish/os → omlish-0.0.0.dev155/omlish/specs/jsonschema}/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/keywords/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/keywords/base.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/keywords/core.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/keywords/metadata.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/keywords/parse.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/keywords/render.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/keywords/validation.py +0 -0
- {omlish-0.0.0.dev154/omlish/specs/jsonschema → omlish-0.0.0.dev155/omlish/specs/jsonschema/schemas}/__init__.py +0 -0
- {omlish-0.0.0.dev154/omlish/specs/jsonschema/schemas → omlish-0.0.0.dev155/omlish/specs/jsonschema/schemas/draft202012}/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/schemas/draft202012/metaschema.json +0 -0
- {omlish-0.0.0.dev154/omlish/specs/jsonschema/schemas/draft202012 → omlish-0.0.0.dev155/omlish/specs/jsonschema/schemas/draft202012/vocabularies}/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/schemas/draft202012/vocabularies/applicator.json +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/schemas/draft202012/vocabularies/content.json +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/schemas/draft202012/vocabularies/core.json +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/schemas/draft202012/vocabularies/format-annotation.json +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/schemas/draft202012/vocabularies/format-assertion.json +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/schemas/draft202012/vocabularies/format.json +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/schemas/draft202012/vocabularies/meta-data.json +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/schemas/draft202012/vocabularies/unevaluated.json +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/schemas/draft202012/vocabularies/validation.json +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/jsonschema/types.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/openapi/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/openapi/marshal.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/specs/openapi/openapi.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/abc.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/alchemy/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/alchemy/asyncs.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/alchemy/duckdb.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/alchemy/exprs.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/alchemy/secrets.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/alchemy/sqlean.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/dbapi.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/dbs.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/params.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/qualifiedname.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/queries/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/queries/base.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/queries/binary.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/queries/building.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/queries/exprs.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/queries/idents.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/queries/inserts.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/queries/marshal.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/queries/multi.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/queries/names.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/queries/ops.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/queries/relations.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/queries/rendering.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/queries/selects.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/queries/stmts.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/queries/unary.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/tabledefs/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/tabledefs/alchemy.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/tabledefs/dtypes.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/tabledefs/elements.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/tabledefs/lower.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/tabledefs/marshal.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sql/tabledefs/tabledefs.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/sync.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/helpers.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/inject/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/inject/harness.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/marks.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/plugins/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/plugins/_registry.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/plugins/asyncs.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/plugins/depskip.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/plugins/logging.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/plugins/managermarks.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/plugins/pydevd.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/plugins/repeat.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/plugins/skips.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/plugins/spacing.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/plugins/switches.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/plugins/utils.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/pytest/skip.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/testing/testing.py +0 -0
- {omlish-0.0.0.dev154/omlish/specs/jsonschema/schemas/draft202012/vocabularies → omlish-0.0.0.dev155/omlish/text}/__init__.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/text/asdl.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/text/delimit.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/text/glyphsplit.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/text/indent.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/text/parts.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish/text/random.py +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish.egg-info/dependency_links.txt +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish.egg-info/entry_points.txt +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish.egg-info/requires.txt +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/omlish.egg-info/top_level.txt +0 -0
- {omlish-0.0.0.dev154 → omlish-0.0.0.dev155}/setup.cfg +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
# @omlish-lite
|
@@ -2,6 +2,7 @@
|
|
2
2
|
import asyncio.base_subprocess
|
3
3
|
import asyncio.subprocess
|
4
4
|
import contextlib
|
5
|
+
import dataclasses as dc
|
5
6
|
import functools
|
6
7
|
import logging
|
7
8
|
import subprocess
|
@@ -177,6 +178,13 @@ async def asyncio_subprocess_communicate(
|
|
177
178
|
return await AsyncioProcessCommunicator(proc).communicate(input, timeout) # noqa
|
178
179
|
|
179
180
|
|
181
|
+
@dc.dataclass(frozen=True)
|
182
|
+
class AsyncioSubprocessOutput:
|
183
|
+
proc: asyncio.subprocess.Process
|
184
|
+
stdout: ta.Optional[bytes]
|
185
|
+
stderr: ta.Optional[bytes]
|
186
|
+
|
187
|
+
|
180
188
|
async def asyncio_subprocess_run(
|
181
189
|
*args: str,
|
182
190
|
input: ta.Any = None, # noqa
|
@@ -184,7 +192,7 @@ async def asyncio_subprocess_run(
|
|
184
192
|
check: bool = False, # noqa
|
185
193
|
capture_output: ta.Optional[bool] = None,
|
186
194
|
**kwargs: ta.Any,
|
187
|
-
) ->
|
195
|
+
) -> AsyncioSubprocessOutput:
|
188
196
|
if capture_output:
|
189
197
|
kwargs.setdefault('stdout', subprocess.PIPE)
|
190
198
|
kwargs.setdefault('stderr', subprocess.PIPE)
|
@@ -203,7 +211,11 @@ async def asyncio_subprocess_run(
|
|
203
211
|
stderr=stderr,
|
204
212
|
)
|
205
213
|
|
206
|
-
return
|
214
|
+
return AsyncioSubprocessOutput(
|
215
|
+
proc,
|
216
|
+
stdout,
|
217
|
+
stderr,
|
218
|
+
)
|
207
219
|
|
208
220
|
|
209
221
|
##
|
@@ -216,7 +228,7 @@ async def asyncio_subprocess_check_call(
|
|
216
228
|
timeout: ta.Optional[float] = None,
|
217
229
|
**kwargs: ta.Any,
|
218
230
|
) -> None:
|
219
|
-
|
231
|
+
await asyncio_subprocess_run(
|
220
232
|
*args,
|
221
233
|
stdout=stdout,
|
222
234
|
input=input,
|
@@ -232,7 +244,7 @@ async def asyncio_subprocess_check_output(
|
|
232
244
|
timeout: ta.Optional[float] = None,
|
233
245
|
**kwargs: ta.Any,
|
234
246
|
) -> bytes:
|
235
|
-
|
247
|
+
out = await asyncio_subprocess_run(
|
236
248
|
*args,
|
237
249
|
stdout=asyncio.subprocess.PIPE,
|
238
250
|
input=input,
|
@@ -241,7 +253,7 @@ async def asyncio_subprocess_check_output(
|
|
241
253
|
**kwargs,
|
242
254
|
)
|
243
255
|
|
244
|
-
return check.not_none(stdout)
|
256
|
+
return check.not_none(out.stdout)
|
245
257
|
|
246
258
|
|
247
259
|
async def asyncio_subprocess_check_output_str(*args: str, **kwargs: ta.Any) -> str:
|
@@ -61,3 +61,17 @@ def attr_setting(obj, attr, val, *, default=None): # noqa
|
|
61
61
|
delattr(obj, attr)
|
62
62
|
else:
|
63
63
|
setattr(obj, attr, orig)
|
64
|
+
|
65
|
+
|
66
|
+
##
|
67
|
+
|
68
|
+
|
69
|
+
class aclosing(contextlib.AbstractAsyncContextManager): # noqa
|
70
|
+
def __init__(self, thing):
|
71
|
+
self.thing = thing
|
72
|
+
|
73
|
+
async def __aenter__(self):
|
74
|
+
return self.thing
|
75
|
+
|
76
|
+
async def __aexit__(self, *exc_info):
|
77
|
+
await self.thing.aclose()
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"""
|
2
2
|
TODO:
|
3
3
|
- pickle stdlib objs? have to pin to 3.8 pickle protocol, will be cross-version
|
4
|
-
-
|
4
|
+
- namedtuple
|
5
|
+
- literals
|
5
6
|
"""
|
6
7
|
# ruff: noqa: UP006 UP007
|
7
8
|
import abc
|
@@ -23,6 +24,7 @@ from .reflect import deep_subclasses
|
|
23
24
|
from .reflect import get_optional_alias_arg
|
24
25
|
from .reflect import is_generic_alias
|
25
26
|
from .reflect import is_union_alias
|
27
|
+
from .strings import snake_case
|
26
28
|
|
27
29
|
|
28
30
|
T = ta.TypeVar('T')
|
@@ -314,14 +316,18 @@ class ObjMarshalerManager:
|
|
314
316
|
) -> ObjMarshaler:
|
315
317
|
if isinstance(ty, type):
|
316
318
|
if abc.ABC in ty.__bases__:
|
317
|
-
|
319
|
+
impls = [ity for ity in deep_subclasses(ty) if abc.ABC not in ity.__bases__] # type: ignore
|
320
|
+
if all(ity.__qualname__.endswith(ty.__name__) for ity in impls):
|
321
|
+
ins = {ity: snake_case(ity.__qualname__[:-len(ty.__name__)]) for ity in impls}
|
322
|
+
else:
|
323
|
+
ins = {ity: ity.__qualname__ for ity in impls}
|
324
|
+
return PolymorphicObjMarshaler.of([
|
318
325
|
PolymorphicObjMarshaler.Impl(
|
319
326
|
ity,
|
320
|
-
|
327
|
+
itn,
|
321
328
|
rec(ity),
|
322
329
|
)
|
323
|
-
for ity in
|
324
|
-
if abc.ABC not in ity.__bases__
|
330
|
+
for ity, itn in ins.items()
|
325
331
|
])
|
326
332
|
|
327
333
|
if issubclass(ty, enum.Enum):
|
@@ -0,0 +1,484 @@
|
|
1
|
+
# ruff: noqa: UP006 UP007
|
2
|
+
# @omlish-lite
|
3
|
+
"""
|
4
|
+
➜ ~ cat /etc/os-release
|
5
|
+
NAME="Amazon Linux"
|
6
|
+
VERSION="2"
|
7
|
+
ID="amzn"
|
8
|
+
ID_LIKE="centos rhel fedora"
|
9
|
+
VERSION_ID="2"
|
10
|
+
PRETTY_NAME="Amazon Linux 2"
|
11
|
+
|
12
|
+
➜ ~ cat /etc/os-release
|
13
|
+
PRETTY_NAME="Ubuntu 22.04.5 LTS"
|
14
|
+
NAME="Ubuntu"
|
15
|
+
VERSION_ID="22.04"
|
16
|
+
VERSION="22.04.5 LTS (Jammy Jellyfish)"
|
17
|
+
VERSION_CODENAME=jammy
|
18
|
+
ID=ubuntu
|
19
|
+
ID_LIKE=debian
|
20
|
+
UBUNTU_CODENAME=jammy
|
21
|
+
|
22
|
+
➜ omlish git:(master) docker run -i python:3.12 cat /etc/os-release
|
23
|
+
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
|
24
|
+
NAME="Debian GNU/Linux"
|
25
|
+
VERSION_ID="12"
|
26
|
+
VERSION="12 (bookworm)"
|
27
|
+
VERSION_CODENAME=bookworm
|
28
|
+
ID=debian
|
29
|
+
"""
|
30
|
+
import dataclasses as dc
|
31
|
+
import os.path
|
32
|
+
import typing as ta
|
33
|
+
|
34
|
+
|
35
|
+
@dc.dataclass(frozen=True)
|
36
|
+
class LinuxOsRelease:
|
37
|
+
"""
|
38
|
+
https://man7.org/linux/man-pages/man5/os-release.5.html
|
39
|
+
"""
|
40
|
+
|
41
|
+
raw: ta.Mapping[str, str]
|
42
|
+
|
43
|
+
# General information identifying the operating system
|
44
|
+
|
45
|
+
@property
|
46
|
+
def name(self) -> str:
|
47
|
+
"""
|
48
|
+
A string identifying the operating system, without a version component, and suitable for presentation to the
|
49
|
+
user. If not set, a default of "NAME=Linux" may be used.
|
50
|
+
|
51
|
+
Examples: "NAME=Fedora", "NAME="Debian GNU/Linux"".
|
52
|
+
"""
|
53
|
+
|
54
|
+
return self.raw['NAME']
|
55
|
+
|
56
|
+
@property
|
57
|
+
def id(self) -> str:
|
58
|
+
"""
|
59
|
+
A lower-case string (no spaces or other characters outside of 0-9, a-z, ".", "_" and "-") identifying the
|
60
|
+
operating system, excluding any version information and suitable for processing by scripts or usage in generated
|
61
|
+
filenames. If not set, a default of "ID=linux" may be used. Note that even though this string may not include
|
62
|
+
characters that require shell quoting, quoting may nevertheless be used.
|
63
|
+
|
64
|
+
Examples: "ID=fedora", "ID=debian".
|
65
|
+
"""
|
66
|
+
|
67
|
+
return self.raw['ID']
|
68
|
+
|
69
|
+
@property
|
70
|
+
def id_like(self) -> str:
|
71
|
+
"""
|
72
|
+
A space-separated list of operating system identifiers in the same syntax as the ID= setting. It should list
|
73
|
+
identifiers of operating systems that are closely related to the local operating system in regards to packaging
|
74
|
+
and programming interfaces, for example listing one or more OS identifiers the local OS is a derivative from. An
|
75
|
+
OS should generally only list other OS identifiers it itself is a derivative of, and not any OSes that are
|
76
|
+
derived from it, though symmetric relationships are possible. Build scripts and similar should check this
|
77
|
+
variable if they need to identify the local operating system and the value of ID= is not recognized. Operating
|
78
|
+
systems should be listed in order of how closely the local operating system relates to the listed ones, starting
|
79
|
+
with the closest. This field is optional.
|
80
|
+
|
81
|
+
Examples: for an operating system with "ID=centos", an assignment of "ID_LIKE="rhel fedora"" would be
|
82
|
+
appropriate. For an operating system with "ID=ubuntu", an assignment of "ID_LIKE=debian" is appropriate.
|
83
|
+
"""
|
84
|
+
|
85
|
+
return self.raw['ID_LIKE']
|
86
|
+
|
87
|
+
@property
|
88
|
+
def pretty_name(self) -> str:
|
89
|
+
"""
|
90
|
+
A pretty operating system name in a format suitable for presentation to the user. May or may not contain a
|
91
|
+
release code name or OS version of some kind, as suitable. If not set, a default of "PRETTY_NAME="Linux"" may be
|
92
|
+
used
|
93
|
+
|
94
|
+
Example: "PRETTY_NAME="Fedora 17 (Beefy Miracle)"".
|
95
|
+
"""
|
96
|
+
|
97
|
+
return self.raw['PRETTY_NAME']
|
98
|
+
|
99
|
+
@property
|
100
|
+
def cpe_name(self) -> str:
|
101
|
+
"""
|
102
|
+
A CPE name for the operating system, in URI binding syntax, following the Common Platform Enumeration
|
103
|
+
Specification[4] as proposed by the NIST. This field is optional.
|
104
|
+
|
105
|
+
Example: "CPE_NAME="cpe:/o:fedoraproject:fedora:17""
|
106
|
+
"""
|
107
|
+
|
108
|
+
return self.raw['CPE_NAME']
|
109
|
+
|
110
|
+
@property
|
111
|
+
def variant(self) -> str:
|
112
|
+
"""
|
113
|
+
A string identifying a specific variant or edition of the operating system suitable for presentation to the
|
114
|
+
user. This field may be used to inform the user that the configuration of this system is subject to a specific
|
115
|
+
divergent set of rules or default configuration settings. This field is optional and may not be implemented on
|
116
|
+
all systems.
|
117
|
+
|
118
|
+
Examples: "VARIANT="Server Edition"", "VARIANT="Smart Refrigerator Edition"".
|
119
|
+
|
120
|
+
Note: this field is for display purposes only. The VARIANT_ID field should be used for making programmatic
|
121
|
+
decisions.
|
122
|
+
|
123
|
+
Added in version 220.
|
124
|
+
"""
|
125
|
+
|
126
|
+
return self.raw['VARIANT']
|
127
|
+
|
128
|
+
@property
|
129
|
+
def variant_id(self) -> str:
|
130
|
+
"""
|
131
|
+
A lower-case string (no spaces or other characters outside of 0-9, a-z, ".", "_" and "-"), identifying a
|
132
|
+
specific variant or edition of the operating system. This may be interpreted by other packages in order to
|
133
|
+
determine a divergent default configuration. This field is optional and may not be implemented on all systems.
|
134
|
+
|
135
|
+
Examples: "VARIANT_ID=server", "VARIANT_ID=embedded".
|
136
|
+
|
137
|
+
Added in version 220.
|
138
|
+
"""
|
139
|
+
|
140
|
+
return self.raw['variant_id']
|
141
|
+
|
142
|
+
# Information about the version of the operating system
|
143
|
+
|
144
|
+
@property
|
145
|
+
def version(self) -> str:
|
146
|
+
"""
|
147
|
+
A string identifying the operating system version, excluding any OS name information, possibly including a
|
148
|
+
release code name, and suitable for presentation to the user. This field is optional.
|
149
|
+
|
150
|
+
Examples: "VERSION=17", "VERSION="17 (Beefy Miracle)"".
|
151
|
+
"""
|
152
|
+
|
153
|
+
return self.raw['VERSION']
|
154
|
+
|
155
|
+
@property
|
156
|
+
def version_id(self) -> str:
|
157
|
+
"""
|
158
|
+
A lower-case string (mostly numeric, no spaces or other characters outside of 0-9, a-z, ".", "_" and "-")
|
159
|
+
identifying the operating system version, excluding any OS name information or release code name, and suitable
|
160
|
+
for processing by scripts or usage in generated filenames. This field is optional.
|
161
|
+
|
162
|
+
Examples: "VERSION_ID=17", "VERSION_ID=11.04".
|
163
|
+
"""
|
164
|
+
|
165
|
+
return self.raw['VERSION_ID']
|
166
|
+
|
167
|
+
@property
|
168
|
+
def version_codename(self) -> str:
|
169
|
+
"""
|
170
|
+
A lower-case string (no spaces or other characters outside of 0-9, a-z, ".", "_" and "-") identifying the
|
171
|
+
operating system release code name, excluding any OS name information or release version, and suitable for
|
172
|
+
processing by scripts or usage in generated filenames. This field is optional and may not be implemented on all
|
173
|
+
systems.
|
174
|
+
|
175
|
+
Examples: "VERSION_CODENAME=buster", "VERSION_CODENAME=xenial".
|
176
|
+
|
177
|
+
Added in version 231.
|
178
|
+
"""
|
179
|
+
|
180
|
+
return self.raw['VERSION_CODENAME']
|
181
|
+
|
182
|
+
@property
|
183
|
+
def build_id(self) -> str:
|
184
|
+
"""
|
185
|
+
A string uniquely identifying the system image originally used as the installation base. In most cases,
|
186
|
+
VERSION_ID or IMAGE_ID+IMAGE_VERSION are updated when the entire system image is replaced during an update.
|
187
|
+
BUILD_ID may be used in distributions where the original installation image version is important: VERSION_ID
|
188
|
+
would change during incremental system updates, but BUILD_ID would not. This field is optional.
|
189
|
+
|
190
|
+
Examples: "BUILD_ID="2013-03-20.3"", "BUILD_ID=201303203".
|
191
|
+
|
192
|
+
Added in version 200.
|
193
|
+
"""
|
194
|
+
|
195
|
+
return self.raw['BUILD_ID']
|
196
|
+
|
197
|
+
@property
|
198
|
+
def image_id(self) -> str:
|
199
|
+
"""
|
200
|
+
A lower-case string (no spaces or other characters outside of 0-9, a-z, ".", "_" and "-"), identifying a
|
201
|
+
specific image of the operating system. This is supposed to be used for environments where OS images are
|
202
|
+
prepared, built, shipped and updated as comprehensive, consistent OS images. This field is optional and may not
|
203
|
+
be implemented on all systems, in particularly not on those that are not managed via images but put together and
|
204
|
+
updated from individual packages and on the local system.
|
205
|
+
|
206
|
+
Examples: "IMAGE_ID=vendorx-cashier-system", "IMAGE_ID=netbook-image".
|
207
|
+
|
208
|
+
Added in version 249.
|
209
|
+
"""
|
210
|
+
|
211
|
+
return self.raw['IMAGE_ID']
|
212
|
+
|
213
|
+
@property
|
214
|
+
def image_version(self) -> str:
|
215
|
+
"""
|
216
|
+
A lower-case string (mostly numeric, no spaces or other characters outside of 0-9, a-z, ".", "_" and "-")
|
217
|
+
identifying the OS image version. This is supposed to be used together with IMAGE_ID described above, to discern
|
218
|
+
different versions of the same image.
|
219
|
+
|
220
|
+
Examples: "IMAGE_VERSION=33", "IMAGE_VERSION=47.1rc1".
|
221
|
+
|
222
|
+
Added in version 249.
|
223
|
+
"""
|
224
|
+
|
225
|
+
return self.raw['IMAGE_VERSION']
|
226
|
+
|
227
|
+
# To summarize: if the image updates are built and shipped as comprehensive units, IMAGE_ID+IMAGE_VERSION is the
|
228
|
+
# best fit. Otherwise, if updates eventually completely replace previously installed contents, as in a typical
|
229
|
+
# binary distribution, VERSION_ID should be used to identify major releases of the operating system. BUILD_ID may
|
230
|
+
# be used instead or in addition to VERSION_ID when the original system image version is important.
|
231
|
+
|
232
|
+
#
|
233
|
+
|
234
|
+
# Presentation information and links
|
235
|
+
|
236
|
+
# Links to resources on the Internet related to the operating system. HOME_URL= should refer to the homepage of the
|
237
|
+
# operating system, or alternatively some homepage of the specific version of the operating system.
|
238
|
+
# DOCUMENTATION_URL= should refer to the main documentation page for this operating system. SUPPORT_URL= should
|
239
|
+
# refer to the main support page for the operating system, if there is any. This is primarily intended for operating
|
240
|
+
# systems which vendors provide support for. BUG_REPORT_URL= should refer to the main bug reporting page for the
|
241
|
+
# operating system, if there is any. This is primarily intended for operating systems that rely on community QA.
|
242
|
+
# PRIVACY_POLICY_URL= should refer to the main privacy policy page for the operating system, if there is any. These
|
243
|
+
# settings are optional, and providing only some of these settings is common. These URLs are intended to be exposed
|
244
|
+
# in "About this system" UIs behind links with captions such as "About this Operating System", "Obtain Support",
|
245
|
+
# "Report a Bug", or "Privacy Policy". The values should be in RFC3986 format[5], and should be "http:" or "https:"
|
246
|
+
# URLs, and possibly "mailto:" or "tel:". Only one URL shall be listed in each setting. If multiple resources need
|
247
|
+
# to be referenced, it is recommended to provide an online landing page linking all available resources.
|
248
|
+
|
249
|
+
# Examples: "HOME_URL="https://fedoraproject.org/"", "BUG_REPORT_URL="https://bugzilla.redhat.com/"".
|
250
|
+
|
251
|
+
@property
|
252
|
+
def home_url(self) -> str:
|
253
|
+
return self.raw['HOME_URL']
|
254
|
+
|
255
|
+
@property
|
256
|
+
def documentation_url(self) -> str:
|
257
|
+
return self.raw['DOCUMENTATION_URL']
|
258
|
+
|
259
|
+
@property
|
260
|
+
def support_url(self) -> str:
|
261
|
+
return self.raw['SUPPORT_URL']
|
262
|
+
|
263
|
+
@property
|
264
|
+
def bug_report_url(self) -> str:
|
265
|
+
return self.raw['BUG_REPORT_URL']
|
266
|
+
|
267
|
+
@property
|
268
|
+
def privacy_policy_url(self) -> str:
|
269
|
+
return self.raw['PRIVACY_POLICY_URL']
|
270
|
+
|
271
|
+
@property
|
272
|
+
def support_end(self) -> str:
|
273
|
+
"""
|
274
|
+
The date at which support for this version of the OS ends. (What exactly "lack of support" means varies between
|
275
|
+
vendors, but generally users should assume that updates, including security fixes, will not be provided.) The
|
276
|
+
value is a date in the ISO 8601 format "YYYY-MM-DD", and specifies the first day on which support is not
|
277
|
+
provided.
|
278
|
+
|
279
|
+
For example, "SUPPORT_END=2001-01-01" means that the system was supported until the end of the last day of the
|
280
|
+
previous millennium.
|
281
|
+
|
282
|
+
Added in version 252.
|
283
|
+
"""
|
284
|
+
|
285
|
+
return self.raw['SUPPORT_END']
|
286
|
+
|
287
|
+
@property
|
288
|
+
def logo(self) -> str:
|
289
|
+
"""
|
290
|
+
A string, specifying the name of an icon as defined by freedesktop.org Icon Theme Specification[6]. This can be
|
291
|
+
used by graphical applications to display an operating system's or distributor's logo. This field is optional
|
292
|
+
and may not necessarily be implemented on all systems.
|
293
|
+
|
294
|
+
Examples: "LOGO=fedora-logo", "LOGO=distributor-logo-opensuse"
|
295
|
+
|
296
|
+
Added in version 240.
|
297
|
+
"""
|
298
|
+
|
299
|
+
return self.raw['LOGO']
|
300
|
+
|
301
|
+
@property
|
302
|
+
def ansi_color(self) -> str:
|
303
|
+
"""
|
304
|
+
A suggested presentation color when showing the OS name on the console. This should be specified as string
|
305
|
+
suitable for inclusion in the ESC [ m ANSI/ECMA-48 escape code for setting graphical rendition. This field is
|
306
|
+
optional.
|
307
|
+
|
308
|
+
Examples: "ANSI_COLOR="0;31"" for red, "ANSI_COLOR="1;34"" for light blue, or "ANSI_COLOR="0;38;2;60;110;180""
|
309
|
+
for Fedora blue.
|
310
|
+
"""
|
311
|
+
|
312
|
+
return self.raw['ANSI_COLOR']
|
313
|
+
|
314
|
+
@property
|
315
|
+
def vendor_name(self) -> str:
|
316
|
+
"""
|
317
|
+
The name of the OS vendor. This is the name of the organization or company which produces the OS. This field is
|
318
|
+
optional.
|
319
|
+
|
320
|
+
This name is intended to be exposed in "About this system" UIs or software update UIs when needed to distinguish
|
321
|
+
the OS vendor from the OS itself. It is intended to be human readable.
|
322
|
+
|
323
|
+
Examples: "VENDOR_NAME="Fedora Project"" for Fedora Linux, "VENDOR_NAME="Canonical"" for Ubuntu.
|
324
|
+
|
325
|
+
Added in version 254.
|
326
|
+
"""
|
327
|
+
|
328
|
+
return self.raw['VENDOR_NAME']
|
329
|
+
|
330
|
+
@property
|
331
|
+
def vendor_url(self) -> str:
|
332
|
+
"""
|
333
|
+
The homepage of the OS vendor. This field is optional. The VENDOR_NAME= field should be set if this one is,
|
334
|
+
although clients must be robust against either field not being set.
|
335
|
+
|
336
|
+
The value should be in RFC3986 format[5], and should be "http:" or "https:" URLs. Only one URL shall be listed
|
337
|
+
in the setting.
|
338
|
+
|
339
|
+
Examples: "VENDOR_URL="https://fedoraproject.org/"", "VENDOR_URL="https://canonical.com/"".
|
340
|
+
|
341
|
+
Added in version 254.
|
342
|
+
"""
|
343
|
+
|
344
|
+
return self.raw['VENDOR_URL']
|
345
|
+
|
346
|
+
# Distribution-level defaults and metadata
|
347
|
+
|
348
|
+
@property
|
349
|
+
def default_hostname(self) -> str:
|
350
|
+
"""
|
351
|
+
A string specifying the hostname if hostname(5) is not present and no other configuration source specifies the
|
352
|
+
hostname. Must be either a single DNS label (a string composed of 7-bit ASCII lower-case characters and no
|
353
|
+
spaces or dots, limited to the format allowed for DNS domain name labels), or a sequence of such labels
|
354
|
+
separated by single dots that forms a valid DNS FQDN. The hostname must be at most 64 characters, which is a
|
355
|
+
Linux limitation (DNS allows longer names).
|
356
|
+
|
357
|
+
See org.freedesktop.hostname1(5) for a description of how systemd-hostnamed.service(8) determines the fallback
|
358
|
+
hostname.
|
359
|
+
|
360
|
+
Added in version 248.
|
361
|
+
"""
|
362
|
+
|
363
|
+
return self.raw['DEFAULT_HOSTNAME']
|
364
|
+
|
365
|
+
@property
|
366
|
+
def architecture(self) -> str:
|
367
|
+
"""
|
368
|
+
A string that specifies which CPU architecture the userspace binaries require. The architecture identifiers are
|
369
|
+
the same as for ConditionArchitecture= described in systemd.unit(5). The field is optional and should only be
|
370
|
+
used when just single architecture is supported. It may provide redundant information when used in a GPT
|
371
|
+
partition with a GUID type that already encodes the architecture. If this is not the case, the architecture
|
372
|
+
should be specified in e.g., an extension image, to prevent an incompatible host from loading it.
|
373
|
+
|
374
|
+
Added in version 252.
|
375
|
+
"""
|
376
|
+
|
377
|
+
return self.raw['ARCHITECTURE']
|
378
|
+
|
379
|
+
@property
|
380
|
+
def sysext_level(self) -> str:
|
381
|
+
"""
|
382
|
+
A lower-case string (mostly numeric, no spaces or other characters outside of 0-9, a-z, ".", "_" and "-")
|
383
|
+
identifying the operating system extensions support level, to indicate which extension images are supported. See
|
384
|
+
/usr/lib/extension-release.d/extension-release.IMAGE, initrd[2] and systemd-sysext(8)) for more information.
|
385
|
+
|
386
|
+
Examples: "SYSEXT_LEVEL=2", "SYSEXT_LEVEL=15.14".
|
387
|
+
|
388
|
+
Added in version 248.
|
389
|
+
"""
|
390
|
+
|
391
|
+
return self.raw['SYSEXT_LEVEL']
|
392
|
+
|
393
|
+
@property
|
394
|
+
def confext_level(self) -> str:
|
395
|
+
"""
|
396
|
+
Semantically the same as SYSEXT_LEVEL= but for confext images. See
|
397
|
+
/etc/extension-release.d/extension-release.IMAGE for more information.
|
398
|
+
|
399
|
+
Examples: "CONFEXT_LEVEL=2", "CONFEXT_LEVEL=15.14".
|
400
|
+
|
401
|
+
Added in version 254.
|
402
|
+
"""
|
403
|
+
|
404
|
+
return self.raw['CONFEXT_LEVEL']
|
405
|
+
|
406
|
+
@property
|
407
|
+
def sysext_scope(self) -> str:
|
408
|
+
"""
|
409
|
+
Takes a space-separated list of one or more of the strings "system", "initrd" and "portable". This field is only
|
410
|
+
supported in extension-release.d/ files and indicates what environments the system extension is applicable to:
|
411
|
+
i.e. to regular systems, to initrds, or to portable service images. If unspecified, "SYSEXT_SCOPE=system
|
412
|
+
portable" is implied, i.e. any system extension without this field is applicable to regular systems and to
|
413
|
+
portable service environments, but not to initrd environments.
|
414
|
+
|
415
|
+
Added in version 250.
|
416
|
+
"""
|
417
|
+
|
418
|
+
return self.raw['SYSEXT_SCOPE']
|
419
|
+
|
420
|
+
@property
|
421
|
+
def confext_scope(self) -> str:
|
422
|
+
"""
|
423
|
+
Semantically the same as SYSEXT_SCOPE= but for confext images.
|
424
|
+
|
425
|
+
Added in version 254.
|
426
|
+
"""
|
427
|
+
|
428
|
+
return self.raw['CONFEXT_SCOPE']
|
429
|
+
|
430
|
+
@property
|
431
|
+
def portable_prefixes(self) -> str:
|
432
|
+
"""
|
433
|
+
Takes a space-separated list of one or more valid prefix match strings for the Portable Services[3] logic. This
|
434
|
+
field serves two purposes: it is informational, identifying portable service images as such (and thus allowing
|
435
|
+
them to be distinguished from other OS images, such as bootable system images). It is also used when a portable
|
436
|
+
service image is attached: the specified or implied portable service prefix is checked against the list
|
437
|
+
specified here, to enforce restrictions how images may be attached to a system.
|
438
|
+
|
439
|
+
Added in version 250.
|
440
|
+
"""
|
441
|
+
|
442
|
+
return self.raw['PORTABLE_PREFIXES']
|
443
|
+
|
444
|
+
#
|
445
|
+
|
446
|
+
DEFAULT_PATHS: ta.ClassVar[ta.Sequence[str]] = [
|
447
|
+
'/etc/os-release',
|
448
|
+
'/usr/lib/os-release',
|
449
|
+
]
|
450
|
+
|
451
|
+
@classmethod
|
452
|
+
def read(cls, *paths: str) -> ta.Optional['LinuxOsRelease']:
|
453
|
+
for fp in (paths or cls.DEFAULT_PATHS):
|
454
|
+
if not os.path.isfile(fp):
|
455
|
+
continue
|
456
|
+
with open(fp) as f:
|
457
|
+
src = f.read()
|
458
|
+
break
|
459
|
+
else:
|
460
|
+
return None
|
461
|
+
|
462
|
+
raw = cls._parse_os_release(src)
|
463
|
+
|
464
|
+
return cls(raw)
|
465
|
+
|
466
|
+
@classmethod
|
467
|
+
def _parse_os_release(cls, src: str) -> ta.Mapping[str, str]:
|
468
|
+
dct: ta.Dict[str, str] = {}
|
469
|
+
|
470
|
+
for l in src.splitlines():
|
471
|
+
if not (l := l.strip()):
|
472
|
+
continue
|
473
|
+
if l.startswith('#') or '=' not in l:
|
474
|
+
continue
|
475
|
+
|
476
|
+
k, _, v = l.partition('=')
|
477
|
+
if k.startswith('"'):
|
478
|
+
k = k[1:-1]
|
479
|
+
if v.startswith('"'):
|
480
|
+
v = v[1:-1]
|
481
|
+
|
482
|
+
dct[k] = v
|
483
|
+
|
484
|
+
return dct
|