ommlds 0.0.0.dev452__tar.gz → 0.0.0.dev454__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 ommlds might be problematic. Click here for more details.

Files changed (341) hide show
  1. {ommlds-0.0.0.dev452/ommlds.egg-info → ommlds-0.0.0.dev454}/PKG-INFO +3 -3
  2. ommlds-0.0.0.dev454/ommlds/minichain/_marshal.py +67 -0
  3. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/_typedvalues.py +2 -4
  4. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/_marshal.py +20 -17
  5. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/materialize.py +1 -1
  6. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/transforms/interleave.py +1 -1
  7. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/transforms/squeeze.py +1 -1
  8. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/transforms/stringify.py +1 -1
  9. ommlds-0.0.0.dev454/ommlds/minichain/llms/_marshal.py +57 -0
  10. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/services/_marshal.py +44 -37
  11. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/vectors/_marshal.py +10 -9
  12. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454/ommlds.egg-info}/PKG-INFO +3 -3
  13. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds.egg-info/requires.txt +2 -2
  14. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/pyproject.toml +3 -3
  15. ommlds-0.0.0.dev452/ommlds/minichain/_marshal.py +0 -66
  16. ommlds-0.0.0.dev452/ommlds/minichain/llms/_marshal.py +0 -49
  17. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/LICENSE +0 -0
  18. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/MANIFEST.in +0 -0
  19. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/README.md +0 -0
  20. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/.omlish-manifests.json +0 -0
  21. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/__about__.py +0 -0
  22. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/__init__.py +0 -0
  23. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/_hacks/__init__.py +0 -0
  24. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/_hacks/patches.py +0 -0
  25. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/__init__.py +0 -0
  26. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/__init__.py +0 -0
  27. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/__init__.py +0 -0
  28. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/_marshal.py +0 -0
  29. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/sse/__init__.py +0 -0
  30. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/sse/_marshal.py +0 -0
  31. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/sse/assemble.py +0 -0
  32. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/sse/events.py +0 -0
  33. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/anthropic/protocol/types.py +0 -0
  34. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/google/__init__.py +0 -0
  35. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/google/protocol/__init__.py +0 -0
  36. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/google/protocol/_marshal.py +0 -0
  37. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/google/protocol/types.py +0 -0
  38. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/llamacpp/__init__.py +0 -0
  39. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/llamacpp/buildwheel.py +0 -0
  40. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/llamacpp/logging.py +0 -0
  41. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/__init__.py +0 -0
  42. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/__main__.py +0 -0
  43. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/caching.py +0 -0
  44. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/cli.py +0 -0
  45. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/generation.py +0 -0
  46. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/limits.py +0 -0
  47. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/loading.py +0 -0
  48. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/LICENSE +0 -0
  49. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/__init__.py +0 -0
  50. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/detokenization/__init__.py +0 -0
  51. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/detokenization/base.py +0 -0
  52. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/detokenization/bpe.py +0 -0
  53. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/detokenization/naive.py +0 -0
  54. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/detokenization/spm.py +0 -0
  55. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/loading.py +0 -0
  56. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/tokenization.py +0 -0
  57. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/mlx/tokenization/types.py +0 -0
  58. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/__init__.py +0 -0
  59. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/__init__.py +0 -0
  60. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/_common.py +0 -0
  61. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/_marshal.py +0 -0
  62. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/chatcompletion/__init__.py +0 -0
  63. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/chatcompletion/chunk.py +0 -0
  64. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/chatcompletion/contentpart.py +0 -0
  65. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/chatcompletion/message.py +0 -0
  66. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/chatcompletion/request.py +0 -0
  67. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/chatcompletion/response.py +0 -0
  68. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/chatcompletion/responseformat.py +0 -0
  69. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/chatcompletion/tokenlogprob.py +0 -0
  70. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/openai/protocol/completionusage.py +0 -0
  71. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/__init__.py +0 -0
  72. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/LICENSE +0 -0
  73. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/__init__.py +0 -0
  74. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/__init__.py +0 -0
  75. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/__main__.py +0 -0
  76. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/attention.py +0 -0
  77. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/cli.py +0 -0
  78. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/fetch.py +0 -0
  79. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/llm.py +0 -0
  80. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/loading.py +0 -0
  81. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/quantization.py +0 -0
  82. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/sampling.py +0 -0
  83. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/tokenization.py +0 -0
  84. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/llama3/transformer.py +0 -0
  85. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/sdxl/__init__.py +0 -0
  86. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/sdxl/__main__.py +0 -0
  87. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/sdxl/cli.py +0 -0
  88. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/sdxl/clip.py +0 -0
  89. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/sdxl/sdxl.py +0 -0
  90. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/models/sdxl/unet.py +0 -0
  91. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/tinygrad/tinygrad.py +0 -0
  92. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/torch/__init__.py +0 -0
  93. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/torch/backends.py +0 -0
  94. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/torch/devices.py +0 -0
  95. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/backends/torch/purge.py +0 -0
  96. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/__init__.py +0 -0
  97. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/__main__.py +0 -0
  98. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/backends/__init__.py +0 -0
  99. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/backends/inject.py +0 -0
  100. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/backends/standard.py +0 -0
  101. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/inject.py +0 -0
  102. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/main.py +0 -0
  103. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/__init__.py +0 -0
  104. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/base.py +0 -0
  105. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/__init__.py +0 -0
  106. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/base.py +0 -0
  107. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/code.py +0 -0
  108. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/inject.py +0 -0
  109. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/interactive.py +0 -0
  110. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/printing.py +0 -0
  111. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/prompt.py +0 -0
  112. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/state.py +0 -0
  113. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/chat/tools.py +0 -0
  114. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/completion/__init__.py +0 -0
  115. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/completion/completion.py +0 -0
  116. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/embedding/__init__.py +0 -0
  117. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/embedding/embedding.py +0 -0
  118. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/sessions/inject.py +0 -0
  119. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/state.py +0 -0
  120. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/tools/__init__.py +0 -0
  121. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/tools/config.py +0 -0
  122. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/tools/inject.py +0 -0
  123. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/cli/tools/weather.py +0 -0
  124. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/datasets/__init__.py +0 -0
  125. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/datasets/lib/__init__.py +0 -0
  126. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/datasets/lib/movies.py +0 -0
  127. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/huggingface.py +0 -0
  128. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/__init__.py +0 -0
  129. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/__init__.py +0 -0
  130. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/catalogs/__init__.py +0 -0
  131. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/catalogs/base.py +0 -0
  132. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/catalogs/simple.py +0 -0
  133. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/catalogs/strings.py +0 -0
  134. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/__init__.py +0 -0
  135. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/anthropic/__init__.py +0 -0
  136. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/anthropic/chat.py +0 -0
  137. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/anthropic/names.py +0 -0
  138. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/anthropic/stream.py +0 -0
  139. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/duckduckgo/__init__.py +0 -0
  140. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/duckduckgo/search.py +0 -0
  141. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/google/__init__.py +0 -0
  142. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/google/chat.py +0 -0
  143. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/google/names.py +0 -0
  144. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/google/search.py +0 -0
  145. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/google/stream.py +0 -0
  146. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/google/tools.py +0 -0
  147. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/huggingface/__init__.py +0 -0
  148. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/huggingface/configs.py +0 -0
  149. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/huggingface/repos.py +0 -0
  150. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/llamacpp/__init__.py +0 -0
  151. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/llamacpp/chat.py +0 -0
  152. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/llamacpp/completion.py +0 -0
  153. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/llamacpp/format.py +0 -0
  154. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/llamacpp/stream.py +0 -0
  155. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/mistral.py +0 -0
  156. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/mlx/__init__.py +0 -0
  157. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/mlx/chat.py +0 -0
  158. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/openai/__init__.py +0 -0
  159. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/openai/chat.py +0 -0
  160. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/openai/completion.py +0 -0
  161. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/openai/embedding.py +0 -0
  162. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/openai/format.py +0 -0
  163. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/openai/format2.py +0 -0
  164. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/openai/names.py +0 -0
  165. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/openai/stream.py +0 -0
  166. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/sentencepiece/__init__.py +0 -0
  167. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/sentencepiece/tokens.py +0 -0
  168. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/sqlite.py +0 -0
  169. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/tinygrad/__init__.py +0 -0
  170. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/tinygrad/chat.py +0 -0
  171. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/tokenizers/__init__.py +0 -0
  172. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/tokenizers/tokens.py +0 -0
  173. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/transformers/__init__.py +0 -0
  174. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/transformers/sentence.py +0 -0
  175. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/transformers/tokens.py +0 -0
  176. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/impls/transformers/transformers.py +0 -0
  177. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/strings/__init__.py +0 -0
  178. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/strings/manifests.py +0 -0
  179. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/strings/parsing.py +0 -0
  180. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/backends/strings/resolving.py +0 -0
  181. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/__init__.py +0 -0
  182. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/_marshal.py +0 -0
  183. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/choices/__init__.py +0 -0
  184. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/choices/adapters.py +0 -0
  185. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/choices/services.py +0 -0
  186. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/choices/types.py +0 -0
  187. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/formats.py +0 -0
  188. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/history.py +0 -0
  189. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/messages.py +0 -0
  190. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/metadata.py +0 -0
  191. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/services.py +0 -0
  192. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/stream/__init__.py +0 -0
  193. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/stream/_marshal.py +0 -0
  194. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/stream/adapters.py +0 -0
  195. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/stream/services.py +0 -0
  196. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/stream/types.py +0 -0
  197. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/templating.py +0 -0
  198. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/tools/__init__.py +0 -0
  199. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/tools/execution.py +0 -0
  200. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/tools/ids.py +0 -0
  201. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/tools/parsing.py +0 -0
  202. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/tools/types.py +0 -0
  203. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/transforms/__init__.py +0 -0
  204. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/transforms/base.py +0 -0
  205. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/transforms/metadata.py +0 -0
  206. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/transforms/services.py +0 -0
  207. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/chat/types.py +0 -0
  208. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/completion.py +0 -0
  209. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/configs.py +0 -0
  210. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/__init__.py +0 -0
  211. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/images.py +0 -0
  212. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/json.py +0 -0
  213. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/metadata.py +0 -0
  214. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/namespaces.py +0 -0
  215. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/placeholders.py +0 -0
  216. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/prepare.py +0 -0
  217. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/sequence.py +0 -0
  218. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/simple.py +0 -0
  219. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/text.py +0 -0
  220. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/transforms/__init__.py +0 -0
  221. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/transforms/base.py +0 -0
  222. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/transforms/strings.py +0 -0
  223. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/content/types.py +0 -0
  224. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/docs/__init__.py +0 -0
  225. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/docs/docs.py +0 -0
  226. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/docs/dtypes.py +0 -0
  227. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/docs/filters.py +0 -0
  228. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/envs.py +0 -0
  229. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/json.py +0 -0
  230. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/__init__.py +0 -0
  231. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/bash.py +0 -0
  232. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/code/__init__.py +0 -0
  233. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/code/prompts.py +0 -0
  234. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/__init__.py +0 -0
  235. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/binfiles.py +0 -0
  236. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/context.py +0 -0
  237. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/errors.py +0 -0
  238. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/suggestions.py +0 -0
  239. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/tools/__init__.py +0 -0
  240. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/tools/edit.py +0 -0
  241. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/tools/ls.py +0 -0
  242. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/tools/read.py +0 -0
  243. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/tools/recursivels/__init__.py +0 -0
  244. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/tools/recursivels/execution.py +0 -0
  245. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/tools/recursivels/rendering.py +0 -0
  246. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/fs/tools/recursivels/running.py +0 -0
  247. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/todo/__init__.py +0 -0
  248. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/todo/context.py +0 -0
  249. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/todo/tools/__init__.py +0 -0
  250. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/todo/tools/read.py +0 -0
  251. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/todo/tools/write.py +0 -0
  252. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/lib/todo/types.py +0 -0
  253. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/llms/__init__.py +0 -0
  254. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/llms/tokens.py +0 -0
  255. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/llms/types.py +0 -0
  256. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/metadata.py +0 -0
  257. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/models/__init__.py +0 -0
  258. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/models/configs.py +0 -0
  259. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/models/names.py +0 -0
  260. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/models/repos/__init__.py +0 -0
  261. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/models/repos/resolving.py +0 -0
  262. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/registries/__init__.py +0 -0
  263. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/registries/globals.py +0 -0
  264. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/registries/manifests.py +0 -0
  265. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/registries/registry.py +0 -0
  266. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/resources.py +0 -0
  267. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/search.py +0 -0
  268. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/services/__init__.py +0 -0
  269. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/services/_origclasses.py +0 -0
  270. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/services/_typedvalues.py +0 -0
  271. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/services/facades.py +0 -0
  272. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/services/requests.py +0 -0
  273. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/services/responses.py +0 -0
  274. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/services/services.py +0 -0
  275. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/standard.py +0 -0
  276. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/stream/__init__.py +0 -0
  277. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/stream/services.py +0 -0
  278. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/stream/wrap.py +0 -0
  279. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/__init__.py +0 -0
  280. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/applypatch.py +0 -0
  281. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/__init__.py +0 -0
  282. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/base.py +0 -0
  283. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/dumb.py +0 -0
  284. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/llamacpp/LICENSE +0 -0
  285. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/llamacpp/__init__.py +0 -0
  286. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/llamacpp/hermes2.py +0 -0
  287. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/llamacpp/llama31.py +0 -0
  288. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/llamacpp/types.py +0 -0
  289. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/text/toolparsing/llamacpp/utils.py +0 -0
  290. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tokens/__init__.py +0 -0
  291. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tokens/specials.py +0 -0
  292. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tokens/tokenizers.py +0 -0
  293. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tokens/types.py +0 -0
  294. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tokens/vocabs.py +0 -0
  295. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/__init__.py +0 -0
  296. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/_marshal.py +0 -0
  297. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/execution/__init__.py +0 -0
  298. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/execution/catalog.py +0 -0
  299. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/execution/context.py +0 -0
  300. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/execution/errors.py +0 -0
  301. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/execution/executors.py +0 -0
  302. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/execution/reflect.py +0 -0
  303. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/fns.py +0 -0
  304. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/jsonschema.py +0 -0
  305. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/reflect.py +0 -0
  306. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/tools/types.py +0 -0
  307. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/types.py +0 -0
  308. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/utils.py +0 -0
  309. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/vectors/__init__.py +0 -0
  310. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/vectors/embeddings.py +0 -0
  311. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/vectors/index.py +0 -0
  312. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/vectors/search.py +0 -0
  313. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/vectors/similarity.py +0 -0
  314. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/vectors/stores.py +0 -0
  315. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/minichain/vectors/types.py +0 -0
  316. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/server/__init__.py +0 -0
  317. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/server/__main__.py +0 -0
  318. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/server/cli.py +0 -0
  319. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/server/client.py +0 -0
  320. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/server/server.py +0 -0
  321. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/server/service.py +0 -0
  322. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/tools/__init__.py +0 -0
  323. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/tools/git.py +0 -0
  324. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/tools/ocr.py +0 -0
  325. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/__init__.py +0 -0
  326. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/analyze.py +0 -0
  327. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/convert.py +0 -0
  328. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/models.py +0 -0
  329. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/text/__init__.py +0 -0
  330. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/text/mfh.py +0 -0
  331. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/text/wtp.py +0 -0
  332. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/utils/__init__.py +0 -0
  333. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/utils/io.py +0 -0
  334. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/utils/progress.py +0 -0
  335. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/utils/xml.py +0 -0
  336. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds/wiki/xml.py +0 -0
  337. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds.egg-info/SOURCES.txt +0 -0
  338. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds.egg-info/dependency_links.txt +0 -0
  339. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds.egg-info/entry_points.txt +0 -0
  340. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/ommlds.egg-info/top_level.txt +0 -0
  341. {ommlds-0.0.0.dev452 → ommlds-0.0.0.dev454}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ommlds
3
- Version: 0.0.0.dev452
3
+ Version: 0.0.0.dev454
4
4
  Summary: ommlds
5
5
  Author: wrmsr
6
6
  License-Expression: BSD-3-Clause
@@ -14,8 +14,8 @@ Classifier: Programming Language :: Python :: 3.13
14
14
  Requires-Python: >=3.13
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
- Requires-Dist: omdev==0.0.0.dev452
18
- Requires-Dist: omlish==0.0.0.dev452
17
+ Requires-Dist: omdev==0.0.0.dev454
18
+ Requires-Dist: omlish==0.0.0.dev454
19
19
  Provides-Extra: all
20
20
  Requires-Dist: llama-cpp-python~=0.3; extra == "all"
21
21
  Requires-Dist: mlx~=0.29; extra == "all"
@@ -0,0 +1,67 @@
1
+ import typing as ta
2
+
3
+ from omlish import dataclasses as dc
4
+ from omlish import lang
5
+ from omlish import marshal as msh
6
+ from omlish import reflect as rfl
7
+ from omlish.typedvalues.marshal import build_typed_values_marshaler
8
+ from omlish.typedvalues.marshal import build_typed_values_unmarshaler
9
+
10
+ from .json import JsonValue
11
+
12
+
13
+ ##
14
+
15
+
16
+ @dc.dataclass()
17
+ class _TypedValuesFieldMarshalerFactory(msh.MarshalerFactory):
18
+ tvs_rty: rfl.Type
19
+
20
+ def make_marshaler(self, ctx: msh.MarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Marshaler] | None:
21
+ return lambda: build_typed_values_marshaler(ctx, self.tvs_rty)
22
+
23
+
24
+ @dc.dataclass()
25
+ class _TypedValuesFieldUnmarshalerFactory(msh.UnmarshalerFactory):
26
+ tvs_rty: rfl.Type
27
+
28
+ def make_unmarshaler(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Unmarshaler] | None:
29
+ return lambda: build_typed_values_unmarshaler(ctx, self.tvs_rty)
30
+
31
+
32
+ ##
33
+
34
+
35
+ class MarshalJsonValue(lang.NotInstantiable, lang.Final):
36
+ pass
37
+
38
+
39
+ class _JsonValueMarshalerFactory(msh.MarshalerFactory):
40
+ def make_marshaler(self, ctx: msh.MarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Marshaler] | None:
41
+ if rty is not MarshalJsonValue:
42
+ return None
43
+ return lambda: msh.NopMarshalerUnmarshaler()
44
+
45
+
46
+ class _JsonValueUnmarshalerFactory(msh.UnmarshalerFactory):
47
+ def make_unmarshaler(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Unmarshaler] | None:
48
+ if rty is not MarshalJsonValue:
49
+ return None
50
+ return lambda: msh.NopMarshalerUnmarshaler()
51
+
52
+
53
+ ##
54
+
55
+
56
+ @lang.static_init
57
+ def _install_standard_marshaling() -> None:
58
+ msh.register_global_config(
59
+ JsonValue,
60
+ msh.ReflectOverride(MarshalJsonValue),
61
+ identity=True,
62
+ )
63
+
64
+ msh.install_standard_factories(
65
+ _JsonValueMarshalerFactory(),
66
+ _JsonValueUnmarshalerFactory(),
67
+ )
@@ -74,12 +74,10 @@ def _tv_field_metadata(
74
74
  omit_if=operator.not_,
75
75
  ),
76
76
  marshaler_factory=msh.FuncMarshalerFactory(
77
- lambda ctx, rty: True,
78
- lambda ctx, rty: _marshal._TypedValuesFieldMarshalerFactory(tvs_rty)(ctx, rty), # noqa
77
+ lambda ctx, rty: _marshal._TypedValuesFieldMarshalerFactory(tvs_rty).make_marshaler(ctx, rty), # noqa
79
78
  ),
80
79
  unmarshaler_factory=msh.FuncUnmarshalerFactory(
81
- lambda ctx, rty: True,
82
- lambda ctx, rty: _marshal._TypedValuesFieldUnmarshalerFactory(tvs_rty)(ctx, rty), # noqa
80
+ lambda ctx, rty: _marshal._TypedValuesFieldUnmarshalerFactory(tvs_rty).make_unmarshaler(ctx, rty), # noqa
83
81
  ),
84
82
  ),
85
83
  }
@@ -6,7 +6,6 @@ from omlish import check
6
6
  from omlish import lang
7
7
  from omlish import marshal as msh
8
8
  from omlish import reflect as rfl
9
- from omlish.funcs import match as mfs
10
9
 
11
10
  from .images import ImageContent # noqa
12
11
  from .json import JsonContent # noqa
@@ -53,10 +52,11 @@ class _ContentMarshaler(msh.Marshaler):
53
52
  raise TypeError(o)
54
53
 
55
54
 
56
- class _ContentMarshalerFactory(msh.MarshalerFactoryMatchClass):
57
- @mfs.simple(lambda _, ctx, rty: rty is MarshalContent or rty == _MARSHAL_CONTENT_UNION_RTY)
58
- def _build(self, ctx: msh.MarshalContext, rty: rfl.Type) -> msh.Marshaler:
59
- return _ContentMarshaler(ctx.make(ExtendedContent))
55
+ class _ContentMarshalerFactory(msh.MarshalerFactory):
56
+ def make_marshaler(self, ctx: msh.MarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Marshaler] | None:
57
+ if not (rty is MarshalContent or rty == _MARSHAL_CONTENT_UNION_RTY):
58
+ return None
59
+ return lambda: _ContentMarshaler(ctx.make(ExtendedContent))
60
60
 
61
61
 
62
62
  @dc.dataclass(frozen=True)
@@ -74,10 +74,11 @@ class _ContentUnmarshaler(msh.Unmarshaler):
74
74
  raise TypeError(v)
75
75
 
76
76
 
77
- class _ContentUnmarshalerFactory(msh.UnmarshalerFactoryMatchClass):
78
- @mfs.simple(lambda _, ctx, rty: rty is MarshalContent or rty == _MARSHAL_CONTENT_UNION_RTY)
79
- def _build(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> msh.Unmarshaler:
80
- return _ContentUnmarshaler(ctx.make(ExtendedContent))
77
+ class _ContentUnmarshalerFactory(msh.UnmarshalerFactory):
78
+ def make_unmarshaler(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Unmarshaler] | None:
79
+ if not (rty is MarshalContent or rty == _MARSHAL_CONTENT_UNION_RTY):
80
+ return None
81
+ return lambda: _ContentUnmarshaler(ctx.make(ExtendedContent))
81
82
 
82
83
 
83
84
  ##
@@ -104,10 +105,11 @@ class _CanContentMarshaler(msh.Marshaler):
104
105
  return self.c.marshal(ctx, check.isinstance(o, CONTENT_RUNTIME_TYPES))
105
106
 
106
107
 
107
- class _CanContentMarshalerFactory(msh.MarshalerFactoryMatchClass):
108
- @mfs.simple(lambda _, ctx, rty: rty is MarshalCanContent or rty == _MARSHAL_CAN_CONTENT_UNION_RTY)
109
- def _build(self, ctx: msh.MarshalContext, rty: rfl.Type) -> msh.Marshaler:
110
- return _CanContentMarshaler(ctx.make(Content))
108
+ class _CanContentMarshalerFactory(msh.MarshalerFactory):
109
+ def make_marshaler(self, ctx: msh.MarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Marshaler] | None:
110
+ if not (rty is MarshalCanContent or rty == _MARSHAL_CAN_CONTENT_UNION_RTY):
111
+ return None
112
+ return lambda: _CanContentMarshaler(ctx.make(Content))
111
113
 
112
114
 
113
115
  @dc.dataclass(frozen=True)
@@ -118,10 +120,11 @@ class _CanContentUnmarshaler(msh.Unmarshaler):
118
120
  return self.c.unmarshal(ctx, v)
119
121
 
120
122
 
121
- class _CanContentUnmarshalerFactory(msh.UnmarshalerFactoryMatchClass):
122
- @mfs.simple(lambda _, ctx, rty: rty is MarshalCanContent or rty == _MARSHAL_CAN_CONTENT_UNION_RTY)
123
- def _build(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> msh.Unmarshaler:
124
- return _CanContentUnmarshaler(ctx.make(Content))
123
+ class _CanContentUnmarshalerFactory(msh.UnmarshalerFactory):
124
+ def make_unmarshaler(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Unmarshaler] | None:
125
+ if not (rty is MarshalCanContent or rty == _MARSHAL_CAN_CONTENT_UNION_RTY):
126
+ return None
127
+ return lambda: _CanContentUnmarshaler(ctx.make(Content))
125
128
 
126
129
 
127
130
  ##
@@ -112,7 +112,7 @@ class ContentMaterializer:
112
112
  finally:
113
113
  self._cur_depth -= 1
114
114
 
115
- @dispatch.method
115
+ @dispatch.method()
116
116
  def _materialize(self, o: CanContent) -> Content:
117
117
  raise TypeError(o)
118
118
 
@@ -33,7 +33,7 @@ class ContentInterleaver:
33
33
  cs = lang.interleave(cs, separator)
34
34
  return list(cs)
35
35
 
36
- @dispatch.method
36
+ @dispatch.method()
37
37
  def interleave(self, c: Content) -> Content:
38
38
  return c
39
39
 
@@ -22,7 +22,7 @@ class ContentSqueezer:
22
22
 
23
23
  self._strip_strings = strip_strings
24
24
 
25
- @dispatch.method
25
+ @dispatch.method()
26
26
  def squeeze(self, c: Content) -> ta.Iterable[SingleContent]:
27
27
  raise TypeError(c)
28
28
 
@@ -24,7 +24,7 @@ class ContentStringWriter:
24
24
 
25
25
  self._out = out
26
26
 
27
- @dispatch.method
27
+ @dispatch.method()
28
28
  def write(self, c: Content) -> None:
29
29
  raise TypeError(c)
30
30
 
@@ -0,0 +1,57 @@
1
+ """
2
+ TODO:
3
+ - can this for reuse
4
+ """
5
+ import typing as ta
6
+
7
+ from omlish import check
8
+ from omlish import dataclasses as dc
9
+ from omlish import lang
10
+ from omlish import marshal as msh
11
+ from omlish import reflect as rfl
12
+
13
+ from .tokens import Tokens
14
+
15
+
16
+ ##
17
+
18
+
19
+ class TokensMarshalerFactory(msh.MarshalerFactory):
20
+ def make_marshaler(self, ctx: msh.MarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Marshaler] | None:
21
+ if rty is not Tokens:
22
+ return None
23
+
24
+ dc_rfl = dc.reflect(Tokens)
25
+ dc_f = check.single(dc_rfl.fields.values())
26
+ v_rty = rfl.type_(dc_f.type)
27
+ v_m = ctx.make(v_rty)
28
+ f_n = dc_f.name
29
+
30
+ def inner() -> msh.Marshaler:
31
+ return msh.WrappedMarshaler(lambda _, o: getattr(o, f_n), v_m)
32
+
33
+ return inner
34
+
35
+
36
+ class TokensUnmarshalerFactory(msh.UnmarshalerFactory):
37
+ def make_unmarshaler(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Unmarshaler] | None:
38
+ if rty is not Tokens:
39
+ return None
40
+
41
+ dc_rfl = dc.reflect(Tokens)
42
+ dc_f = check.single(dc_rfl.fields.values())
43
+ v_rty = rfl.type_(dc_f.type)
44
+ v_u = ctx.make(v_rty)
45
+
46
+ def inner() -> msh.Unmarshaler:
47
+ return msh.WrappedUnmarshaler(lambda _, v: Tokens(v), v_u)
48
+
49
+ return inner
50
+
51
+
52
+ @lang.static_init
53
+ def _install_standard_marshaling() -> None:
54
+ msh.install_standard_factories(
55
+ TokensMarshalerFactory(),
56
+ TokensUnmarshalerFactory(),
57
+ )
@@ -57,26 +57,30 @@ class _RequestResponseMarshaler(msh.Marshaler):
57
57
  }
58
58
 
59
59
 
60
- class _RequestResponseMarshalerFactory(msh.SimpleMarshalerFactory):
61
- def guard(self, ctx: msh.MarshalContext, rty: rfl.Type) -> bool:
62
- return _is_rr_rty(rty)
60
+ class _RequestResponseMarshalerFactory(msh.MarshalerFactory):
61
+ def make_marshaler(self, ctx: msh.MarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Marshaler] | None:
62
+ if not _is_rr_rty(rty):
63
+ return None
63
64
 
64
- def fn(self, ctx: msh.MarshalContext, rty: rfl.Type) -> msh.Marshaler:
65
65
  if isinstance(rty, type):
66
66
  rty = rfl.type_(rfl.get_orig_class(rty))
67
- if isinstance(rty, rfl.Generic):
68
- v_rty, tv_rty = rty.args
69
- else:
70
- # FIXME: ...
71
- raise TypeError(rty)
72
- v_m: msh.Marshaler | None = None
73
- if not isinstance(v_rty, ta.TypeVar):
74
- v_m = ctx.make(v_rty)
75
- return _RequestResponseMarshaler(
76
- rty,
77
- _get_tv_fld(rty),
78
- v_m,
79
- )
67
+
68
+ def inner() -> msh.Marshaler:
69
+ if isinstance(rty, rfl.Generic):
70
+ v_rty, tv_rty = rty.args
71
+ else:
72
+ # FIXME: ...
73
+ raise TypeError(rty)
74
+ v_m: msh.Marshaler | None = None
75
+ if not isinstance(v_rty, ta.TypeVar):
76
+ v_m = ctx.make(v_rty)
77
+ return _RequestResponseMarshaler(
78
+ rty,
79
+ _get_tv_fld(rty),
80
+ v_m,
81
+ )
82
+
83
+ return inner
80
84
 
81
85
 
82
86
  #
@@ -108,26 +112,29 @@ class _RequestResponseUnmarshaler(msh.Unmarshaler):
108
112
  return cty(v, tvs) # type: ignore
109
113
 
110
114
 
111
- class _RequestResponseUnmarshalerFactory(msh.SimpleUnmarshalerFactory):
112
- def guard(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> bool:
113
- return _is_rr_rty(rty)
114
-
115
- def fn(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> msh.Unmarshaler:
116
- if isinstance(rty, rfl.Generic):
117
- v_rty, tv_rty = rty.args
118
- else:
119
- # FIXME: ...
120
- raise TypeError(rty)
121
- tv_types_set = check.isinstance(tv_rty, rfl.Union).args
122
- tv_ta = tv.TypedValues[ta.Union[*tv_types_set]] # type: ignore
123
- tv_u = ctx.make(tv_ta)
124
- v_u = ctx.make(v_rty)
125
- return _RequestResponseUnmarshaler(
126
- rty,
127
- _get_tv_fld(rty),
128
- v_u,
129
- tv_u,
130
- )
115
+ class _RequestResponseUnmarshalerFactory(msh.UnmarshalerFactory):
116
+ def make_unmarshaler(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Unmarshaler] | None:
117
+ if not _is_rr_rty(rty):
118
+ return None
119
+
120
+ def inner() -> msh.Unmarshaler:
121
+ if isinstance(rty, rfl.Generic):
122
+ v_rty, tv_rty = rty.args
123
+ else:
124
+ # FIXME: ...
125
+ raise TypeError(rty)
126
+ tv_types_set = check.isinstance(tv_rty, rfl.Union).args
127
+ tv_ta = tv.TypedValues[ta.Union[*tv_types_set]] # type: ignore
128
+ tv_u = ctx.make(tv_ta)
129
+ v_u = ctx.make(v_rty)
130
+ return _RequestResponseUnmarshaler(
131
+ rty,
132
+ _get_tv_fld(rty),
133
+ v_u,
134
+ tv_u,
135
+ )
136
+
137
+ return inner
131
138
 
132
139
 
133
140
  ##
@@ -9,7 +9,6 @@ from omlish import check
9
9
  from omlish import lang
10
10
  from omlish import marshal as msh
11
11
  from omlish import reflect as rfl
12
- from omlish.funcs import match as mfs
13
12
 
14
13
  from .types import Vector
15
14
 
@@ -25,10 +24,11 @@ class _VectorMarshaler(msh.Marshaler):
25
24
  return self.et.marshal(ctx, list(map(float, check.isinstance(o, Vector))))
26
25
 
27
26
 
28
- class _VectorMarshalerFactory(msh.MarshalerFactoryMatchClass):
29
- @mfs.simple(lambda _, ctx, rty: rty is Vector)
30
- def _build(self, ctx: msh.MarshalContext, rty: rfl.Type) -> msh.Marshaler:
31
- return _VectorMarshaler(ctx.make(ta.Sequence[float]))
27
+ class _VectorMarshalerFactory(msh.MarshalerFactory):
28
+ def make_marshaler(self, ctx: msh.MarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Marshaler] | None:
29
+ if rty is not Vector:
30
+ return None
31
+ return lambda: _VectorMarshaler(ctx.make(ta.Sequence[float]))
32
32
 
33
33
 
34
34
  @dc.dataclass(frozen=True)
@@ -39,10 +39,11 @@ class _VectorUnmarshaler(msh.Unmarshaler):
39
39
  return Vector(self.et.unmarshal(ctx, v))
40
40
 
41
41
 
42
- class _VectorUnmarshalerFactory(msh.UnmarshalerFactoryMatchClass):
43
- @mfs.simple(lambda _, ctx, rty: rty is Vector)
44
- def _build(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> msh.Unmarshaler:
45
- return _VectorUnmarshaler(ctx.make(ta.Sequence[float]))
42
+ class _VectorUnmarshalerFactory(msh.UnmarshalerFactory):
43
+ def make_unmarshaler(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> ta.Callable[[], msh.Unmarshaler] | None:
44
+ if rty is not Vector:
45
+ return None
46
+ return lambda: _VectorUnmarshaler(ctx.make(ta.Sequence[float]))
46
47
 
47
48
 
48
49
  ##
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ommlds
3
- Version: 0.0.0.dev452
3
+ Version: 0.0.0.dev454
4
4
  Summary: ommlds
5
5
  Author: wrmsr
6
6
  License-Expression: BSD-3-Clause
@@ -14,8 +14,8 @@ Classifier: Programming Language :: Python :: 3.13
14
14
  Requires-Python: >=3.13
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
- Requires-Dist: omdev==0.0.0.dev452
18
- Requires-Dist: omlish==0.0.0.dev452
17
+ Requires-Dist: omdev==0.0.0.dev454
18
+ Requires-Dist: omlish==0.0.0.dev454
19
19
  Provides-Extra: all
20
20
  Requires-Dist: llama-cpp-python~=0.3; extra == "all"
21
21
  Requires-Dist: mlx~=0.29; extra == "all"
@@ -1,5 +1,5 @@
1
- omdev==0.0.0.dev452
2
- omlish==0.0.0.dev452
1
+ omdev==0.0.0.dev454
2
+ omlish==0.0.0.dev454
3
3
 
4
4
  [all]
5
5
  llama-cpp-python~=0.3
@@ -13,7 +13,7 @@ urls = {source = 'https://github.com/wrmsr/omlish'}
13
13
  license = 'BSD-3-Clause'
14
14
  readme = 'README.md'
15
15
  requires-python = '>=3.13'
16
- version = '0.0.0.dev452'
16
+ version = '0.0.0.dev454'
17
17
  classifiers = [
18
18
  'Development Status :: 2 - Pre-Alpha',
19
19
  'Intended Audience :: Developers',
@@ -24,8 +24,8 @@ classifiers = [
24
24
  ]
25
25
  description = 'ommlds'
26
26
  dependencies = [
27
- 'omdev == 0.0.0.dev452',
28
- 'omlish == 0.0.0.dev452',
27
+ 'omdev == 0.0.0.dev454',
28
+ 'omlish == 0.0.0.dev454',
29
29
  ]
30
30
 
31
31
  [project.optional-dependencies]
@@ -1,66 +0,0 @@
1
- from omlish import dataclasses as dc
2
- from omlish import lang
3
- from omlish import marshal as msh
4
- from omlish import reflect as rfl
5
- from omlish.funcs import match as mfs
6
- from omlish.typedvalues.marshal import build_typed_values_marshaler
7
- from omlish.typedvalues.marshal import build_typed_values_unmarshaler
8
-
9
- from .json import JsonValue
10
-
11
-
12
- ##
13
-
14
-
15
- @dc.dataclass()
16
- class _TypedValuesFieldMarshalerFactory(msh.MarshalerFactoryMatchClass):
17
- tvs_rty: rfl.Type
18
-
19
- @mfs.simple(lambda _, ctx, rty: True)
20
- def _build(self, ctx: msh.MarshalContext, rty: rfl.Type) -> msh.Marshaler:
21
- return build_typed_values_marshaler(ctx, self.tvs_rty)
22
-
23
-
24
- @dc.dataclass()
25
- class _TypedValuesFieldUnmarshalerFactory(msh.UnmarshalerFactoryMatchClass):
26
- tvs_rty: rfl.Type
27
-
28
- @mfs.simple(lambda _, ctx, rty: True)
29
- def _build(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> msh.Unmarshaler:
30
- return build_typed_values_unmarshaler(ctx, self.tvs_rty)
31
-
32
-
33
- ##
34
-
35
-
36
- class MarshalJsonValue(lang.NotInstantiable, lang.Final):
37
- pass
38
-
39
-
40
- class _JsonValueMarshalerFactory(msh.MarshalerFactoryMatchClass):
41
- @mfs.simple(lambda _, ctx, rty: rty is MarshalJsonValue)
42
- def _build(self, ctx: msh.MarshalContext, rty: rfl.Type) -> msh.Marshaler:
43
- return msh.NopMarshalerUnmarshaler()
44
-
45
-
46
- class _JsonValueUnmarshalerFactory(msh.UnmarshalerFactoryMatchClass):
47
- @mfs.simple(lambda _, ctx, rty: rty is MarshalJsonValue)
48
- def _build(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> msh.Unmarshaler:
49
- return msh.NopMarshalerUnmarshaler()
50
-
51
-
52
- ##
53
-
54
-
55
- @lang.static_init
56
- def _install_standard_marshaling() -> None:
57
- msh.register_global_config(
58
- JsonValue,
59
- msh.ReflectOverride(MarshalJsonValue),
60
- identity=True,
61
- )
62
-
63
- msh.install_standard_factories(
64
- _JsonValueMarshalerFactory(),
65
- _JsonValueUnmarshalerFactory(),
66
- )
@@ -1,49 +0,0 @@
1
- """
2
- TODO:
3
- - can this for reuse
4
- """
5
- from omlish import check
6
- from omlish import dataclasses as dc
7
- from omlish import lang
8
- from omlish import marshal as msh
9
- from omlish import reflect as rfl
10
-
11
- from .tokens import Tokens
12
-
13
-
14
- ##
15
-
16
-
17
- class TokensMarshalerFactory(msh.SimpleMarshalerFactory):
18
- def guard(self, ctx: msh.MarshalContext, rty: rfl.Type) -> bool:
19
- return rty is Tokens
20
-
21
- def fn(self, ctx: msh.MarshalContext, rty: rfl.Type) -> msh.Marshaler:
22
- rty = check.isinstance(check.is_(rty, Tokens), type)
23
- dc_rfl = dc.reflect(rty)
24
- dc_f = check.single(dc_rfl.fields.values())
25
- v_rty = rfl.type_(dc_f.type)
26
- v_m = ctx.make(v_rty)
27
- f_n = dc_f.name
28
- return msh.WrappedMarshaler(lambda _, o: getattr(o, f_n), v_m)
29
-
30
-
31
- class TokensUnmarshalerFactory(msh.SimpleUnmarshalerFactory):
32
- def guard(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> bool:
33
- return rty is Tokens
34
-
35
- def fn(self, ctx: msh.UnmarshalContext, rty: rfl.Type) -> msh.Unmarshaler:
36
- rty = check.isinstance(check.is_(rty, Tokens), type)
37
- dc_rfl = dc.reflect(rty)
38
- dc_f = check.single(dc_rfl.fields.values())
39
- v_rty = rfl.type_(dc_f.type)
40
- v_u = ctx.make(v_rty)
41
- return msh.WrappedUnmarshaler(lambda _, v: rty(v), v_u)
42
-
43
-
44
- @lang.static_init
45
- def _install_standard_marshaling() -> None:
46
- msh.install_standard_factories(
47
- TokensMarshalerFactory(),
48
- TokensUnmarshalerFactory(),
49
- )
File without changes
File without changes
File without changes