hyperlight-cocoa 0.3.26__tar.gz → 0.3.28__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 (164) hide show
  1. {hyperlight_cocoa-0.3.26/hyperlight_cocoa.egg-info → hyperlight_cocoa-0.3.28}/PKG-INFO +1 -1
  2. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/command.py +1 -1
  3. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/group.py +1 -1
  4. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/spinner/spinner.py +40 -13
  5. hyperlight_cocoa-0.3.28/cocoa/ui/components/spinner/spinner_status.py +28 -0
  6. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28/hyperlight_cocoa.egg-info}/PKG-INFO +1 -1
  7. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/pyproject.toml +1 -1
  8. hyperlight_cocoa-0.3.26/cocoa/ui/components/spinner/spinner_status.py +0 -8
  9. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/LICENSE +0 -0
  10. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/README.md +0 -0
  11. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/__init__.py +0 -0
  12. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/__init__.py +0 -0
  13. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/base/__init__.py +0 -0
  14. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/base/keyword_arg.py +0 -0
  15. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/base/positional_arg.py +0 -0
  16. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/data_types/__init__.py +0 -0
  17. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/data_types/assert_path.py +0 -0
  18. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/data_types/assert_set.py +0 -0
  19. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/data_types/check_if_multiarg.py +0 -0
  20. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/data_types/context.py +0 -0
  21. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/data_types/env.py +0 -0
  22. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/data_types/import_instance.py +0 -0
  23. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/data_types/import_type.py +0 -0
  24. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/data_types/json_data.py +0 -0
  25. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/data_types/json_file.py +0 -0
  26. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/data_types/paths.py +0 -0
  27. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/data_types/pattern.py +0 -0
  28. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/data_types/raw_file.py +0 -0
  29. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/data_types/reduce_pattern_type.py +0 -0
  30. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/operators/__init__.py +0 -0
  31. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/operators/chain.py +0 -0
  32. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/operators/map.py +0 -0
  33. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/arg_types/operators/operator.py +0 -0
  34. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/cli.py +0 -0
  35. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/cli_protocol.py +0 -0
  36. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/help_message/__init__.py +0 -0
  37. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/help_message/cli_style.py +0 -0
  38. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/help_message/create_help_string.py +0 -0
  39. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/help_message/description_help_message.py +0 -0
  40. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/help_message/help_message.py +0 -0
  41. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/help_message/line_parsing.py +0 -0
  42. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/help_message/options_help_message.py +0 -0
  43. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/help_message/title_help_message.py +0 -0
  44. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/cli/inspect_wrapped.py +0 -0
  45. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/__init__.py +0 -0
  46. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/__init__.py +0 -0
  47. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/animated_status_bar/__init__.py +0 -0
  48. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/animated_status_bar/animated_status_bar.py +0 -0
  49. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/animated_status_bar/animated_status_bar_config.py +0 -0
  50. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/counter/__init__.py +0 -0
  51. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/counter/counter.py +0 -0
  52. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/counter/counter_config.py +0 -0
  53. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/empty/__init__.py +0 -0
  54. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/empty/empty.py +0 -0
  55. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/header/__init__.py +0 -0
  56. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/header/header.py +0 -0
  57. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/header/header_config.py +0 -0
  58. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/header/letters/__init__.py +0 -0
  59. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/header/letters/fonts/__init__.py +0 -0
  60. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/header/letters/fonts/alphabet.py +0 -0
  61. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/header/letters/fonts/bubbles.py +0 -0
  62. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/header/letters/fonts/cyberpunk.py +0 -0
  63. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/header/letters/fonts/formatted_letter.py +0 -0
  64. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/header/letters/fonts/letter.py +0 -0
  65. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/header/letters/formatted_word.py +0 -0
  66. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/header/letters/word.py +0 -0
  67. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/link/__init__.py +0 -0
  68. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/link/link.py +0 -0
  69. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/link/link_config.py +0 -0
  70. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/link/link_validator.py +0 -0
  71. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/multiline_text/__init__.py +0 -0
  72. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/multiline_text/multiline_text.py +0 -0
  73. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/multiline_text/multiline_text_config.py +0 -0
  74. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/progress_bar/__init__.py +0 -0
  75. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/progress_bar/background_char.py +0 -0
  76. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/progress_bar/end_char.py +0 -0
  77. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/progress_bar/fill_char.py +0 -0
  78. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/progress_bar/progress_bar.py +0 -0
  79. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/progress_bar/progress_bar_config.py +0 -0
  80. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/progress_bar/progress_bar_status.py +0 -0
  81. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/progress_bar/start_char.py +0 -0
  82. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/scatter_plot/__init__.py +0 -0
  83. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/scatter_plot/plot_config.py +0 -0
  84. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/scatter_plot/plot_point.py +0 -0
  85. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/scatter_plot/plotille/__init__.py +0 -0
  86. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/scatter_plot/plotille/_canvas.py +0 -0
  87. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/scatter_plot/plotille/_cmaps.py +0 -0
  88. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/scatter_plot/plotille/_cmaps_data.py +0 -0
  89. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/scatter_plot/plotille/_colors.py +0 -0
  90. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/scatter_plot/plotille/_dots.py +0 -0
  91. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/scatter_plot/plotille/_figure.py +0 -0
  92. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/scatter_plot/plotille/_figure_data.py +0 -0
  93. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/scatter_plot/plotille/_graphs.py +0 -0
  94. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/scatter_plot/plotille/_input_formatter.py +0 -0
  95. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/scatter_plot/plotille/_util.py +0 -0
  96. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/scatter_plot/point_char.py +0 -0
  97. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/scatter_plot/scatter_plot.py +0 -0
  98. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/spinner/__init__.py +0 -0
  99. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/spinner/spinner_config.py +0 -0
  100. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/spinner/spinner_data.py +0 -0
  101. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/spinner/spinner_factory.py +0 -0
  102. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/spinner/spinner_frames_set.py +0 -0
  103. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/spinner/spinner_types.py +0 -0
  104. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/status_bar/__init__.py +0 -0
  105. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/status_bar/status_bar.py +0 -0
  106. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/status_bar/status_bar_config.py +0 -0
  107. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/table/__init__.py +0 -0
  108. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/table/table.py +0 -0
  109. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/table/table_config.py +0 -0
  110. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/table/tabulate/__init__.py +0 -0
  111. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/table/tabulate/cell_alignment.py +0 -0
  112. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/table/tabulate/charset_position_type.py +0 -0
  113. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/table/tabulate/table_assembler.py +0 -0
  114. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/table/tabulate/table_border_lines.py +0 -0
  115. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/terminal/__init__.py +0 -0
  116. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/terminal/action.py +0 -0
  117. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/terminal/canvas.py +0 -0
  118. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/terminal/engine_config.py +0 -0
  119. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/terminal/refresh_rate.py +0 -0
  120. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/terminal/section.py +0 -0
  121. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/terminal/section_config.py +0 -0
  122. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/terminal/terminal.py +0 -0
  123. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/terminal/terminal_protocol.py +0 -0
  124. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/text/__init__.py +0 -0
  125. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/text/text.py +0 -0
  126. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/text/text_config.py +0 -0
  127. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/timer/__init__.py +0 -0
  128. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/timer/timer.py +0 -0
  129. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/timer/timer_config.py +0 -0
  130. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/timer/timer_status.py +0 -0
  131. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/total_rate/__init__.py +0 -0
  132. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/total_rate/total_rate.py +0 -0
  133. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/total_rate/total_rate_config.py +0 -0
  134. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/total_rate/total_rate_status.py +0 -0
  135. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/windowed_rate/__init__.py +0 -0
  136. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/windowed_rate/windowed_rate.py +0 -0
  137. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/components/windowed_rate/windowed_rate_config.py +0 -0
  138. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/config/__init__.py +0 -0
  139. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/config/mode.py +0 -0
  140. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/config/widget_fit_dimensions.py +0 -0
  141. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/state/__init__.py +0 -0
  142. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/state/observe.py +0 -0
  143. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/state/state_types.py +0 -0
  144. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/state/subscription_set.py +0 -0
  145. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/styling/__init__.py +0 -0
  146. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/styling/attributes/__init__.py +0 -0
  147. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/styling/attributes/attribute.py +0 -0
  148. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/styling/attributes/attributizer.py +0 -0
  149. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/styling/colors/__init__.py +0 -0
  150. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/styling/colors/color.py +0 -0
  151. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/styling/colors/colorizer.py +0 -0
  152. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/styling/colors/extended_color.py +0 -0
  153. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/styling/colors/highlight.py +0 -0
  154. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/styling/stylize.py +0 -0
  155. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/ui/styling/stylizer.py +0 -0
  156. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/utils/__init__.py +0 -0
  157. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/cocoa/utils/time_parser.py +0 -0
  158. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/example/test_check_multiarg.py +0 -0
  159. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/example/test_cyperpunk.py +0 -0
  160. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/hyperlight_cocoa.egg-info/SOURCES.txt +0 -0
  161. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/hyperlight_cocoa.egg-info/dependency_links.txt +0 -0
  162. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/hyperlight_cocoa.egg-info/requires.txt +0 -0
  163. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/hyperlight_cocoa.egg-info/top_level.txt +0 -0
  164. {hyperlight_cocoa-0.3.26 → hyperlight_cocoa-0.3.28}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperlight-cocoa
3
- Version: 0.3.26
3
+ Version: 0.3.28
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
@@ -53,7 +53,7 @@ def create_command(
53
53
  )
54
54
 
55
55
  return Command(
56
- command_call.__name__,
56
+ command_call.__name__.replace('_', '-'),
57
57
  command_call,
58
58
  help_message,
59
59
  positional_args=positional_args_map,
@@ -75,7 +75,7 @@ def create_group(
75
75
  )
76
76
 
77
77
  return Group(
78
- command_call.__name__,
78
+ command_call.__name__.replace('_', '-'),
79
79
  command_call,
80
80
  help_message,
81
81
  positional_args=positional_args_map,
@@ -12,7 +12,11 @@ from cocoa.ui.config.widget_fit_dimensions import WidgetFitDimensions
12
12
  from cocoa.ui.styling import stylize, get_style
13
13
  from .spinner_config import SpinnerConfig
14
14
  from .spinner_factory import SpinnerFactory
15
- from .spinner_status import SpinnerStatus
15
+ from .spinner_status import (
16
+ SpinnerStatus,
17
+ SpinnerStatusName,
18
+ SpinnerStatusMap,
19
+ )
16
20
 
17
21
 
18
22
  class Spinner:
@@ -44,11 +48,13 @@ class Spinner:
44
48
  self._last_frame: Optional[str] = None
45
49
  self._base_size: int = 0
46
50
  self._max_width: int = 0
51
+ self._last_frame: str | None = None
47
52
 
48
53
  self._update_lock: asyncio.Lock | None = None
49
- self._spinner_status = SpinnerStatus.READY
54
+ self._updates: asyncio.Queue[SpinnerStatus] | None = None
50
55
 
51
56
  self._mode = TerminalMode.to_mode(config.terminal_mode)
57
+ self._status_map = SpinnerStatusMap()
52
58
 
53
59
  @property
54
60
  def raw_size(self):
@@ -58,8 +64,13 @@ class Spinner:
58
64
  def size(self):
59
65
  return self._base_size
60
66
 
61
- async def update(self, _: Any):
62
- pass
67
+ async def update(self, status: SpinnerStatusName):
68
+ await self._update_lock.acquire()
69
+ self._updates.put_nowait(
70
+ self._status_map.map_to_status(status)
71
+ )
72
+
73
+ self._update_lock.release()
63
74
 
64
75
  async def fit(
65
76
  self,
@@ -68,6 +79,9 @@ class Spinner:
68
79
  if self._update_lock is None:
69
80
  self._update_lock = asyncio.Lock()
70
81
 
82
+ if self._updates is None:
83
+ self._updates = asyncio.Queue()
84
+
71
85
  remaining_size = max_width
72
86
 
73
87
  remaining_size -= self._spinner_size
@@ -82,12 +96,11 @@ class Spinner:
82
96
  self._max_width = max_width
83
97
 
84
98
  async def get_next_frame(self):
85
- if self._spinner_status == SpinnerStatus.READY:
86
- self._spinner_size = SpinnerStatus.ACTIVE
99
+ status = await self._check_if_should_rerender()
87
100
 
88
- if self._spinner_status in [SpinnerStatus.OK, SpinnerStatus.FAILED]:
89
- frame = self._create_last_frame()
90
- return [frame], True
101
+ if status in [SpinnerStatus.OK, SpinnerStatus.FAILED]:
102
+ self._last_frame = self._create_last_frame(status)
103
+ return [self._last_frame], True
91
104
 
92
105
  frame = await self._create_next_spin_frame()
93
106
  return [frame], True
@@ -112,18 +125,32 @@ class Spinner:
112
125
 
113
126
  async def ok(self):
114
127
  await self._update_lock.acquire()
115
- self._spinner_status = SpinnerStatus.OK
128
+ self._updates.put_nowait(SpinnerStatus.OK)
116
129
  self._update_lock.release()
117
130
 
118
131
  async def fail(self):
119
132
  await self._update_lock.acquire()
120
- self._spinner_size = SpinnerStatus.FAILED
133
+ self._updates.put_nowait(SpinnerStatus.FAILED)
134
+ self._update_lock.release()
135
+
136
+ async def _check_if_should_rerender(self):
137
+ await self._update_lock.acquire()
138
+
139
+ status: SpinnerStatus | None = None
140
+ if self._updates.empty() is False:
141
+ status = await self._updates.get()
142
+
121
143
  self._update_lock.release()
122
144
 
123
- async def _create_last_frame(self):
145
+ return status
146
+
147
+ async def _create_last_frame(
148
+ self,
149
+ status: SpinnerStatus
150
+ ):
124
151
  """Stop spinner, compose last frame and 'freeze' it."""
125
152
 
126
- if self._spinner_size == SpinnerStatus.FAILED:
153
+ if status == SpinnerStatus.FAILED:
127
154
  return await stylize(
128
155
  self._config.fail_char,
129
156
  color=get_style(self._config.fail_color),
@@ -0,0 +1,28 @@
1
+ from enum import Enum
2
+ from typing import Literal
3
+
4
+ SpinnerStatusName = Literal['active', 'failed', 'ready', 'ok']
5
+
6
+
7
+ class SpinnerStatus(Enum):
8
+ ACTIVE = "ACTIVE"
9
+ FAILED = "FAILED"
10
+ OK = "OK"
11
+ READY = "READY"
12
+
13
+
14
+ class SpinnerStatusMap:
15
+
16
+ def __init__(self):
17
+ self._status_map: dict[
18
+ SpinnerStatusName,
19
+ SpinnerStatus,
20
+ ] = {
21
+ 'active': SpinnerStatus.ACTIVE,
22
+ 'failed': SpinnerStatus.FAILED,
23
+ 'ok': SpinnerStatus.OK,
24
+ 'ready': SpinnerStatus.READY,
25
+ }
26
+
27
+ def map_to_status(self, status_name: SpinnerStatusName):
28
+ return self._status_map[status_name]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperlight-cocoa
3
- Version: 0.3.26
3
+ Version: 0.3.28
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.26"
9
+ version = "0.3.28"
10
10
  requires-python = ">=3.11"
11
11
  description = "Create beautiful, performant terminal UI and CLI apps."
12
12
  readme = "README.md"
@@ -1,8 +0,0 @@
1
- from enum import Enum
2
-
3
-
4
- class SpinnerStatus(Enum):
5
- ACTIVE = "ACTIVE"
6
- FAILED = "FAILED"
7
- OK = "OK"
8
- READY = "READY"