omlish 0.0.0.dev6__tar.gz → 0.0.0.dev9__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.

Files changed (298) hide show
  1. omlish-0.0.0.dev9/MANIFEST.in +1 -0
  2. omlish-0.0.0.dev9/PKG-INFO +49 -0
  3. omlish-0.0.0.dev9/README.rst +1 -0
  4. omlish-0.0.0.dev9/omlish/__about__.py +110 -0
  5. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/asyncs/__init__.py +0 -9
  6. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/asyncs/anyio.py +40 -0
  7. omlish-0.0.0.dev9/omlish/bootstrap.py +737 -0
  8. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/check.py +1 -1
  9. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/__init__.py +4 -0
  10. omlish-0.0.0.dev9/omlish/collections/exceptions.py +2 -0
  11. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/utils.py +38 -9
  12. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/configs/strings.py +2 -0
  13. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/__init__.py +7 -0
  14. omlish-0.0.0.dev9/omlish/dataclasses/impl/descriptors.py +95 -0
  15. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/reflect.py +1 -1
  16. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/utils.py +23 -0
  17. {omlish-0.0.0.dev6/omlish/lang → omlish-0.0.0.dev9/omlish}/datetimes.py +8 -4
  18. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/diag/procfs.py +1 -1
  19. omlish-0.0.0.dev9/omlish/diag/threads.py +169 -0
  20. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/docker.py +16 -1
  21. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/fnpairs.py +0 -4
  22. {omlish-0.0.0.dev6/omlish/serde → omlish-0.0.0.dev9/omlish/formats}/dotenv.py +3 -0
  23. {omlish-0.0.0.dev6/omlish/serde → omlish-0.0.0.dev9/omlish/formats}/yaml.py +2 -2
  24. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/graphs/trees.py +1 -1
  25. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/http/consts.py +6 -0
  26. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/http/sessions.py +2 -2
  27. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/__init__.py +4 -0
  28. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/elements.py +1 -1
  29. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/impl/injector.py +57 -27
  30. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/impl/origins.py +2 -0
  31. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/origins.py +3 -0
  32. omlish-0.0.0.dev9/omlish/inject/utils.py +18 -0
  33. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/iterators.py +69 -2
  34. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/__init__.py +16 -7
  35. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/classes/restrict.py +10 -0
  36. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/contextmanagers.py +1 -1
  37. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/descriptors.py +3 -3
  38. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/imports.py +67 -0
  39. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/iterables.py +40 -0
  40. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/maybes.py +3 -0
  41. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/objects.py +38 -0
  42. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/strings.py +25 -0
  43. omlish-0.0.0.dev9/omlish/lang/sys.py +16 -0
  44. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/typing.py +37 -0
  45. omlish-0.0.0.dev9/omlish/lite/__init__.py +1 -0
  46. omlish-0.0.0.dev9/omlish/lite/cached.py +18 -0
  47. omlish-0.0.0.dev9/omlish/lite/check.py +29 -0
  48. omlish-0.0.0.dev9/omlish/lite/contextmanagers.py +18 -0
  49. omlish-0.0.0.dev9/omlish/lite/json.py +30 -0
  50. omlish-0.0.0.dev9/omlish/lite/logs.py +121 -0
  51. omlish-0.0.0.dev9/omlish/lite/marshal.py +318 -0
  52. omlish-0.0.0.dev9/omlish/lite/reflect.py +49 -0
  53. omlish-0.0.0.dev9/omlish/lite/runtime.py +18 -0
  54. omlish-0.0.0.dev9/omlish/lite/secrets.py +19 -0
  55. omlish-0.0.0.dev9/omlish/lite/strings.py +25 -0
  56. omlish-0.0.0.dev9/omlish/lite/subprocesses.py +112 -0
  57. omlish-0.0.0.dev9/omlish/logs/__init__.py +13 -0
  58. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/logs/configs.py +17 -22
  59. omlish-0.0.0.dev9/omlish/logs/formatters.py +26 -0
  60. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/marshal/__init__.py +28 -0
  61. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/marshal/any.py +5 -5
  62. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/marshal/base.py +27 -11
  63. omlish-0.0.0.dev9/omlish/marshal/base64.py +40 -0
  64. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/marshal/dataclasses.py +34 -28
  65. omlish-0.0.0.dev9/omlish/marshal/datetimes.py +146 -0
  66. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/marshal/enums.py +14 -8
  67. omlish-0.0.0.dev9/omlish/marshal/exceptions.py +17 -0
  68. omlish-0.0.0.dev9/omlish/marshal/factories.py +114 -0
  69. omlish-0.0.0.dev9/omlish/marshal/forbidden.py +35 -0
  70. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/marshal/global_.py +11 -4
  71. omlish-0.0.0.dev9/omlish/marshal/iterables.py +54 -0
  72. omlish-0.0.0.dev9/omlish/marshal/mappings.py +63 -0
  73. omlish-0.0.0.dev9/omlish/marshal/numbers.py +51 -0
  74. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/marshal/optionals.py +11 -12
  75. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/marshal/polymorphism.py +86 -21
  76. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/marshal/primitives.py +4 -5
  77. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/marshal/standard.py +13 -8
  78. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/marshal/uuids.py +4 -5
  79. omlish-0.0.0.dev9/omlish/matchfns.py +218 -0
  80. omlish-0.0.0.dev9/omlish/os.py +105 -0
  81. omlish-0.0.0.dev9/omlish/reflect/__init__.py +39 -0
  82. omlish-0.0.0.dev9/omlish/reflect/isinstance.py +38 -0
  83. omlish-0.0.0.dev9/omlish/reflect/ops.py +84 -0
  84. omlish-0.0.0.dev9/omlish/reflect/subst.py +110 -0
  85. omlish-0.0.0.dev9/omlish/reflect/types.py +275 -0
  86. omlish-0.0.0.dev9/omlish/secrets/__init__.py +23 -0
  87. omlish-0.0.0.dev9/omlish/secrets/crypto.py +132 -0
  88. omlish-0.0.0.dev9/omlish/secrets/marshal.py +70 -0
  89. omlish-0.0.0.dev9/omlish/secrets/openssl.py +207 -0
  90. omlish-0.0.0.dev9/omlish/secrets/secrets.py +299 -0
  91. omlish-0.0.0.dev9/omlish/secrets/subprocesses.py +42 -0
  92. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/sql/dbs.py +6 -5
  93. omlish-0.0.0.dev9/omlish/sql/exprs.py +12 -0
  94. omlish-0.0.0.dev9/omlish/sql/secrets.py +10 -0
  95. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/term.py +1 -1
  96. omlish-0.0.0.dev9/omlish/testing/pytest/plugins/switches.py +105 -0
  97. omlish-0.0.0.dev9/omlish/text/__init__.py +0 -0
  98. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/text/glyphsplit.py +5 -0
  99. omlish-0.0.0.dev9/omlish.egg-info/PKG-INFO +49 -0
  100. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish.egg-info/SOURCES.txt +37 -10
  101. omlish-0.0.0.dev9/omlish.egg-info/requires.txt +54 -0
  102. omlish-0.0.0.dev9/pyproject.toml +82 -0
  103. omlish-0.0.0.dev6/MANIFEST.in +0 -1
  104. omlish-0.0.0.dev6/PKG-INFO +0 -33
  105. omlish-0.0.0.dev6/README.md +0 -1
  106. omlish-0.0.0.dev6/omlish/__about__.py +0 -6
  107. omlish-0.0.0.dev6/omlish/__init__.py +0 -8
  108. omlish-0.0.0.dev6/omlish/diag/threads.py +0 -86
  109. omlish-0.0.0.dev6/omlish/lang/sys.py +0 -7
  110. omlish-0.0.0.dev6/omlish/logs/__init__.py +0 -9
  111. omlish-0.0.0.dev6/omlish/logs/filters.py +0 -11
  112. omlish-0.0.0.dev6/omlish/logs/formatters.py +0 -71
  113. omlish-0.0.0.dev6/omlish/marshal/base64.py +0 -25
  114. omlish-0.0.0.dev6/omlish/marshal/datetimes.py +0 -90
  115. omlish-0.0.0.dev6/omlish/marshal/exceptions.py +0 -7
  116. omlish-0.0.0.dev6/omlish/marshal/factories.py +0 -129
  117. omlish-0.0.0.dev6/omlish/marshal/iterables.py +0 -57
  118. omlish-0.0.0.dev6/omlish/marshal/mappings.py +0 -66
  119. omlish-0.0.0.dev6/omlish/os.py +0 -41
  120. omlish-0.0.0.dev6/omlish/reflect.py +0 -470
  121. omlish-0.0.0.dev6/omlish/secrets/__init__.py +0 -7
  122. omlish-0.0.0.dev6/omlish/secrets/marshal.py +0 -41
  123. omlish-0.0.0.dev6/omlish/secrets/secrets.py +0 -47
  124. omlish-0.0.0.dev6/omlish/testing/pytest/plugins/switches.py +0 -70
  125. omlish-0.0.0.dev6/omlish.egg-info/PKG-INFO +0 -33
  126. omlish-0.0.0.dev6/omlish.egg-info/requires.txt +0 -28
  127. omlish-0.0.0.dev6/pyproject.toml +0 -293
  128. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/LICENSE +0 -0
  129. {omlish-0.0.0.dev6/omlish/graphs → omlish-0.0.0.dev9/omlish}/__init__.py +0 -0
  130. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/argparse.py +0 -0
  131. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/asyncs/asyncio.py +0 -0
  132. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/asyncs/asyncs.py +0 -0
  133. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/asyncs/bridge.py +0 -0
  134. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/asyncs/flavors.py +0 -0
  135. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/asyncs/trio.py +0 -0
  136. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/asyncs/trio_asyncio.py +0 -0
  137. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/c3.py +0 -0
  138. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/cached.py +0 -0
  139. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/_abc.py +0 -0
  140. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/_io_abc.py +0 -0
  141. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/cache/__init__.py +0 -0
  142. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/cache/descriptor.py +0 -0
  143. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/cache/impl.py +0 -0
  144. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/cache/types.py +0 -0
  145. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/coerce.py +0 -0
  146. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/frozen.py +0 -0
  147. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/identity.py +0 -0
  148. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/indexed.py +0 -0
  149. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/mappings.py +0 -0
  150. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/ordered.py +0 -0
  151. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/persistent.py +0 -0
  152. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/skiplist.py +0 -0
  153. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/sorted.py +0 -0
  154. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/treap.py +0 -0
  155. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/treapmap.py +0 -0
  156. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/collections/unmodifiable.py +0 -0
  157. omlish-0.0.0.dev6/omlish/asyncs/futures.py → omlish-0.0.0.dev9/omlish/concurrent.py +0 -0
  158. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/configs/__init__.py +0 -0
  159. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/configs/classes.py +0 -0
  160. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/configs/flattening.py +0 -0
  161. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/__init__.py +0 -0
  162. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/api.py +0 -0
  163. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/as_.py +0 -0
  164. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/copy.py +0 -0
  165. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/exceptions.py +0 -0
  166. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/fields.py +0 -0
  167. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/frozen.py +0 -0
  168. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/hashing.py +0 -0
  169. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/init.py +0 -0
  170. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/internals.py +0 -0
  171. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/main.py +0 -0
  172. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/metaclass.py +0 -0
  173. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/metadata.py +0 -0
  174. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/order.py +0 -0
  175. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/params.py +0 -0
  176. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/processing.py +0 -0
  177. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/replace.py +0 -0
  178. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/repr.py +0 -0
  179. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/simple.py +0 -0
  180. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/slots.py +0 -0
  181. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dataclasses/impl/utils.py +0 -0
  182. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/defs.py +0 -0
  183. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/diag/__init__.py +0 -0
  184. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/diag/procstats.py +0 -0
  185. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/diag/ps.py +0 -0
  186. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/diag/pydevd.py +0 -0
  187. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/diag/replserver/__init__.py +0 -0
  188. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/diag/replserver/__main__.py +0 -0
  189. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/diag/replserver/console.py +0 -0
  190. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/diag/replserver/server.py +0 -0
  191. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dispatch/__init__.py +0 -0
  192. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dispatch/_dispatch2.py +0 -0
  193. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dispatch/_dispatch3.py +0 -0
  194. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dispatch/dispatch.py +0 -0
  195. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dispatch/functions.py +0 -0
  196. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dispatch/methods.py +0 -0
  197. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/dynamic.py +0 -0
  198. {omlish-0.0.0.dev6/omlish/inject/impl → omlish-0.0.0.dev9/omlish/formats}/__init__.py +0 -0
  199. {omlish-0.0.0.dev6/omlish/serde → omlish-0.0.0.dev9/omlish/formats}/json.py +0 -0
  200. {omlish-0.0.0.dev6/omlish/serde → omlish-0.0.0.dev9/omlish/formats}/props.py +0 -0
  201. {omlish-0.0.0.dev6/omlish/serde → omlish-0.0.0.dev9/omlish/graphs}/__init__.py +0 -0
  202. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/graphs/dags.py +0 -0
  203. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/graphs/domination.py +0 -0
  204. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/graphs/dot/__init__.py +0 -0
  205. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/graphs/dot/items.py +0 -0
  206. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/graphs/dot/rendering.py +0 -0
  207. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/graphs/dot/utils.py +0 -0
  208. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/http/__init__.py +0 -0
  209. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/http/asgi.py +0 -0
  210. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/http/collections.py +0 -0
  211. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/http/cookies.py +0 -0
  212. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/http/dates.py +0 -0
  213. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/http/encodings.py +0 -0
  214. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/http/json.py +0 -0
  215. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/http/wsgi.py +0 -0
  216. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/binder.py +3 -3
  217. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/bindings.py +0 -0
  218. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/eagers.py +0 -0
  219. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/exceptions.py +0 -0
  220. {omlish-0.0.0.dev6/omlish/text → omlish-0.0.0.dev9/omlish/inject/impl}/__init__.py +0 -0
  221. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/impl/bindings.py +0 -0
  222. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/impl/elements.py +0 -0
  223. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/impl/inspect.py +0 -0
  224. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/impl/multis.py +0 -0
  225. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/impl/privates.py +0 -0
  226. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/impl/providers.py +0 -0
  227. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/impl/proxy.py +0 -0
  228. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/impl/scopes.py +0 -0
  229. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/injector.py +0 -0
  230. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/inspect.py +0 -0
  231. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/keys.py +0 -0
  232. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/listeners.py +0 -0
  233. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/managed.py +0 -0
  234. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/multis.py +0 -0
  235. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/overrides.py +0 -0
  236. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/privates.py +0 -0
  237. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/providers.py +0 -0
  238. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/scopes.py +0 -0
  239. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/inject/types.py +0 -0
  240. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/cached.py +0 -0
  241. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/classes/__init__.py +0 -0
  242. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/classes/abstract.py +0 -0
  243. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/classes/simple.py +0 -0
  244. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/classes/virtual.py +0 -0
  245. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/clsdct.py +0 -0
  246. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/cmp.py +0 -0
  247. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/exceptions.py +0 -0
  248. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/functions.py +0 -0
  249. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/resolving.py +0 -0
  250. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lang/timeouts.py +0 -0
  251. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/libc.py +0 -0
  252. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lifecycles/__init__.py +0 -0
  253. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lifecycles/abstract.py +0 -0
  254. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lifecycles/base.py +0 -0
  255. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lifecycles/contextmanagers.py +0 -0
  256. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lifecycles/controller.py +0 -0
  257. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lifecycles/manager.py +0 -0
  258. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lifecycles/states.py +0 -0
  259. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/lifecycles/transitions.py +0 -0
  260. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/logs/_abc.py +0 -0
  261. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/logs/utils.py +0 -0
  262. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/marshal/naming.py +0 -0
  263. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/marshal/objects.py +0 -0
  264. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/marshal/registries.py +0 -0
  265. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/marshal/utils.py +0 -0
  266. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/marshal/values.py +0 -0
  267. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/math.py +0 -0
  268. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/runmodule.py +0 -0
  269. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/secrets/passwords.py +0 -0
  270. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/sql/__init__.py +0 -0
  271. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/sql/_abc.py +0 -0
  272. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/sql/asyncs.py +0 -0
  273. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/sql/duckdb.py +0 -0
  274. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/sql/sqlean.py +0 -0
  275. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/stats.py +0 -0
  276. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/sync.py +0 -0
  277. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/testing/__init__.py +0 -0
  278. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/testing/pytest/__init__.py +0 -0
  279. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/testing/pytest/helpers.py +0 -0
  280. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/testing/pytest/inject/__init__.py +0 -0
  281. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/testing/pytest/inject/harness.py +0 -0
  282. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/testing/pytest/marks.py +0 -0
  283. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/testing/pytest/plugins/__init__.py +0 -0
  284. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/testing/pytest/plugins/_registry.py +0 -0
  285. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/testing/pytest/plugins/asyncs.py +0 -0
  286. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/testing/pytest/plugins/logging.py +0 -0
  287. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/testing/pytest/plugins/managermarks.py +0 -0
  288. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/testing/pytest/plugins/pydevd.py +0 -0
  289. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/testing/pytest/plugins/repeat.py +0 -0
  290. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/testing/pytest/plugins/skips.py +0 -0
  291. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/testing/pytest/plugins/spacing.py +0 -0
  292. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/testing/testing.py +0 -0
  293. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/text/delimit.py +0 -0
  294. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/text/indent.py +0 -0
  295. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish/text/parts.py +0 -0
  296. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish.egg-info/dependency_links.txt +0 -0
  297. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/omlish.egg-info/top_level.txt +0 -0
  298. {omlish-0.0.0.dev6 → omlish-0.0.0.dev9}/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.dev9
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.dev9'
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': [Project.name, f'{Project.name}.*'],
109
+ 'exclude': [*SetuptoolsBase.find_packages['exclude']],
110
+ }
@@ -33,12 +33,3 @@ from .flavors import ( # noqa
33
33
  mark_trio,
34
34
  with_adapter_loop,
35
35
  )
36
-
37
- from .futures import ( # noqa
38
- FutureError,
39
- FutureTimeoutError,
40
- ImmediateExecutor,
41
- new_thread_or_immediate_executor,
42
- wait_dependent_futures,
43
- wait_futures,
44
- )
@@ -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