hyperlight-cocoa 0.3.51__tar.gz → 0.4.0__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 (163) hide show
  1. {hyperlight_cocoa-0.3.51/hyperlight_cocoa.egg-info → hyperlight_cocoa-0.4.0}/PKG-INFO +1 -1
  2. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/cli.py +29 -2
  3. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/command.py +35 -3
  4. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/group.py +64 -8
  5. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0/hyperlight_cocoa.egg-info}/PKG-INFO +1 -1
  6. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/pyproject.toml +1 -1
  7. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/LICENSE +0 -0
  8. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/README.md +0 -0
  9. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/__init__.py +0 -0
  10. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/__init__.py +0 -0
  11. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/base/__init__.py +0 -0
  12. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/base/keyword_arg.py +0 -0
  13. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/base/positional_arg.py +0 -0
  14. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/data_types/__init__.py +0 -0
  15. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/data_types/assert_path.py +0 -0
  16. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/data_types/assert_set.py +0 -0
  17. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/data_types/check_if_multiarg.py +0 -0
  18. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/data_types/context.py +0 -0
  19. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/data_types/env.py +0 -0
  20. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/data_types/import_instance.py +0 -0
  21. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/data_types/import_type.py +0 -0
  22. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/data_types/json_data.py +0 -0
  23. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/data_types/json_file.py +0 -0
  24. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/data_types/paths.py +0 -0
  25. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/data_types/pattern.py +0 -0
  26. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/data_types/raw_file.py +0 -0
  27. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/data_types/reduce_pattern_type.py +0 -0
  28. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/operators/__init__.py +0 -0
  29. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/operators/chain.py +0 -0
  30. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/operators/map.py +0 -0
  31. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/arg_types/operators/operator.py +0 -0
  32. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/cli_protocol.py +0 -0
  33. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/help_message/__init__.py +0 -0
  34. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/help_message/cli_style.py +0 -0
  35. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/help_message/create_help_string.py +0 -0
  36. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/help_message/description_help_message.py +0 -0
  37. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/help_message/help_message.py +0 -0
  38. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/help_message/line_parsing.py +0 -0
  39. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/help_message/options_help_message.py +0 -0
  40. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/help_message/title_help_message.py +0 -0
  41. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/cli/inspect_wrapped.py +0 -0
  42. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/__init__.py +0 -0
  43. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/__init__.py +0 -0
  44. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/animated_status_bar/__init__.py +0 -0
  45. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/animated_status_bar/animated_status_bar.py +0 -0
  46. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/animated_status_bar/animated_status_bar_config.py +0 -0
  47. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/counter/__init__.py +0 -0
  48. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/counter/counter.py +0 -0
  49. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/counter/counter_config.py +0 -0
  50. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/empty/__init__.py +0 -0
  51. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/empty/empty.py +0 -0
  52. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/header/__init__.py +0 -0
  53. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/header/header.py +0 -0
  54. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/header/header_config.py +0 -0
  55. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/header/letters/__init__.py +0 -0
  56. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/header/letters/fonts/__init__.py +0 -0
  57. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/header/letters/fonts/alphabet.py +0 -0
  58. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/header/letters/fonts/bubbles.py +0 -0
  59. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/header/letters/fonts/cyberpunk.py +0 -0
  60. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/header/letters/fonts/formatted_letter.py +0 -0
  61. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/header/letters/fonts/letter.py +0 -0
  62. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/header/letters/formatted_word.py +0 -0
  63. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/header/letters/word.py +0 -0
  64. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/link/__init__.py +0 -0
  65. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/link/link.py +0 -0
  66. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/link/link_config.py +0 -0
  67. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/link/link_validator.py +0 -0
  68. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/multiline_text/__init__.py +0 -0
  69. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/multiline_text/multiline_text.py +0 -0
  70. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/multiline_text/multiline_text_config.py +0 -0
  71. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/progress_bar/__init__.py +0 -0
  72. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/progress_bar/background_char.py +0 -0
  73. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/progress_bar/end_char.py +0 -0
  74. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/progress_bar/fill_char.py +0 -0
  75. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/progress_bar/progress_bar.py +0 -0
  76. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/progress_bar/progress_bar_config.py +0 -0
  77. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/progress_bar/progress_bar_status.py +0 -0
  78. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/progress_bar/start_char.py +0 -0
  79. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/scatter_plot/__init__.py +0 -0
  80. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/scatter_plot/plot_config.py +0 -0
  81. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/scatter_plot/plot_point.py +0 -0
  82. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/scatter_plot/plotille/__init__.py +0 -0
  83. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/scatter_plot/plotille/_canvas.py +0 -0
  84. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/scatter_plot/plotille/_cmaps.py +0 -0
  85. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/scatter_plot/plotille/_cmaps_data.py +0 -0
  86. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/scatter_plot/plotille/_colors.py +0 -0
  87. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/scatter_plot/plotille/_dots.py +0 -0
  88. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/scatter_plot/plotille/_figure.py +0 -0
  89. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/scatter_plot/plotille/_figure_data.py +0 -0
  90. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/scatter_plot/plotille/_graphs.py +0 -0
  91. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/scatter_plot/plotille/_input_formatter.py +0 -0
  92. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/scatter_plot/plotille/_util.py +0 -0
  93. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/scatter_plot/point_char.py +0 -0
  94. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/scatter_plot/scatter_plot.py +0 -0
  95. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/spinner/__init__.py +0 -0
  96. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/spinner/spinner.py +0 -0
  97. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/spinner/spinner_config.py +0 -0
  98. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/spinner/spinner_data.py +0 -0
  99. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/spinner/spinner_factory.py +0 -0
  100. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/spinner/spinner_frames_set.py +0 -0
  101. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/spinner/spinner_status.py +0 -0
  102. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/spinner/spinner_types.py +0 -0
  103. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/status_bar/__init__.py +0 -0
  104. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/status_bar/status_bar.py +0 -0
  105. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/status_bar/status_bar_config.py +0 -0
  106. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/table/__init__.py +0 -0
  107. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/table/table.py +0 -0
  108. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/table/table_config.py +0 -0
  109. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/table/tabulate/__init__.py +0 -0
  110. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/table/tabulate/cell_alignment.py +0 -0
  111. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/table/tabulate/charset_position_type.py +0 -0
  112. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/table/tabulate/table_assembler.py +0 -0
  113. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/table/tabulate/table_border_lines.py +0 -0
  114. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/terminal/__init__.py +0 -0
  115. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/terminal/action.py +0 -0
  116. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/terminal/canvas.py +0 -0
  117. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/terminal/engine_config.py +0 -0
  118. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/terminal/refresh_rate.py +0 -0
  119. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/terminal/section.py +0 -0
  120. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/terminal/section_config.py +0 -0
  121. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/terminal/terminal.py +0 -0
  122. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/terminal/terminal_protocol.py +0 -0
  123. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/text/__init__.py +0 -0
  124. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/text/text.py +0 -0
  125. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/text/text_config.py +0 -0
  126. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/timer/__init__.py +0 -0
  127. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/timer/timer.py +0 -0
  128. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/timer/timer_config.py +0 -0
  129. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/timer/timer_status.py +0 -0
  130. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/total_rate/__init__.py +0 -0
  131. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/total_rate/total_rate.py +0 -0
  132. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/total_rate/total_rate_config.py +0 -0
  133. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/total_rate/total_rate_status.py +0 -0
  134. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/windowed_rate/__init__.py +0 -0
  135. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/windowed_rate/windowed_rate.py +0 -0
  136. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/components/windowed_rate/windowed_rate_config.py +0 -0
  137. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/config/__init__.py +0 -0
  138. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/config/mode.py +0 -0
  139. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/config/widget_fit_dimensions.py +0 -0
  140. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/state/__init__.py +0 -0
  141. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/state/observe.py +0 -0
  142. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/state/state_types.py +0 -0
  143. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/state/subscription_set.py +0 -0
  144. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/styling/__init__.py +0 -0
  145. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/styling/attributes/__init__.py +0 -0
  146. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/styling/attributes/attribute.py +0 -0
  147. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/styling/attributes/attributizer.py +0 -0
  148. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/styling/colors/__init__.py +0 -0
  149. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/styling/colors/color.py +0 -0
  150. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/styling/colors/colorizer.py +0 -0
  151. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/styling/colors/extended_color.py +0 -0
  152. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/styling/colors/highlight.py +0 -0
  153. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/styling/stylize.py +0 -0
  154. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/ui/styling/stylizer.py +0 -0
  155. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/utils/__init__.py +0 -0
  156. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/cocoa/utils/time_parser.py +0 -0
  157. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/example/test_check_multiarg.py +0 -0
  158. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/example/test_cyperpunk.py +0 -0
  159. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/hyperlight_cocoa.egg-info/SOURCES.txt +0 -0
  160. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/hyperlight_cocoa.egg-info/dependency_links.txt +0 -0
  161. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/hyperlight_cocoa.egg-info/requires.txt +0 -0
  162. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/hyperlight_cocoa.egg-info/top_level.txt +0 -0
  163. {hyperlight_cocoa-0.3.51 → hyperlight_cocoa-0.4.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperlight-cocoa
3
- Version: 0.3.51
3
+ Version: 0.4.0
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
@@ -28,8 +28,22 @@ class CLI:
28
28
 
29
29
  context = Context()
30
30
 
31
+ errors: list[str] = []
32
+ exit_code: int | None = None
31
33
  if len(args) > 0:
32
- return await cls._entrypoint.run(args, context)
34
+ (
35
+ _,
36
+ errors,
37
+ exit_code,
38
+ ) = await cls._entrypoint.run(args, context)
39
+
40
+ if len(errors) > 0 and exit_code is not None:
41
+ loop = asyncio.get_event_loop()
42
+ await loop.run_in_executor(
43
+ None,
44
+ sys.exit,
45
+ exit_code,
46
+ )
33
47
 
34
48
  subcommands: list[str] | None = None
35
49
  if len(cls._entrypoint.subgroups) > 0 or len(cls._entrypoint.subcommands) > 0:
@@ -51,6 +65,7 @@ class CLI:
51
65
  shortnames = {}
52
66
 
53
67
  def wrap(command_call):
68
+
54
69
  if global_styles:
55
70
  cls._global_styles = global_styles
56
71
 
@@ -97,6 +112,8 @@ class CLI:
97
112
  *commands: list[Group | Command],
98
113
  styling: CLIStyle | None = None,
99
114
  shortnames: dict[str, str] | None = None,
115
+ display_help_on_error: bool = True,
116
+ error_exit_code: int = 1,
100
117
  ):
101
118
  if shortnames is None:
102
119
  shortnames = {}
@@ -106,6 +123,8 @@ class CLI:
106
123
  return cls._entrypoint.group(
107
124
  styling=styling,
108
125
  shortnames=shortnames,
126
+ display_help_on_error=display_help_on_error,
127
+ error_exit_code=error_exit_code,
109
128
  )(command)
110
129
 
111
130
  else:
@@ -113,6 +132,7 @@ class CLI:
113
132
  command,
114
133
  styling=styling,
115
134
  shortnames=shortnames,
135
+
116
136
  )
117
137
 
118
138
  for command in commands:
@@ -139,18 +159,25 @@ class CLI:
139
159
  cls,
140
160
  styling: CLIStyle | None = None,
141
161
  shortnames: dict[str, str] | None = None,
162
+ display_help_on_error: bool = True,
163
+ error_exit_code: int = 1,
142
164
  ):
143
165
  if shortnames is None:
144
166
  shortnames = {}
145
167
 
146
168
  def wrap(command):
147
169
  if cls._entrypoint.source:
148
- cls._entrypoint.command(styling=styling, shortnames=shortnames)(command)
170
+ cls._entrypoint.command(
171
+ styling=styling,
172
+ shortnames=shortnames,
173
+ )(command)
149
174
 
150
175
  return create_command(
151
176
  command,
152
177
  styling=styling,
153
178
  shortnames=shortnames,
179
+ display_help_on_error=display_help_on_error,
180
+ error_exit_code=error_exit_code,
154
181
  )
155
182
 
156
183
  return wrap
@@ -37,6 +37,8 @@ def create_command(
37
37
  command_call: Callable[..., Any],
38
38
  styling: CLIStyle | None = None,
39
39
  shortnames: dict[str, str] | None = None,
40
+ display_help_on_error: bool = True,
41
+ error_exit_code: int = 1,
40
42
  ):
41
43
  indentation = 0
42
44
  if styling:
@@ -58,12 +60,16 @@ def create_command(
58
60
  help_message,
59
61
  positional_args=positional_args_map,
60
62
  keyword_args_map=keyword_args_map,
63
+ display_help_on_error=display_help_on_error,
64
+ error_exit_code=error_exit_code,
61
65
  )
62
66
 
63
67
 
64
68
  def command(
65
69
  styling: CLIStyle | None = None,
66
70
  shortnames: dict[str, str] | None = None,
71
+ display_help_on_error: bool = True,
72
+ error_exit_code: int = 1,
67
73
  ):
68
74
  if shortnames is None:
69
75
  shortnames = {}
@@ -74,12 +80,15 @@ def command(
74
80
  command_call,
75
81
  styling=styling,
76
82
  shortnames=shortnames,
83
+ display_help_on_error=display_help_on_error,
84
+ error_exit_code=error_exit_code,
77
85
  )
78
86
 
79
87
  return wrap
80
88
 
81
89
 
82
90
  class Command(Generic[T]):
91
+
83
92
  def __init__(
84
93
  self,
85
94
  command: str,
@@ -87,6 +96,8 @@ class Command(Generic[T]):
87
96
  help_message: HelpMessage,
88
97
  positional_args: dict[str, PositionalArg] | None = None,
89
98
  keyword_args_map: dict[str, KeywordArg] | None = None,
99
+ display_help_on_error: bool = True,
100
+ error_exit_code: int = 1,
90
101
  ):
91
102
  if positional_args is None:
92
103
  positional_args = {}
@@ -104,6 +115,9 @@ class Command(Generic[T]):
104
115
  self.keyword_args_map = keyword_args_map
105
116
  self.keyword_args_count = len(keyword_args_map)
106
117
  self.positional_args_count = len(positional_args)
118
+ self.display_help_on_error = display_help_on_error
119
+ self.error_exit_code = error_exit_code
120
+
107
121
  self._consumed_keywords: list[str] = []
108
122
  self._loop = asyncio.get_event_loop()
109
123
 
@@ -116,22 +130,30 @@ class Command(Generic[T]):
116
130
  self,
117
131
  args: list[str],
118
132
  context: Context[str, Any],
119
- ) -> tuple[Any | None, list[str]]:
133
+ ) -> tuple[
134
+ Any | None,
135
+ list[str], int | None,
136
+ ]:
120
137
  (positional_args, keyword_args, errors) = await self._find_args(args, context)
121
138
 
122
139
  if positional_args is None and keyword_args is None:
123
140
  await self._print_group_help_message()
124
141
 
125
- return (None, errors)
142
+ return (
143
+ None,
144
+ errors,
145
+ self.error_exit_code,
146
+ )
126
147
 
127
148
  elif len(errors) > 0:
128
149
  await self._print_group_help_message(
129
- error=errors[0],
150
+ error=[0],
130
151
  )
131
152
 
132
153
  return (
133
154
  None,
134
155
  errors,
156
+ self.error_exit_code,
135
157
  )
136
158
 
137
159
  try:
@@ -140,9 +162,14 @@ class Command(Generic[T]):
140
162
  return (
141
163
  result,
142
164
  errors,
165
+ self.error_exit_code,
143
166
  )
144
167
 
145
168
  except Exception as err:
169
+
170
+ if self.display_help_on_error is False:
171
+ raise err
172
+
146
173
  await self._print_group_help_message(
147
174
  error=err,
148
175
  )
@@ -150,12 +177,15 @@ class Command(Generic[T]):
150
177
  return (
151
178
  None,
152
179
  [err],
180
+ self.error_exit_code,
153
181
  )
154
182
 
155
183
  def command(
156
184
  self,
157
185
  styling: CLIStyle | None = None,
158
186
  shortnames: dict[str, str] | None = None,
187
+ display_help_on_error: bool = True,
188
+ error_exit_code: int = 1,
159
189
  ):
160
190
  if shortnames is None:
161
191
  shortnames = {}
@@ -165,6 +195,8 @@ class Command(Generic[T]):
165
195
  command_call,
166
196
  styling=styling,
167
197
  shortnames=shortnames,
198
+ display_help_on_error=display_help_on_error,
199
+ error_exit_code=error_exit_code,
168
200
  )
169
201
 
170
202
  return command_call
@@ -35,12 +35,20 @@ def group(
35
35
  *commands: list[Group | Command],
36
36
  styling: CLIStyle | None = None,
37
37
  shortnames: dict[str, str] | None = None,
38
+ display_help_on_error: bool = True,
39
+ error_exit_code: int = 1,
38
40
  ):
39
41
  if shortnames is None:
40
42
  shortnames = {}
41
43
 
42
44
  def wrap(command):
43
- group = create_group(command, styling=styling, shortnames=shortnames)
45
+ group = create_group(
46
+ command,
47
+ styling=styling,
48
+ shortnames=shortnames,
49
+ display_help_on_error=display_help_on_error,
50
+ error_exit_code=error_exit_code,
51
+ )
44
52
 
45
53
  for command in commands:
46
54
  if isinstance(command, Group):
@@ -58,6 +66,8 @@ def create_group(
58
66
  command_call: Callable[..., Any],
59
67
  styling: CLIStyle | None = None,
60
68
  shortnames: dict[str, str] | None = None,
69
+ display_help_on_error: bool = True,
70
+ error_exit_code: int = 1,
61
71
  ):
62
72
  indentation = 0
63
73
  if styling:
@@ -80,6 +90,8 @@ def create_group(
80
90
  help_message,
81
91
  positional_args=positional_args_map,
82
92
  keyword_args_map=keyword_args_map,
93
+ display_help_on_error=display_help_on_error,
94
+ error_exit_code=error_exit_code,
83
95
  )
84
96
 
85
97
 
@@ -91,6 +103,8 @@ class Group(Generic[T]):
91
103
  help_message: HelpMessage,
92
104
  positional_args: dict[str, PositionalArg] | None = None,
93
105
  keyword_args_map: dict[str, KeywordArg] | None = None,
106
+ display_help_on_error: bool = True,
107
+ error_exit_code: int = 1,
94
108
  ):
95
109
  if positional_args is None:
96
110
  positional_args = {}
@@ -117,6 +131,9 @@ class Group(Generic[T]):
117
131
  self.keyword_args_map = keyword_args_map
118
132
  self.keyword_args_count = len(keyword_args_map)
119
133
  self.positional_args_count = len(positional_args)
134
+ self.display_help_on_error = display_help_on_error
135
+ self.error_exit_code = error_exit_code
136
+
120
137
  self._loop = asyncio.get_event_loop()
121
138
 
122
139
  def update_command(
@@ -127,6 +144,8 @@ class Group(Generic[T]):
127
144
  global_styles: CLIStyle | None = None,
128
145
  positional_args: dict[str, PositionalArg] | None = None,
129
146
  keyword_args_map: dict[str, KeywordArg] | None = None,
147
+ display_help_on_error: bool = True,
148
+ error_exit_code: int = 1,
130
149
  ):
131
150
  self._global_styles = global_styles
132
151
 
@@ -151,12 +170,14 @@ class Group(Generic[T]):
151
170
  self.keyword_args_map = keyword_args_map
152
171
  self.keyword_args_count = len(keyword_args_map)
153
172
  self.positional_args_count = len(positional_args)
173
+ self.display_help_on_error = display_help_on_error
174
+ self.error_exit_code = error_exit_code
154
175
 
155
176
  async def run(
156
177
  self,
157
178
  args: list[str],
158
179
  context: Context[str, Any],
159
- ) -> tuple[Any | None, list[str]]:
180
+ ) -> tuple[Any | None, list[str], int | None]:
160
181
  subcommands: list[str] | None = None
161
182
  if len(self.subgroups) > 0 or len(self.subcommands) > 0:
162
183
  subcommands = list(self.subgroups.keys())
@@ -165,7 +186,11 @@ class Group(Generic[T]):
165
186
  if len(args) < 1:
166
187
  await self._print_group_help_message(subcommands)
167
188
 
168
- return (None, [])
189
+ return (
190
+ None,
191
+ [],
192
+ self.error_exit_code,
193
+ )
169
194
 
170
195
  (
171
196
  positional_args,
@@ -178,7 +203,11 @@ class Group(Generic[T]):
178
203
  if positional_args is None and keyword_args is None:
179
204
  await self._print_group_help_message(subcommands)
180
205
 
181
- return (None, errors)
206
+ return (
207
+ None,
208
+ errors,
209
+ self.error_exit_code,
210
+ )
182
211
 
183
212
  elif len(errors) > 0:
184
213
  await self._print_group_help_message(
@@ -186,7 +215,11 @@ class Group(Generic[T]):
186
215
  subcommands=subcommands,
187
216
  )
188
217
 
189
- return (None, errors)
218
+ return (
219
+ None,
220
+ errors,
221
+ self.error_exit_code,
222
+ )
190
223
 
191
224
  result: Any | None = None
192
225
  if len(positional_args) > 0 or len(keyword_args) > 0:
@@ -194,6 +227,10 @@ class Group(Generic[T]):
194
227
  result = await self._command_call(*positional_args, **keyword_args)
195
228
 
196
229
  except Exception as err:
230
+ if self.display_help_on_error:
231
+ raise err
232
+
233
+
197
234
  await self._print_group_help_message(
198
235
  error=err,
199
236
  subcommands=subcommands,
@@ -201,16 +238,23 @@ class Group(Generic[T]):
201
238
 
202
239
  return (
203
240
  None,
204
- [err]
241
+ [err],
242
+ self.error_exit_code,
205
243
  )
206
244
 
245
+ exit_code: int | None = None
207
246
  if subcommand:
208
247
  subcommand._global_styles = self._global_styles
209
- result, errors = await subcommand.run(subcommand_args, context)
248
+ (
249
+ result,
250
+ errors,
251
+ exit_code,
252
+ ) = await subcommand.run(subcommand_args, context)
210
253
 
211
254
  return (
212
255
  result,
213
256
  errors,
257
+ exit_code,
214
258
  )
215
259
 
216
260
  @property
@@ -223,12 +267,20 @@ class Group(Generic[T]):
223
267
  *commands: list[Group | Command],
224
268
  styling: CLIStyle | None = None,
225
269
  shortnames: dict[str, str] | None = None,
270
+ display_help_on_error: bool = True,
271
+ error_exit_code: int = 1,
226
272
  ):
227
273
  if shortnames is None:
228
274
  shortnames = {}
229
275
 
230
276
  def wrap(command):
231
- group = create_group(command, styling=styling, shortnames=shortnames)
277
+ group = create_group(
278
+ command,
279
+ styling=styling,
280
+ shortnames=shortnames,
281
+ display_help_on_error=display_help_on_error,
282
+ error_exit_code=error_exit_code,
283
+ )
232
284
 
233
285
  group_name = group.group_name.replace('_', '-')
234
286
  self.subgroups[group_name] = group
@@ -256,6 +308,8 @@ class Group(Generic[T]):
256
308
  self,
257
309
  styling: CLIStyle | None = None,
258
310
  shortnames: dict[str, str] | None = None,
311
+ display_help_on_error: bool = True,
312
+ error_exit_code: int = 1,
259
313
  ):
260
314
  if shortnames is None:
261
315
  shortnames = {}
@@ -265,6 +319,8 @@ class Group(Generic[T]):
265
319
  command_call,
266
320
  styling=styling,
267
321
  shortnames=shortnames,
322
+ display_help_on_error=display_help_on_error,
323
+ error_exit_code=error_exit_code,
268
324
  )
269
325
 
270
326
  command_name = cmd.command_name.replace('_', '-')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperlight-cocoa
3
- Version: 0.3.51
3
+ Version: 0.4.0
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.3.51"
9
+ version = "0.4.0"
10
10
  requires-python = ">=3.11"
11
11
  description = "Create beautiful, performant terminal UI and CLI apps."
12
12
  readme = "README.md"