omlish 0.0.0.dev6__tar.gz → 0.0.0.dev7__tar.gz
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-0.0.0.dev7/MANIFEST.in +1 -0
- omlish-0.0.0.dev7/PKG-INFO +49 -0
- omlish-0.0.0.dev7/README.rst +1 -0
- omlish-0.0.0.dev7/omlish/__about__.py +110 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/asyncs/__init__.py +0 -9
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/asyncs/anyio.py +40 -0
- omlish-0.0.0.dev7/omlish/bootstrap.py +737 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/check.py +1 -1
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/__init__.py +4 -0
- omlish-0.0.0.dev7/omlish/collections/exceptions.py +2 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/utils.py +38 -9
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/configs/strings.py +2 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/__init__.py +7 -0
- omlish-0.0.0.dev7/omlish/dataclasses/impl/descriptors.py +95 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/reflect.py +1 -1
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/utils.py +23 -0
- {omlish-0.0.0.dev6/omlish/lang → omlish-0.0.0.dev7/omlish}/datetimes.py +8 -4
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/diag/procfs.py +1 -1
- omlish-0.0.0.dev7/omlish/diag/threads.py +169 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/docker.py +16 -1
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/fnpairs.py +0 -4
- {omlish-0.0.0.dev6/omlish/serde → omlish-0.0.0.dev7/omlish/formats}/dotenv.py +3 -0
- {omlish-0.0.0.dev6/omlish/serde → omlish-0.0.0.dev7/omlish/formats}/yaml.py +2 -2
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/graphs/trees.py +1 -1
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/http/consts.py +6 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/http/sessions.py +2 -2
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/__init__.py +4 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/elements.py +1 -1
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/impl/injector.py +57 -27
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/impl/origins.py +2 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/origins.py +3 -0
- omlish-0.0.0.dev7/omlish/inject/utils.py +18 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/iterators.py +69 -2
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/__init__.py +16 -7
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/classes/restrict.py +10 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/contextmanagers.py +1 -1
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/descriptors.py +3 -3
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/imports.py +67 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/iterables.py +40 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/maybes.py +3 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/objects.py +38 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/strings.py +25 -0
- omlish-0.0.0.dev7/omlish/lang/sys.py +16 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/typing.py +37 -0
- omlish-0.0.0.dev7/omlish/lite/__init__.py +1 -0
- omlish-0.0.0.dev7/omlish/lite/cached.py +18 -0
- omlish-0.0.0.dev7/omlish/lite/check.py +29 -0
- omlish-0.0.0.dev7/omlish/lite/contextmanagers.py +18 -0
- omlish-0.0.0.dev7/omlish/lite/json.py +30 -0
- omlish-0.0.0.dev7/omlish/lite/logs.py +52 -0
- omlish-0.0.0.dev7/omlish/lite/marshal.py +316 -0
- omlish-0.0.0.dev7/omlish/lite/reflect.py +49 -0
- omlish-0.0.0.dev7/omlish/lite/runtime.py +18 -0
- omlish-0.0.0.dev7/omlish/lite/secrets.py +19 -0
- omlish-0.0.0.dev7/omlish/lite/strings.py +25 -0
- omlish-0.0.0.dev7/omlish/lite/subprocesses.py +112 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/logs/configs.py +15 -2
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/logs/formatters.py +7 -2
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/marshal/__init__.py +28 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/marshal/any.py +5 -5
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/marshal/base.py +27 -11
- omlish-0.0.0.dev7/omlish/marshal/base64.py +40 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/marshal/dataclasses.py +34 -28
- omlish-0.0.0.dev7/omlish/marshal/datetimes.py +146 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/marshal/enums.py +14 -8
- omlish-0.0.0.dev7/omlish/marshal/exceptions.py +17 -0
- omlish-0.0.0.dev7/omlish/marshal/factories.py +114 -0
- omlish-0.0.0.dev7/omlish/marshal/forbidden.py +35 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/marshal/global_.py +11 -4
- omlish-0.0.0.dev7/omlish/marshal/iterables.py +54 -0
- omlish-0.0.0.dev7/omlish/marshal/mappings.py +63 -0
- omlish-0.0.0.dev7/omlish/marshal/numbers.py +51 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/marshal/optionals.py +11 -12
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/marshal/polymorphism.py +86 -21
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/marshal/primitives.py +4 -5
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/marshal/standard.py +13 -8
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/marshal/uuids.py +4 -5
- omlish-0.0.0.dev7/omlish/matchfns.py +218 -0
- omlish-0.0.0.dev7/omlish/os.py +105 -0
- omlish-0.0.0.dev7/omlish/reflect/__init__.py +39 -0
- omlish-0.0.0.dev7/omlish/reflect/isinstance.py +38 -0
- omlish-0.0.0.dev7/omlish/reflect/ops.py +84 -0
- omlish-0.0.0.dev7/omlish/reflect/subst.py +110 -0
- omlish-0.0.0.dev7/omlish/reflect/types.py +275 -0
- omlish-0.0.0.dev7/omlish/secrets/__init__.py +23 -0
- omlish-0.0.0.dev7/omlish/secrets/crypto.py +132 -0
- omlish-0.0.0.dev7/omlish/secrets/marshal.py +70 -0
- omlish-0.0.0.dev7/omlish/secrets/openssl.py +207 -0
- omlish-0.0.0.dev7/omlish/secrets/secrets.py +299 -0
- omlish-0.0.0.dev7/omlish/secrets/subprocesses.py +42 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/sql/dbs.py +6 -5
- omlish-0.0.0.dev7/omlish/sql/exprs.py +12 -0
- omlish-0.0.0.dev7/omlish/sql/secrets.py +10 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/term.py +1 -1
- omlish-0.0.0.dev7/omlish/testing/pytest/plugins/switches.py +105 -0
- omlish-0.0.0.dev7/omlish/text/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/text/glyphsplit.py +5 -0
- omlish-0.0.0.dev7/omlish.egg-info/PKG-INFO +49 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish.egg-info/SOURCES.txt +37 -9
- omlish-0.0.0.dev7/omlish.egg-info/requires.txt +54 -0
- omlish-0.0.0.dev7/pyproject.toml +82 -0
- omlish-0.0.0.dev6/MANIFEST.in +0 -1
- omlish-0.0.0.dev6/PKG-INFO +0 -33
- omlish-0.0.0.dev6/README.md +0 -1
- omlish-0.0.0.dev6/omlish/__about__.py +0 -6
- omlish-0.0.0.dev6/omlish/__init__.py +0 -8
- omlish-0.0.0.dev6/omlish/diag/threads.py +0 -86
- omlish-0.0.0.dev6/omlish/lang/sys.py +0 -7
- omlish-0.0.0.dev6/omlish/marshal/base64.py +0 -25
- omlish-0.0.0.dev6/omlish/marshal/datetimes.py +0 -90
- omlish-0.0.0.dev6/omlish/marshal/exceptions.py +0 -7
- omlish-0.0.0.dev6/omlish/marshal/factories.py +0 -129
- omlish-0.0.0.dev6/omlish/marshal/iterables.py +0 -57
- omlish-0.0.0.dev6/omlish/marshal/mappings.py +0 -66
- omlish-0.0.0.dev6/omlish/os.py +0 -41
- omlish-0.0.0.dev6/omlish/reflect.py +0 -470
- omlish-0.0.0.dev6/omlish/secrets/__init__.py +0 -7
- omlish-0.0.0.dev6/omlish/secrets/marshal.py +0 -41
- omlish-0.0.0.dev6/omlish/secrets/secrets.py +0 -47
- omlish-0.0.0.dev6/omlish/testing/pytest/plugins/switches.py +0 -70
- omlish-0.0.0.dev6/omlish.egg-info/PKG-INFO +0 -33
- omlish-0.0.0.dev6/omlish.egg-info/requires.txt +0 -28
- omlish-0.0.0.dev6/pyproject.toml +0 -293
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/LICENSE +0 -0
- {omlish-0.0.0.dev6/omlish/graphs → omlish-0.0.0.dev7/omlish}/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/argparse.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/asyncs/asyncio.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/asyncs/asyncs.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/asyncs/bridge.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/asyncs/flavors.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/asyncs/trio.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/asyncs/trio_asyncio.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/c3.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/cached.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/_abc.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/_io_abc.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/cache/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/cache/descriptor.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/cache/impl.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/cache/types.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/coerce.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/frozen.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/identity.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/indexed.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/mappings.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/ordered.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/persistent.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/skiplist.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/sorted.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/treap.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/treapmap.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/collections/unmodifiable.py +0 -0
- omlish-0.0.0.dev6/omlish/asyncs/futures.py → omlish-0.0.0.dev7/omlish/concurrent.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/configs/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/configs/classes.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/configs/flattening.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/api.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/as_.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/copy.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/exceptions.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/fields.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/frozen.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/hashing.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/init.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/internals.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/main.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/metaclass.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/metadata.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/order.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/params.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/processing.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/replace.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/repr.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/simple.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/slots.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dataclasses/impl/utils.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/defs.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/diag/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/diag/procstats.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/diag/ps.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/diag/pydevd.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/diag/replserver/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/diag/replserver/__main__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/diag/replserver/console.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/diag/replserver/server.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dispatch/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dispatch/_dispatch2.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dispatch/_dispatch3.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dispatch/dispatch.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dispatch/functions.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dispatch/methods.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/dynamic.py +0 -0
- {omlish-0.0.0.dev6/omlish/inject/impl → omlish-0.0.0.dev7/omlish/formats}/__init__.py +0 -0
- {omlish-0.0.0.dev6/omlish/serde → omlish-0.0.0.dev7/omlish/formats}/json.py +0 -0
- {omlish-0.0.0.dev6/omlish/serde → omlish-0.0.0.dev7/omlish/formats}/props.py +0 -0
- {omlish-0.0.0.dev6/omlish/serde → omlish-0.0.0.dev7/omlish/graphs}/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/graphs/dags.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/graphs/domination.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/graphs/dot/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/graphs/dot/items.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/graphs/dot/rendering.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/graphs/dot/utils.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/http/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/http/asgi.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/http/collections.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/http/cookies.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/http/dates.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/http/encodings.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/http/json.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/http/wsgi.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/binder.py +3 -3
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/bindings.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/eagers.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/exceptions.py +0 -0
- {omlish-0.0.0.dev6/omlish/text → omlish-0.0.0.dev7/omlish/inject/impl}/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/impl/bindings.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/impl/elements.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/impl/inspect.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/impl/multis.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/impl/privates.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/impl/providers.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/impl/proxy.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/impl/scopes.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/injector.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/inspect.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/keys.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/listeners.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/managed.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/multis.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/overrides.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/privates.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/providers.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/scopes.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/inject/types.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/cached.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/classes/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/classes/abstract.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/classes/simple.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/classes/virtual.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/clsdct.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/cmp.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/exceptions.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/functions.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/resolving.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lang/timeouts.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/libc.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lifecycles/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lifecycles/abstract.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lifecycles/base.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lifecycles/contextmanagers.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lifecycles/controller.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lifecycles/manager.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lifecycles/states.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/lifecycles/transitions.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/logs/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/logs/_abc.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/logs/filters.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/logs/utils.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/marshal/naming.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/marshal/objects.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/marshal/registries.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/marshal/utils.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/marshal/values.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/math.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/runmodule.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/secrets/passwords.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/sql/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/sql/_abc.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/sql/asyncs.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/sql/duckdb.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/sql/sqlean.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/stats.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/sync.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/testing/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/testing/pytest/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/testing/pytest/helpers.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/testing/pytest/inject/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/testing/pytest/inject/harness.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/testing/pytest/marks.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/testing/pytest/plugins/__init__.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/testing/pytest/plugins/_registry.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/testing/pytest/plugins/asyncs.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/testing/pytest/plugins/logging.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/testing/pytest/plugins/managermarks.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/testing/pytest/plugins/pydevd.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/testing/pytest/plugins/repeat.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/testing/pytest/plugins/skips.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/testing/pytest/plugins/spacing.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/testing/testing.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/text/delimit.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/text/indent.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish/text/parts.py +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish.egg-info/dependency_links.txt +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/omlish.egg-info/top_level.txt +0 -0
- {omlish-0.0.0.dev6 → omlish-0.0.0.dev7}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
global-exclude **/conftest.py
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: omlish
|
|
3
|
+
Version: 0.0.0.dev7
|
|
4
|
+
Summary: omlish
|
|
5
|
+
Author: wrmsr
|
|
6
|
+
License: BSD-3-Clause
|
|
7
|
+
Project-URL: source, https://github.com/wrmsr/omlish
|
|
8
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
9
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Operating System :: POSIX
|
|
13
|
+
Requires-Python: >=3.12
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Provides-Extra: async
|
|
16
|
+
Requires-Dist: anyio>=4.4; extra == "async"
|
|
17
|
+
Requires-Dist: sniffio>=1.3; extra == "async"
|
|
18
|
+
Requires-Dist: greenlet>=3; python_version < "3.13" and extra == "async"
|
|
19
|
+
Requires-Dist: trio>=0.26; extra == "async"
|
|
20
|
+
Requires-Dist: trio-asyncio>=0.15; python_version < "3.13" and extra == "async"
|
|
21
|
+
Provides-Extra: compression
|
|
22
|
+
Requires-Dist: lz4>=4; extra == "compression"
|
|
23
|
+
Requires-Dist: python-snappy>=0.7; python_version < "3.13" and extra == "compression"
|
|
24
|
+
Requires-Dist: zstd>=1.5; extra == "compression"
|
|
25
|
+
Provides-Extra: formats
|
|
26
|
+
Requires-Dist: orjson>3.10; extra == "formats"
|
|
27
|
+
Requires-Dist: cloudpickle>=3; extra == "formats"
|
|
28
|
+
Requires-Dist: pyyaml>=5; extra == "formats"
|
|
29
|
+
Provides-Extra: http
|
|
30
|
+
Requires-Dist: httpx[http2]>=0.27; extra == "http"
|
|
31
|
+
Provides-Extra: misc
|
|
32
|
+
Requires-Dist: jinja2>=3.1; extra == "misc"
|
|
33
|
+
Requires-Dist: psutil>=6; extra == "misc"
|
|
34
|
+
Requires-Dist: wrapt>=1.14; extra == "misc"
|
|
35
|
+
Provides-Extra: secrets
|
|
36
|
+
Requires-Dist: cryptography>=43; extra == "secrets"
|
|
37
|
+
Provides-Extra: sql
|
|
38
|
+
Requires-Dist: sqlalchemy>=2; python_version >= "3.13" and extra == "sql"
|
|
39
|
+
Requires-Dist: sqlalchemy[asyncio]>=2; python_version < "3.13" and extra == "sql"
|
|
40
|
+
Requires-Dist: pg8000>=1.31; extra == "sql"
|
|
41
|
+
Requires-Dist: pymysql>=1.1; extra == "sql"
|
|
42
|
+
Requires-Dist: aiomysql>=0.2; extra == "sql"
|
|
43
|
+
Requires-Dist: aiosqlite>=0.20; extra == "sql"
|
|
44
|
+
Requires-Dist: asyncpg>=0.29; python_version < "3.13" and extra == "sql"
|
|
45
|
+
Provides-Extra: sqlx
|
|
46
|
+
Requires-Dist: sqlean.py>=3.45; python_version < "3.13" and extra == "sqlx"
|
|
47
|
+
Requires-Dist: duckdb>=1; extra == "sqlx"
|
|
48
|
+
Provides-Extra: testing
|
|
49
|
+
Requires-Dist: pytest>=8; extra == "testing"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*omlish*
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
__version__ = '0.0.0.dev7'
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
#
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ProjectBase:
|
|
8
|
+
name: str | None = None
|
|
9
|
+
authors = [{'name': 'wrmsr'}]
|
|
10
|
+
urls = {'source': 'https://github.com/wrmsr/omlish'}
|
|
11
|
+
license = {'text': 'BSD-3-Clause'}
|
|
12
|
+
requires_python = '>=3.12'
|
|
13
|
+
|
|
14
|
+
version = __version__
|
|
15
|
+
|
|
16
|
+
classifiers = [
|
|
17
|
+
'License :: OSI Approved :: BSD License',
|
|
18
|
+
'Development Status :: 2 - Pre-Alpha',
|
|
19
|
+
'Intended Audience :: Developers',
|
|
20
|
+
|
|
21
|
+
'Operating System :: OS Independent',
|
|
22
|
+
'Operating System :: POSIX',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class Project(ProjectBase):
|
|
27
|
+
name = 'omlish'
|
|
28
|
+
description = 'omlish'
|
|
29
|
+
|
|
30
|
+
optional_dependencies = {
|
|
31
|
+
'async': [
|
|
32
|
+
'anyio >= 4.4',
|
|
33
|
+
'sniffio >= 1.3',
|
|
34
|
+
|
|
35
|
+
'greenlet >= 3; python_version < "3.13"',
|
|
36
|
+
|
|
37
|
+
'trio >= 0.26',
|
|
38
|
+
'trio-asyncio >= 0.15; python_version < "3.13"',
|
|
39
|
+
],
|
|
40
|
+
|
|
41
|
+
'compression': [
|
|
42
|
+
'lz4 >= 4',
|
|
43
|
+
'python-snappy >= 0.7; python_version < "3.13"',
|
|
44
|
+
'zstd >= 1.5',
|
|
45
|
+
],
|
|
46
|
+
|
|
47
|
+
'formats': [
|
|
48
|
+
'orjson > 3.10',
|
|
49
|
+
'cloudpickle >= 3',
|
|
50
|
+
'pyyaml >= 5',
|
|
51
|
+
],
|
|
52
|
+
|
|
53
|
+
'http': [
|
|
54
|
+
'httpx[http2] >= 0.27',
|
|
55
|
+
],
|
|
56
|
+
|
|
57
|
+
'misc': [
|
|
58
|
+
'jinja2 >= 3.1',
|
|
59
|
+
'psutil >= 6',
|
|
60
|
+
'wrapt >= 1.14',
|
|
61
|
+
],
|
|
62
|
+
|
|
63
|
+
'secrets': [
|
|
64
|
+
'cryptography >= 43',
|
|
65
|
+
],
|
|
66
|
+
|
|
67
|
+
'sql': [
|
|
68
|
+
'sqlalchemy >= 2; python_version >= "3.13"',
|
|
69
|
+
'sqlalchemy[asyncio] >= 2; python_version < "3.13"',
|
|
70
|
+
|
|
71
|
+
'pg8000 >= 1.31',
|
|
72
|
+
'pymysql >= 1.1',
|
|
73
|
+
|
|
74
|
+
'aiomysql >= 0.2',
|
|
75
|
+
'aiosqlite >= 0.20',
|
|
76
|
+
'asyncpg >= 0.29; python_version < "3.13"',
|
|
77
|
+
],
|
|
78
|
+
|
|
79
|
+
'sqlx': [
|
|
80
|
+
"sqlean.py >= 3.45; python_version < '3.13'",
|
|
81
|
+
|
|
82
|
+
'duckdb >= 1',
|
|
83
|
+
],
|
|
84
|
+
|
|
85
|
+
'testing': [
|
|
86
|
+
'pytest >= 8',
|
|
87
|
+
],
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
#
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
class SetuptoolsBase:
|
|
95
|
+
manifest_in = [
|
|
96
|
+
'global-exclude **/conftest.py',
|
|
97
|
+
]
|
|
98
|
+
|
|
99
|
+
include_package_data = False
|
|
100
|
+
|
|
101
|
+
find_packages = {
|
|
102
|
+
'exclude': ['*.tests', '*.tests.*'],
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
class Setuptools(SetuptoolsBase):
|
|
107
|
+
find_packages = {
|
|
108
|
+
'include': ['omlish', 'omlish.*'],
|
|
109
|
+
'exclude': [*SetuptoolsBase.find_packages['exclude']],
|
|
110
|
+
}
|
|
@@ -13,9 +13,20 @@ lookit:
|
|
|
13
13
|
- https://github.com/M-o-a-T/aevent
|
|
14
14
|
- https://github.com/florimondmanca/aiometer
|
|
15
15
|
- https://github.com/sanitizers/octomachinery/blob/b36c3d3d49da813ac46e361424132955a4e99ac8/octomachinery/utils/asynctools.py
|
|
16
|
+
|
|
17
|
+
==
|
|
18
|
+
|
|
19
|
+
async def killer(shutdown: anyio.Event, sleep_s: float) -> None:
|
|
20
|
+
log.warning('Killing in %d seconds', sleep_s)
|
|
21
|
+
await anyio.sleep(sleep_s)
|
|
22
|
+
log.warning('Killing')
|
|
23
|
+
shutdown.set()
|
|
24
|
+
|
|
16
25
|
""" # noqa
|
|
26
|
+
import signal
|
|
17
27
|
import typing as ta
|
|
18
28
|
|
|
29
|
+
import anyio.abc
|
|
19
30
|
import anyio.streams.memory
|
|
20
31
|
import anyio.streams.stapled
|
|
21
32
|
import sniffio
|
|
@@ -214,3 +225,32 @@ class LazyFn(ta.Generic[T]):
|
|
|
214
225
|
self._v = lang.just(await self._fn())
|
|
215
226
|
await self._once.do(do)
|
|
216
227
|
return self._v.must()
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
##
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
async def install_shutdown_signal_handler(
|
|
234
|
+
tg: anyio.abc.TaskGroup,
|
|
235
|
+
event: anyio.Event | None = None,
|
|
236
|
+
*,
|
|
237
|
+
signals: ta.Iterable[int] = (signal.SIGINT, signal.SIGTERM),
|
|
238
|
+
echo: bool = False,
|
|
239
|
+
) -> ta.Callable[..., ta.Awaitable[None]] | None:
|
|
240
|
+
if event is None:
|
|
241
|
+
event = anyio.Event()
|
|
242
|
+
|
|
243
|
+
async def _handler(*, task_status=anyio.TASK_STATUS_IGNORED):
|
|
244
|
+
with anyio.open_signal_receiver(*signals) as it: # type: ignore
|
|
245
|
+
task_status.started()
|
|
246
|
+
async for signum in it:
|
|
247
|
+
if echo:
|
|
248
|
+
if signum == signal.SIGINT:
|
|
249
|
+
print('Ctrl+C pressed!')
|
|
250
|
+
else:
|
|
251
|
+
print('Terminated!')
|
|
252
|
+
event.set()
|
|
253
|
+
return
|
|
254
|
+
|
|
255
|
+
await tg.start(_handler)
|
|
256
|
+
return event.wait
|