hyperlight-cocoa 0.2.2__tar.gz → 0.2.3__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.
Files changed (161) hide show
  1. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/PKG-INFO +1 -1
  2. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/base/keyword_arg.py +2 -0
  3. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/base/positional_arg.py +2 -0
  4. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/command.py +74 -1
  5. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/inspect_wrapped.py +13 -1
  6. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/hyperlight_cocoa.egg-info/PKG-INFO +1 -1
  7. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/pyproject.toml +1 -1
  8. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/LICENSE +0 -0
  9. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/README.md +0 -0
  10. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/__init__.py +0 -0
  11. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/__init__.py +0 -0
  12. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/base/__init__.py +0 -0
  13. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/data_types/__init__.py +0 -0
  14. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/data_types/assert_set.py +0 -0
  15. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/data_types/context.py +0 -0
  16. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/data_types/env.py +0 -0
  17. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/data_types/import_instance.py +0 -0
  18. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/data_types/import_type.py +0 -0
  19. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/data_types/json_data.py +0 -0
  20. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/data_types/json_file.py +0 -0
  21. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/data_types/paths.py +0 -0
  22. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/data_types/pattern.py +0 -0
  23. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/data_types/raw_file.py +0 -0
  24. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/data_types/reduce_pattern_type.py +0 -0
  25. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/operators/__init__.py +0 -0
  26. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/operators/chain.py +0 -0
  27. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/operators/map.py +0 -0
  28. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/arg_types/operators/operator.py +0 -0
  29. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/cli.py +0 -0
  30. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/cli_protocol.py +0 -0
  31. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/group.py +0 -0
  32. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/help_message/__init__.py +0 -0
  33. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/help_message/cli_style.py +0 -0
  34. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/help_message/create_help_string.py +0 -0
  35. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/help_message/description_help_message.py +0 -0
  36. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/help_message/help_message.py +0 -0
  37. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/help_message/line_parsing.py +0 -0
  38. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/help_message/options_help_message.py +0 -0
  39. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/cli/help_message/title_help_message.py +0 -0
  40. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/__init__.py +0 -0
  41. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/__init__.py +0 -0
  42. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/animated_status_bar/__init__.py +0 -0
  43. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/animated_status_bar/animated_status_bar.py +0 -0
  44. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/animated_status_bar/animated_status_bar_config.py +0 -0
  45. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/counter/__init__.py +0 -0
  46. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/counter/counter.py +0 -0
  47. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/counter/counter_config.py +0 -0
  48. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/empty/__init__.py +0 -0
  49. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/empty/empty.py +0 -0
  50. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/header/__init__.py +0 -0
  51. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/header/header.py +0 -0
  52. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/header/header_config.py +0 -0
  53. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/header/letters/__init__.py +0 -0
  54. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/header/letters/fonts/__init__.py +0 -0
  55. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/header/letters/fonts/bubbles.py +0 -0
  56. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/header/letters/fonts/cyberpunk.py +0 -0
  57. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/header/letters/fonts/font_set.py +0 -0
  58. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/header/letters/fonts/letter.py +0 -0
  59. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/header/letters/formatted_letter.py +0 -0
  60. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/header/letters/formatted_word.py +0 -0
  61. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/header/letters/letters.py +0 -0
  62. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/header/letters/word.py +0 -0
  63. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/link/__init__.py +0 -0
  64. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/link/link.py +0 -0
  65. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/link/link_config.py +0 -0
  66. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/link/link_validator.py +0 -0
  67. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/multiline_text/__init__.py +0 -0
  68. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/multiline_text/multiline_text.py +0 -0
  69. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/multiline_text/multiline_text_config.py +0 -0
  70. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/progress_bar/__init__.py +0 -0
  71. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/progress_bar/background_char.py +0 -0
  72. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/progress_bar/end_char.py +0 -0
  73. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/progress_bar/fill_char.py +0 -0
  74. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/progress_bar/progress_bar.py +0 -0
  75. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/progress_bar/progress_bar_config.py +0 -0
  76. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/progress_bar/progress_bar_status.py +0 -0
  77. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/progress_bar/start_char.py +0 -0
  78. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/scatter_plot/__init__.py +0 -0
  79. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/scatter_plot/plot_config.py +0 -0
  80. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/scatter_plot/plot_point.py +0 -0
  81. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/scatter_plot/plotille/__init__.py +0 -0
  82. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/scatter_plot/plotille/_canvas.py +0 -0
  83. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/scatter_plot/plotille/_cmaps.py +0 -0
  84. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/scatter_plot/plotille/_cmaps_data.py +0 -0
  85. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/scatter_plot/plotille/_colors.py +0 -0
  86. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/scatter_plot/plotille/_dots.py +0 -0
  87. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/scatter_plot/plotille/_figure.py +0 -0
  88. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/scatter_plot/plotille/_figure_data.py +0 -0
  89. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/scatter_plot/plotille/_graphs.py +0 -0
  90. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/scatter_plot/plotille/_input_formatter.py +0 -0
  91. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/scatter_plot/plotille/_util.py +0 -0
  92. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/scatter_plot/point_char.py +0 -0
  93. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/scatter_plot/scatter_plot.py +0 -0
  94. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/spinner/__init__.py +0 -0
  95. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/spinner/spinner.py +0 -0
  96. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/spinner/spinner_config.py +0 -0
  97. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/spinner/spinner_data.py +0 -0
  98. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/spinner/spinner_factory.py +0 -0
  99. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/spinner/spinner_frames_set.py +0 -0
  100. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/spinner/spinner_status.py +0 -0
  101. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/spinner/spinner_types.py +0 -0
  102. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/status_bar/__init__.py +0 -0
  103. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/status_bar/status_bar.py +0 -0
  104. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/status_bar/status_bar_config.py +0 -0
  105. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/table/__init__.py +0 -0
  106. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/table/table.py +0 -0
  107. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/table/table_config.py +0 -0
  108. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/table/tabulate/__init__.py +0 -0
  109. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/table/tabulate/cell_alignment.py +0 -0
  110. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/table/tabulate/charset_position_type.py +0 -0
  111. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/table/tabulate/table_assembler.py +0 -0
  112. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/table/tabulate/table_border_lines.py +0 -0
  113. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/terminal/__init__.py +0 -0
  114. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/terminal/action.py +0 -0
  115. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/terminal/canvas.py +0 -0
  116. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/terminal/engine_config.py +0 -0
  117. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/terminal/refresh_rate.py +0 -0
  118. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/terminal/section.py +0 -0
  119. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/terminal/section_config.py +0 -0
  120. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/terminal/terminal.py +0 -0
  121. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/terminal/terminal_protocol.py +0 -0
  122. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/text/__init__.py +0 -0
  123. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/text/text.py +0 -0
  124. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/text/text_config.py +0 -0
  125. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/timer/__init__.py +0 -0
  126. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/timer/timer.py +0 -0
  127. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/timer/timer_config.py +0 -0
  128. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/timer/timer_status.py +0 -0
  129. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/total_rate/__init__.py +0 -0
  130. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/total_rate/total_rate.py +0 -0
  131. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/total_rate/total_rate_config.py +0 -0
  132. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/total_rate/total_rate_status.py +0 -0
  133. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/windowed_rate/__init__.py +0 -0
  134. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/windowed_rate/windowed_rate.py +0 -0
  135. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/components/windowed_rate/windowed_rate_config.py +0 -0
  136. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/config/__init__.py +0 -0
  137. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/config/mode.py +0 -0
  138. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/config/widget_fit_dimensions.py +0 -0
  139. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/state/__init__.py +0 -0
  140. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/state/observe.py +0 -0
  141. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/state/state_types.py +0 -0
  142. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/state/subscription_set.py +0 -0
  143. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/styling/__init__.py +0 -0
  144. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/styling/attributes/__init__.py +0 -0
  145. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/styling/attributes/attribute.py +0 -0
  146. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/styling/attributes/attributizer.py +0 -0
  147. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/styling/colors/__init__.py +0 -0
  148. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/styling/colors/color.py +0 -0
  149. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/styling/colors/colorizer.py +0 -0
  150. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/styling/colors/extended_color.py +0 -0
  151. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/styling/colors/highlight.py +0 -0
  152. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/styling/stylize.py +0 -0
  153. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/ui/styling/stylizer.py +0 -0
  154. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/utils/__init__.py +0 -0
  155. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/cocoa/utils/time_parser.py +0 -0
  156. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/example/test_cyperpunk.py +0 -0
  157. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/hyperlight_cocoa.egg-info/SOURCES.txt +0 -0
  158. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/hyperlight_cocoa.egg-info/dependency_links.txt +0 -0
  159. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/hyperlight_cocoa.egg-info/requires.txt +0 -0
  160. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/hyperlight_cocoa.egg-info/top_level.txt +0 -0
  161. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: hyperlight-cocoa
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Create beautiful, performant terminal UI and CLI apps.
5
5
  Author-email: Ada Lundhe <adalundhe@lundhe.audio>
6
6
  License: MIT License
@@ -41,6 +41,7 @@ class KeywordArg(Generic[T]):
41
41
  required: bool = True,
42
42
  arg_type: KeywordArgType = "keyword",
43
43
  description: str | None = None,
44
+ is_multiarg: bool = False,
44
45
  is_context_arg: bool = False,
45
46
  ):
46
47
  if short_name is None:
@@ -49,6 +50,7 @@ class KeywordArg(Generic[T]):
49
50
  self.name = name
50
51
  self.short_name = short_name
51
52
  self.is_context_arg = is_context_arg
53
+ self.is_multiarg = is_multiarg
52
54
 
53
55
  full_flag = "-".join(name.split("_"))
54
56
 
@@ -31,11 +31,13 @@ class PositionalArg(Generic[T]):
31
31
  index: int,
32
32
  data_type: type[T],
33
33
  description: str | None = None,
34
+ is_multiarg: bool = False,
34
35
  is_context_arg: bool = False,
35
36
  ):
36
37
  self.name = name
37
38
  self.index = index
38
39
  self.is_context_arg = is_context_arg
40
+ self.is_multiarg = is_multiarg
39
41
 
40
42
  self.is_envar: bool = False
41
43
 
@@ -86,6 +86,7 @@ class Command(Generic[T]):
86
86
  self.keyword_args_map = keyword_args_map
87
87
  self.keyword_args_count = len(keyword_args_map)
88
88
  self.positional_args_count = len(positional_args)
89
+ self._consumed_keywords: list[str] = []
89
90
  self._loop = asyncio.get_event_loop()
90
91
 
91
92
  @property
@@ -322,7 +323,11 @@ class Command(Generic[T]):
322
323
 
323
324
  elif (
324
325
  positional_arg := positional_args_map.get(positional_idx)
325
- ) and idx not in consumed_idxs:
326
+ ) and (
327
+ idx not in consumed_idxs
328
+ ) and (
329
+ positional_arg.is_multiarg is False
330
+ ):
326
331
  positional_args, error = await self._consume_positional_value(
327
332
  arg,
328
333
  positional_arg,
@@ -333,6 +338,31 @@ class Command(Generic[T]):
333
338
 
334
339
  consumed_idxs.add(idx)
335
340
 
341
+ elif (
342
+ positional_arg := positional_args_map.get(positional_idx)
343
+ ) and (
344
+ idx not in consumed_idxs
345
+ ) and (
346
+ positional_arg.is_multiarg
347
+ ):
348
+ (
349
+ positional_args,
350
+ error,
351
+ consumed,
352
+ ) = await self._consume_multiarg_positional_value(
353
+ arg,
354
+ positional_arg,
355
+ positional_args,
356
+ keyword_args_map,
357
+ cli_args[idx + 1 :],
358
+ idx,
359
+ )
360
+
361
+ positional_idx += len(consumed)
362
+
363
+ for consumed_idx in consumed:
364
+ consumed_idxs.add(consumed_idx)
365
+
336
366
  if error:
337
367
  errors.append(error)
338
368
  return (
@@ -381,6 +411,42 @@ class Command(Generic[T]):
381
411
  positional_args,
382
412
  None,
383
413
  )
414
+
415
+ async def _consume_multiarg_positional_value(
416
+ self,
417
+ arg: str,
418
+ positional_arg: PositionalArg,
419
+ positional_args: list[Any],
420
+ keyword_args_map: dict[str, KeywordArg],
421
+ args: list[str],
422
+ idx: int,
423
+ ):
424
+ consumed = set([idx])
425
+
426
+ for arg_idx, arg in enumerate(args):
427
+ if keyword_args_map.get(arg):
428
+ break
429
+
430
+ positional_args, error = await self._consume_positional_value(
431
+ arg,
432
+ positional_arg,
433
+ positional_args,
434
+ )
435
+
436
+ if error:
437
+ return (
438
+ positional_args,
439
+ error,
440
+ consumed,
441
+ )
442
+
443
+ consumed.add(idx + arg_idx + 1)
444
+
445
+ return (
446
+ positional_args,
447
+ error,
448
+ consumed,
449
+ )
384
450
 
385
451
  async def _consume_keyword_value(
386
452
  self,
@@ -389,6 +455,13 @@ class Command(Generic[T]):
389
455
  keyword_arg: KeywordArg,
390
456
  consumed_idxs: set[int],
391
457
  ):
458
+ if keyword_arg.is_multiarg is False and keyword_arg.name in self._consumed_keywords:
459
+ return (
460
+ None,
461
+ Exception(f'{keyword_arg.full_flag} may only be specified once'),
462
+ consumed_idxs,
463
+ )
464
+
392
465
  if keyword_arg.arg_type == "flag":
393
466
  return (
394
467
  True,
@@ -2,7 +2,7 @@ from __future__ import annotations
2
2
 
3
3
  import inspect
4
4
 
5
- from typing import Any, Callable, get_args
5
+ from typing import Any, Callable, get_args, get_origin
6
6
  from types import UnionType
7
7
  from .arg_types import (
8
8
  Context,
@@ -69,6 +69,15 @@ def inspect_wrapped(
69
69
  position_index: int = 0
70
70
 
71
71
  for arg_name, arg_attrs in call_args.parameters.items():
72
+
73
+ is_multiarg = arg_attrs.annotation in [
74
+ list,
75
+ set,
76
+ ] or get_origin(arg_attrs.annotation) in [
77
+ list,
78
+ set,
79
+ ]
80
+
72
81
  if (
73
82
  arg_attrs.default == inspect._empty
74
83
  and arg_attrs.annotation == inspect._empty
@@ -82,6 +91,7 @@ def inspect_wrapped(
82
91
  arg_name,
83
92
  position_index,
84
93
  arg_attrs.annotation,
94
+ is_multiarg=is_multiarg,
85
95
  is_context_arg=Context == arg_attrs.annotation,
86
96
  )
87
97
 
@@ -111,6 +121,7 @@ def inspect_wrapped(
111
121
 
112
122
  required = no_default and none_not_preset
113
123
 
124
+
114
125
  keyword_arg = KeywordArg(
115
126
  arg_name,
116
127
  arg_attrs.annotation,
@@ -118,6 +129,7 @@ def inspect_wrapped(
118
129
  required=required,
119
130
  default=arg_default,
120
131
  arg_type=arg_type,
132
+ is_multiarg=is_multiarg,
121
133
  is_context_arg=Context == arg_attrs.annotation,
122
134
  )
123
135
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: hyperlight-cocoa
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Create beautiful, performant terminal UI and CLI apps.
5
5
  Author-email: Ada Lundhe <adalundhe@lundhe.audio>
6
6
  License: MIT License
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "hyperlight-cocoa"
9
- version = "0.2.2"
9
+ version = "0.2.3"
10
10
  requires-python = ">=3.11"
11
11
  description = "Create beautiful, performant terminal UI and CLI apps."
12
12
  readme = "README.md"