hyperlight-cocoa 0.2.2__tar.gz → 0.2.4__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.2.2 → hyperlight_cocoa-0.2.4}/PKG-INFO +1 -1
  2. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/base/keyword_arg.py +2 -0
  3. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/base/positional_arg.py +2 -0
  4. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/command.py +74 -1
  5. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/inspect_wrapped.py +13 -1
  6. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/header/header.py +7 -4
  7. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/header/header_config.py +7 -4
  8. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/header/letters/__init__.py +3 -2
  9. hyperlight_cocoa-0.2.4/cocoa/ui/components/header/letters/fonts/__init__.py +4 -0
  10. hyperlight_cocoa-0.2.2/cocoa/ui/components/header/letters/letters.py → hyperlight_cocoa-0.2.4/cocoa/ui/components/header/letters/fonts/alphabet.py +24 -21
  11. hyperlight_cocoa-0.2.4/cocoa/ui/components/header/letters/fonts/bubbles.py +330 -0
  12. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/header/letters/fonts/cyberpunk.py +75 -84
  13. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/header/letters/fonts/letter.py +13 -7
  14. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/header/letters/formatted_word.py +5 -1
  15. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/header/letters/word.py +17 -8
  16. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/example/test_cyperpunk.py +1 -1
  17. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/hyperlight_cocoa.egg-info/PKG-INFO +1 -1
  18. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/hyperlight_cocoa.egg-info/SOURCES.txt +2 -3
  19. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/pyproject.toml +1 -1
  20. hyperlight_cocoa-0.2.2/cocoa/ui/components/header/letters/fonts/__init__.py +0 -3
  21. hyperlight_cocoa-0.2.2/cocoa/ui/components/header/letters/fonts/bubbles.py +0 -229
  22. hyperlight_cocoa-0.2.2/cocoa/ui/components/header/letters/fonts/font_set.py +0 -9
  23. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/LICENSE +0 -0
  24. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/README.md +0 -0
  25. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/__init__.py +0 -0
  26. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/__init__.py +0 -0
  27. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/base/__init__.py +0 -0
  28. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/data_types/__init__.py +0 -0
  29. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/data_types/assert_set.py +0 -0
  30. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/data_types/context.py +0 -0
  31. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/data_types/env.py +0 -0
  32. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/data_types/import_instance.py +0 -0
  33. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/data_types/import_type.py +0 -0
  34. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/data_types/json_data.py +0 -0
  35. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/data_types/json_file.py +0 -0
  36. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/data_types/paths.py +0 -0
  37. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/data_types/pattern.py +0 -0
  38. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/data_types/raw_file.py +0 -0
  39. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/data_types/reduce_pattern_type.py +0 -0
  40. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/operators/__init__.py +0 -0
  41. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/operators/chain.py +0 -0
  42. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/operators/map.py +0 -0
  43. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/arg_types/operators/operator.py +0 -0
  44. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/cli.py +0 -0
  45. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/cli_protocol.py +0 -0
  46. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/group.py +0 -0
  47. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/help_message/__init__.py +0 -0
  48. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/help_message/cli_style.py +0 -0
  49. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/help_message/create_help_string.py +0 -0
  50. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/help_message/description_help_message.py +0 -0
  51. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/help_message/help_message.py +0 -0
  52. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/help_message/line_parsing.py +0 -0
  53. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/help_message/options_help_message.py +0 -0
  54. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/cli/help_message/title_help_message.py +0 -0
  55. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/__init__.py +0 -0
  56. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/__init__.py +0 -0
  57. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/animated_status_bar/__init__.py +0 -0
  58. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/animated_status_bar/animated_status_bar.py +0 -0
  59. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/animated_status_bar/animated_status_bar_config.py +0 -0
  60. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/counter/__init__.py +0 -0
  61. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/counter/counter.py +0 -0
  62. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/counter/counter_config.py +0 -0
  63. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/empty/__init__.py +0 -0
  64. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/empty/empty.py +0 -0
  65. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/header/__init__.py +0 -0
  66. {hyperlight_cocoa-0.2.2/cocoa/ui/components/header/letters → hyperlight_cocoa-0.2.4/cocoa/ui/components/header/letters/fonts}/formatted_letter.py +0 -0
  67. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/link/__init__.py +0 -0
  68. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/link/link.py +0 -0
  69. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/link/link_config.py +0 -0
  70. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/link/link_validator.py +0 -0
  71. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/multiline_text/__init__.py +0 -0
  72. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/multiline_text/multiline_text.py +0 -0
  73. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/multiline_text/multiline_text_config.py +0 -0
  74. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/progress_bar/__init__.py +0 -0
  75. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/progress_bar/background_char.py +0 -0
  76. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/progress_bar/end_char.py +0 -0
  77. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/progress_bar/fill_char.py +0 -0
  78. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/progress_bar/progress_bar.py +0 -0
  79. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/progress_bar/progress_bar_config.py +0 -0
  80. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/progress_bar/progress_bar_status.py +0 -0
  81. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/progress_bar/start_char.py +0 -0
  82. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/scatter_plot/__init__.py +0 -0
  83. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/scatter_plot/plot_config.py +0 -0
  84. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/scatter_plot/plot_point.py +0 -0
  85. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/scatter_plot/plotille/__init__.py +0 -0
  86. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/scatter_plot/plotille/_canvas.py +0 -0
  87. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/scatter_plot/plotille/_cmaps.py +0 -0
  88. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/scatter_plot/plotille/_cmaps_data.py +0 -0
  89. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/scatter_plot/plotille/_colors.py +0 -0
  90. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/scatter_plot/plotille/_dots.py +0 -0
  91. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/scatter_plot/plotille/_figure.py +0 -0
  92. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/scatter_plot/plotille/_figure_data.py +0 -0
  93. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/scatter_plot/plotille/_graphs.py +0 -0
  94. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/scatter_plot/plotille/_input_formatter.py +0 -0
  95. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/scatter_plot/plotille/_util.py +0 -0
  96. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/scatter_plot/point_char.py +0 -0
  97. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/scatter_plot/scatter_plot.py +0 -0
  98. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/spinner/__init__.py +0 -0
  99. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/spinner/spinner.py +0 -0
  100. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/spinner/spinner_config.py +0 -0
  101. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/spinner/spinner_data.py +0 -0
  102. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/spinner/spinner_factory.py +0 -0
  103. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/spinner/spinner_frames_set.py +0 -0
  104. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/spinner/spinner_status.py +0 -0
  105. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/spinner/spinner_types.py +0 -0
  106. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/status_bar/__init__.py +0 -0
  107. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/status_bar/status_bar.py +0 -0
  108. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/status_bar/status_bar_config.py +0 -0
  109. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/table/__init__.py +0 -0
  110. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/table/table.py +0 -0
  111. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/table/table_config.py +0 -0
  112. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/table/tabulate/__init__.py +0 -0
  113. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/table/tabulate/cell_alignment.py +0 -0
  114. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/table/tabulate/charset_position_type.py +0 -0
  115. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/table/tabulate/table_assembler.py +0 -0
  116. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/table/tabulate/table_border_lines.py +0 -0
  117. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/terminal/__init__.py +0 -0
  118. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/terminal/action.py +0 -0
  119. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/terminal/canvas.py +0 -0
  120. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/terminal/engine_config.py +0 -0
  121. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/terminal/refresh_rate.py +0 -0
  122. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/terminal/section.py +0 -0
  123. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/terminal/section_config.py +0 -0
  124. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/terminal/terminal.py +0 -0
  125. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/terminal/terminal_protocol.py +0 -0
  126. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/text/__init__.py +0 -0
  127. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/text/text.py +0 -0
  128. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/text/text_config.py +0 -0
  129. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/timer/__init__.py +0 -0
  130. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/timer/timer.py +0 -0
  131. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/timer/timer_config.py +0 -0
  132. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/timer/timer_status.py +0 -0
  133. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/total_rate/__init__.py +0 -0
  134. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/total_rate/total_rate.py +0 -0
  135. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/total_rate/total_rate_config.py +0 -0
  136. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/total_rate/total_rate_status.py +0 -0
  137. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/windowed_rate/__init__.py +0 -0
  138. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/windowed_rate/windowed_rate.py +0 -0
  139. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/components/windowed_rate/windowed_rate_config.py +0 -0
  140. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/config/__init__.py +0 -0
  141. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/config/mode.py +0 -0
  142. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/config/widget_fit_dimensions.py +0 -0
  143. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/state/__init__.py +0 -0
  144. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/state/observe.py +0 -0
  145. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/state/state_types.py +0 -0
  146. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/state/subscription_set.py +0 -0
  147. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/styling/__init__.py +0 -0
  148. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/styling/attributes/__init__.py +0 -0
  149. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/styling/attributes/attribute.py +0 -0
  150. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/styling/attributes/attributizer.py +0 -0
  151. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/styling/colors/__init__.py +0 -0
  152. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/styling/colors/color.py +0 -0
  153. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/styling/colors/colorizer.py +0 -0
  154. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/styling/colors/extended_color.py +0 -0
  155. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/styling/colors/highlight.py +0 -0
  156. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/styling/stylize.py +0 -0
  157. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/ui/styling/stylizer.py +0 -0
  158. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/utils/__init__.py +0 -0
  159. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/cocoa/utils/time_parser.py +0 -0
  160. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/hyperlight_cocoa.egg-info/dependency_links.txt +0 -0
  161. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/hyperlight_cocoa.egg-info/requires.txt +0 -0
  162. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/hyperlight_cocoa.egg-info/top_level.txt +0 -0
  163. {hyperlight_cocoa-0.2.2 → hyperlight_cocoa-0.2.4}/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.4
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,9 +1,9 @@
1
- import asyncio
2
1
  import math
2
+ from typing import Any
3
+
3
4
  from cocoa.ui.config.mode import TerminalMode
4
5
  from cocoa.ui.config.widget_fit_dimensions import WidgetFitDimensions
5
- from cocoa.ui.styling import stylize, get_style
6
- from typing import Any
6
+ from cocoa.ui.styling import get_style, stylize
7
7
 
8
8
  from .header_config import HeaderConfig
9
9
  from .letters import (
@@ -28,7 +28,10 @@ class Header:
28
28
  self._config = config
29
29
  self.subscriptions = subscriptions
30
30
 
31
- self._word = Word(self._config.header_text)
31
+ self._word = Word(
32
+ self._config.header_text,
33
+ font=config.font,
34
+ )
32
35
 
33
36
  self._styled_header_lines: list[str] | None = None
34
37
  self._formatted_word: FormattedWord | None = None
@@ -1,10 +1,12 @@
1
+ from typing import Dict, List, Literal
2
+
1
3
  from pydantic import BaseModel, StrictStr
2
- from cocoa.ui.styling.colors import Colorizer, HighlightColorizer
3
- from cocoa.ui.styling.attributes import Attributizer
4
+
4
5
  from cocoa.ui.config.mode import TerminalDisplayMode
5
- from typing import Dict, List, Literal
6
- from .letters import FormatterSet, SupportedLetters
6
+ from cocoa.ui.styling.attributes import Attributizer
7
+ from cocoa.ui.styling.colors import Colorizer, HighlightColorizer
7
8
 
9
+ from .letters import FormatterSet, SupportedFonts, SupportedLetters
8
10
 
9
11
  HeaderHorizontalAlignment = Literal["left", "center", "right"]
10
12
  HeaderVerticalAlignment = Literal["top", "center", "bottom"]
@@ -19,3 +21,4 @@ class HeaderConfig(BaseModel):
19
21
  attributes: List[Attributizer] | None = None
20
22
  terminal_mode: TerminalDisplayMode = "compatability"
21
23
  formatters: Dict[SupportedLetters, FormatterSet] | None = None
24
+ font: SupportedFonts = "cyberpunk"
@@ -1,4 +1,5 @@
1
- from .letters import SupportedLetters as SupportedLetters
2
- from .word import FormatterSet as FormatterSet
1
+ from .fonts import SupportedFonts as SupportedFonts
2
+ from .fonts import SupportedLetters as SupportedLetters
3
3
  from .word import FormattedWord as FormattedWord
4
+ from .word import FormatterSet as FormatterSet
4
5
  from .word import Word as Word
@@ -0,0 +1,4 @@
1
+ from .alphabet import Alphabet as Alphabet
2
+ from .alphabet import SupportedFonts as SupportedFonts
3
+ from .alphabet import SupportedLetters as SupportedLetters
4
+ from .formatted_letter import FormattedLetter as FormattedLetter
@@ -1,7 +1,8 @@
1
1
  from typing import Literal
2
2
 
3
- from .fonts import Letter, create_bubbles, create_cyberpunk
4
- from .formatted_letter import FormattedLetter
3
+ from .bubbles import create_bubbles
4
+ from .cyberpunk import create_cyberpunk
5
+ from .letter import Letter
5
6
 
6
7
  SupportedLetters = Literal[
7
8
  "a",
@@ -43,33 +44,40 @@ SupportedLetters = Literal[
43
44
  ]
44
45
 
45
46
 
46
- class Letters:
47
+ SupportedFonts = Literal[
48
+ "bubbles",
49
+ "cyberpunk",
50
+ ]
51
+
52
+
53
+ class Alphabet:
47
54
  def __init__(
48
55
  self,
49
- font: str = "cyberpunk",
56
+ font: SupportedFonts = "cyberpunk",
50
57
  ):
51
58
  self._fonts = {
52
59
  "bubbles": create_bubbles,
53
60
  "cyberpunk": create_cyberpunk,
54
61
  }
55
62
 
56
- font_set = self._fonts.get(
57
- font,
58
- create_cyberpunk,
59
- )()
63
+ spacing, letters = self._fonts.get(font, create_cyberpunk)()
64
+
65
+ self._alphabet = {
66
+ plain_text: Letter(
67
+ plain_text,
68
+ ascii_text,
69
+ )
70
+ for plain_text, ascii_text in letters.items()
71
+ }
60
72
 
61
- self._alphabet: dict[str, Letter] = font_set.font
73
+ self.font = font
74
+ self.spacing = spacing
62
75
 
63
76
  def __iter__(self):
64
77
  for plaintext_letter, ascii_letter in self._alphabet.items():
65
78
  yield (
66
79
  plaintext_letter,
67
- FormattedLetter(
68
- plaintext_letter=plaintext_letter,
69
- ascii=ascii_letter.format(),
70
- height=ascii_letter.height,
71
- width=ascii_letter.width,
72
- ),
80
+ ascii_letter.format(),
73
81
  )
74
82
 
75
83
  def __contains__(self, plaintext_letter: str):
@@ -81,9 +89,4 @@ class Letters:
81
89
  if selected_letter is None:
82
90
  return selected_letter
83
91
 
84
- return FormattedLetter(
85
- plaintext_letter=plaintext_letter,
86
- ascii=selected_letter.format(),
87
- height=selected_letter.height,
88
- width=selected_letter.width,
89
- )
92
+ return selected_letter.format()
@@ -0,0 +1,330 @@
1
+ def create_bubbles():
2
+ return (
3
+ 1,
4
+ {
5
+ "a": """
6
+ .
7
+ . .
8
+ ○○○○○○ .
9
+ . ○○
10
+ ○○○○○○○
11
+ ○○ . ○○
12
+ ○○○○○ ○
13
+ """,
14
+ "b": """
15
+ ○○
16
+ ○○
17
+ ○○
18
+ ○○○○○○○
19
+ ○○ ○○
20
+ ○○ ○○
21
+ ○○○○○○
22
+ """,
23
+ "c": """
24
+ . .
25
+ .
26
+ ○○○○○○
27
+ ○○ . ○○
28
+ ○ .
29
+ ○○ . ○○
30
+ ○○○○○○
31
+ """,
32
+ "d": """
33
+ .
34
+ .
35
+ ○○
36
+ ○○
37
+ ○○○○○
38
+ ○○ .○○
39
+ ○○○○
40
+ """,
41
+ "e": """
42
+ . .
43
+ .
44
+ ○○○○○
45
+ ○○ . ○○
46
+ ○○○○○○○○
47
+ ○○ . .
48
+ ○○○○○○ .
49
+ """,
50
+ "f": """
51
+ . .
52
+ . .
53
+ ○○○○
54
+ ○○ .
55
+ ○○○○○○○
56
+ ○○ .
57
+ . ○○
58
+ """,
59
+ "g": """
60
+ . .
61
+ . .
62
+ ○○○ ○
63
+ ○○ . ○○
64
+ ○○○○○○
65
+ . ○○
66
+ . ○○○○
67
+ """,
68
+ "h": """
69
+ . .
70
+ .
71
+ ○○ .
72
+ ○○
73
+ ○○○○○
74
+ ○○ ○○
75
+ ○○ .○○
76
+ """,
77
+ "i": """
78
+ . .
79
+ ○
80
+ .
81
+ ○○
82
+ ○○
83
+ ○○
84
+ ○○
85
+ """,
86
+ "j": """
87
+ .
88
+ ○
89
+ .
90
+ ○○
91
+ . ○○
92
+ ○○ ○○
93
+ ○○○
94
+ """,
95
+ "k": """
96
+ ...
97
+ ..
98
+ ○○ . .
99
+ ○○ .
100
+ ○○ ○○
101
+ ○○○○
102
+ ○○ ○○
103
+ """,
104
+ "l": """
105
+ .
106
+ .
107
+ ○○○ . .
108
+ ○○ . .
109
+ ○○ .
110
+ ○○ .
111
+ ○○
112
+ """,
113
+ "m": """
114
+ . . .
115
+ . . . .
116
+ ○ .
117
+ ○ ○○○○ ○○○○
118
+ ○○ ○○ . ○○
119
+ ○○ . ○○ .○○
120
+ ○○ ○○ . ○○
121
+ """,
122
+ "n": """
123
+ .
124
+ . .
125
+ ○ . .
126
+ ○○○○○○
127
+ ○○ ○○
128
+ ○○ . ○○
129
+ ○○ . ○○
130
+ """,
131
+ "o": """
132
+ . . .
133
+ . .
134
+ ○○○○○○
135
+ ○○ . ○○
136
+ ○○ . ○○
137
+ ○○ ○○
138
+ ○○○○○○
139
+ """,
140
+ "p": """
141
+ ..
142
+ .
143
+ ○○○○○
144
+ ○○ . ○○
145
+ ○○○○○○
146
+ ○○
147
+ ○○
148
+ """,
149
+ "q": """
150
+ . .
151
+ .
152
+ ○○○○○
153
+ ○○ ○○
154
+ ○○○○○○
155
+ ○○
156
+ ○○
157
+ """,
158
+ "r": """
159
+ . .
160
+ .
161
+ ○ ○○○○○ .
162
+ ○○ . ○○
163
+ ○○ .
164
+ ○○ .
165
+ ○○
166
+ """,
167
+ "s": """
168
+ .
169
+ . . .
170
+ ○○○○○○
171
+ ○○ .
172
+ ○○○○○○
173
+ . ○○
174
+ ○○○○○○
175
+ """,
176
+ "t": """
177
+ .
178
+ .
179
+ ○○
180
+ ○○○○○○
181
+ . ○○ .
182
+ ○○ ○
183
+ .○○○
184
+ """,
185
+ "u": """
186
+ . . .
187
+ . .
188
+ ○○ ○○
189
+ ○○ . ○○
190
+ ○○ .. ○○
191
+ ○○. ○○
192
+ ○○○○○○ ○
193
+ """,
194
+ "v": """
195
+ ..
196
+ . .
197
+ ○○ . ○○
198
+ ○○ ○○
199
+ ○○ ○○
200
+ ○○○
201
+ ○
202
+ """,
203
+ "w": """
204
+ . ..
205
+ .. .
206
+ ○○ . ○ . ○○
207
+ ○○ . ○○○ .○○
208
+ ○○ ○○ ○○ ○○
209
+ ○○○ ○○○
210
+ ○ ○
211
+ """,
212
+ "x": """
213
+ .
214
+ .
215
+ ○○ . ○○
216
+ ○○ ○○ .
217
+ . ○○○ .
218
+ ○○ ○○
219
+ ○○ . ○○
220
+ """,
221
+ "y": """
222
+ . . .
223
+ .
224
+ ○○ ○○
225
+ ○ ○
226
+ ○○
227
+ ○○
228
+ ○○
229
+ """,
230
+ "z": """
231
+ .
232
+ .
233
+ ○○○○○○
234
+ . ○○
235
+ . ○○
236
+ ○○ .
237
+ ○○○○○○
238
+ """,
239
+ "0": """
240
+ . .
241
+ . .
242
+ ○○○○○
243
+ ○○. ○○
244
+ ○○ ○ ○○
245
+ ○○. ○○
246
+ ○○○○○
247
+ """,
248
+ "1": """
249
+ .
250
+ .
251
+ ○○○
252
+ ○ ○○
253
+ ○○
254
+ ○○
255
+ ○○○○○○
256
+ """,
257
+ "2": """
258
+ . .
259
+ .
260
+ ○○○○
261
+ ○ ○○
262
+ ○○
263
+ ○○ .
264
+ ○○○○○○
265
+ """,
266
+ "3": """
267
+ .
268
+ . .
269
+ ○○○○○
270
+ ○ . ○○
271
+ ○○○○
272
+ ○ . ○○
273
+ ○○○○○
274
+ """,
275
+ "4": """
276
+ . .
277
+ . .
278
+ ○○ ○○
279
+ ○○. ○○
280
+ ○○○○○○○
281
+ . ○○
282
+ . ○○
283
+ """,
284
+ "5": """
285
+ ..
286
+ .
287
+ ○○○○○○
288
+ ○○ .
289
+ ○○○○○
290
+ . ○○
291
+ ○○○○○ .
292
+ """,
293
+ "6": """
294
+ .
295
+ .
296
+ ○○○○○
297
+ ○○ .
298
+ ○○○○○○
299
+ ○○ . ○○
300
+ ○○○○○
301
+ """,
302
+ "7": """
303
+ .. .
304
+ . .
305
+ ○○○○○○○
306
+ ○○
307
+ . ○○
308
+ . ○○
309
+ ○○ .
310
+ """,
311
+ "8": """
312
+ .
313
+ .
314
+ ○○○○○ .
315
+ ○○ . ○○
316
+ ○○○○○
317
+ ○○. .○○
318
+ ○○○○○
319
+ """,
320
+ "9": """
321
+ .
322
+ . .
323
+ ○○○○○
324
+ ○○ . ○○
325
+ ○○○○○○
326
+ . ○○
327
+ ○○○○○ .
328
+ """,
329
+ },
330
+ )