hyperlight-cocoa 0.4.2__tar.gz → 0.4.5__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 (165) hide show
  1. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/PKG-INFO +4 -2
  2. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/README.md +1 -1
  3. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/base/keyword_arg.py +6 -2
  4. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/base/positional_arg.py +6 -2
  5. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/data_types/__init__.py +1 -0
  6. hyperlight_cocoa-0.4.5/cocoa/cli/arg_types/data_types/yaml_file.py +86 -0
  7. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/operators/chain.py +6 -2
  8. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/operators/map.py +6 -2
  9. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/command.py +5 -5
  10. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/group.py +2 -1
  11. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/help_message/options_help_message.py +5 -1
  12. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/inspect_wrapped.py +2 -2
  13. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/hyperlight_cocoa.egg-info/PKG-INFO +4 -2
  14. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/hyperlight_cocoa.egg-info/SOURCES.txt +1 -0
  15. hyperlight_cocoa-0.4.5/hyperlight_cocoa.egg-info/requires.txt +4 -0
  16. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/pyproject.toml +6 -2
  17. hyperlight_cocoa-0.4.2/hyperlight_cocoa.egg-info/requires.txt +0 -1
  18. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/LICENSE +0 -0
  19. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/__init__.py +0 -0
  20. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/__init__.py +0 -0
  21. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/base/__init__.py +0 -0
  22. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/data_types/assert_path.py +0 -0
  23. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/data_types/assert_set.py +0 -0
  24. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/data_types/check_if_multiarg.py +0 -0
  25. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/data_types/context.py +0 -0
  26. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/data_types/env.py +0 -0
  27. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/data_types/import_instance.py +0 -0
  28. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/data_types/import_type.py +0 -0
  29. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/data_types/json_data.py +0 -0
  30. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/data_types/json_file.py +0 -0
  31. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/data_types/paths.py +0 -0
  32. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/data_types/pattern.py +0 -0
  33. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/data_types/raw_file.py +0 -0
  34. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/data_types/reduce_pattern_type.py +0 -0
  35. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/operators/__init__.py +0 -0
  36. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/arg_types/operators/operator.py +0 -0
  37. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/cli.py +0 -0
  38. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/cli_protocol.py +0 -0
  39. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/help_message/__init__.py +0 -0
  40. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/help_message/cli_style.py +0 -0
  41. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/help_message/create_help_string.py +0 -0
  42. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/help_message/description_help_message.py +0 -0
  43. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/help_message/help_message.py +0 -0
  44. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/help_message/line_parsing.py +0 -0
  45. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/cli/help_message/title_help_message.py +0 -0
  46. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/__init__.py +0 -0
  47. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/__init__.py +0 -0
  48. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/animated_status_bar/__init__.py +0 -0
  49. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/animated_status_bar/animated_status_bar.py +0 -0
  50. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/animated_status_bar/animated_status_bar_config.py +0 -0
  51. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/counter/__init__.py +0 -0
  52. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/counter/counter.py +0 -0
  53. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/counter/counter_config.py +0 -0
  54. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/empty/__init__.py +0 -0
  55. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/empty/empty.py +0 -0
  56. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/header/__init__.py +0 -0
  57. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/header/header.py +0 -0
  58. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/header/header_config.py +0 -0
  59. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/header/letters/__init__.py +0 -0
  60. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/header/letters/fonts/__init__.py +0 -0
  61. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/header/letters/fonts/alphabet.py +0 -0
  62. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/header/letters/fonts/bubbles.py +0 -0
  63. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/header/letters/fonts/cyberpunk.py +0 -0
  64. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/header/letters/fonts/formatted_letter.py +0 -0
  65. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/header/letters/fonts/letter.py +0 -0
  66. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/header/letters/formatted_word.py +0 -0
  67. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/header/letters/word.py +0 -0
  68. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/link/__init__.py +0 -0
  69. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/link/link.py +0 -0
  70. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/link/link_config.py +0 -0
  71. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/link/link_validator.py +0 -0
  72. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/multiline_text/__init__.py +0 -0
  73. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/multiline_text/multiline_text.py +0 -0
  74. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/multiline_text/multiline_text_config.py +0 -0
  75. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/progress_bar/__init__.py +0 -0
  76. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/progress_bar/background_char.py +0 -0
  77. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/progress_bar/end_char.py +0 -0
  78. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/progress_bar/fill_char.py +0 -0
  79. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/progress_bar/progress_bar.py +0 -0
  80. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/progress_bar/progress_bar_config.py +0 -0
  81. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/progress_bar/progress_bar_status.py +0 -0
  82. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/progress_bar/start_char.py +0 -0
  83. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/scatter_plot/__init__.py +0 -0
  84. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/scatter_plot/plot_config.py +0 -0
  85. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/scatter_plot/plot_point.py +0 -0
  86. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/scatter_plot/plotille/__init__.py +0 -0
  87. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/scatter_plot/plotille/_canvas.py +0 -0
  88. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/scatter_plot/plotille/_cmaps.py +0 -0
  89. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/scatter_plot/plotille/_cmaps_data.py +0 -0
  90. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/scatter_plot/plotille/_colors.py +0 -0
  91. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/scatter_plot/plotille/_dots.py +0 -0
  92. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/scatter_plot/plotille/_figure.py +0 -0
  93. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/scatter_plot/plotille/_figure_data.py +0 -0
  94. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/scatter_plot/plotille/_graphs.py +0 -0
  95. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/scatter_plot/plotille/_input_formatter.py +0 -0
  96. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/scatter_plot/plotille/_util.py +0 -0
  97. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/scatter_plot/point_char.py +0 -0
  98. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/scatter_plot/scatter_plot.py +0 -0
  99. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/spinner/__init__.py +0 -0
  100. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/spinner/spinner.py +0 -0
  101. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/spinner/spinner_config.py +0 -0
  102. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/spinner/spinner_data.py +0 -0
  103. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/spinner/spinner_factory.py +0 -0
  104. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/spinner/spinner_frames_set.py +0 -0
  105. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/spinner/spinner_status.py +0 -0
  106. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/spinner/spinner_types.py +0 -0
  107. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/status_bar/__init__.py +0 -0
  108. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/status_bar/status_bar.py +0 -0
  109. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/status_bar/status_bar_config.py +0 -0
  110. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/table/__init__.py +0 -0
  111. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/table/table.py +0 -0
  112. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/table/table_config.py +0 -0
  113. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/table/tabulate/__init__.py +0 -0
  114. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/table/tabulate/cell_alignment.py +0 -0
  115. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/table/tabulate/charset_position_type.py +0 -0
  116. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/table/tabulate/table_assembler.py +0 -0
  117. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/table/tabulate/table_border_lines.py +0 -0
  118. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/terminal/__init__.py +0 -0
  119. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/terminal/action.py +0 -0
  120. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/terminal/canvas.py +0 -0
  121. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/terminal/engine_config.py +0 -0
  122. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/terminal/refresh_rate.py +0 -0
  123. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/terminal/section.py +0 -0
  124. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/terminal/section_config.py +0 -0
  125. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/terminal/terminal.py +0 -0
  126. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/terminal/terminal_protocol.py +0 -0
  127. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/text/__init__.py +0 -0
  128. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/text/text.py +0 -0
  129. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/text/text_config.py +0 -0
  130. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/timer/__init__.py +0 -0
  131. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/timer/timer.py +0 -0
  132. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/timer/timer_config.py +0 -0
  133. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/timer/timer_status.py +0 -0
  134. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/total_rate/__init__.py +0 -0
  135. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/total_rate/total_rate.py +0 -0
  136. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/total_rate/total_rate_config.py +0 -0
  137. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/total_rate/total_rate_status.py +0 -0
  138. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/windowed_rate/__init__.py +0 -0
  139. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/windowed_rate/windowed_rate.py +0 -0
  140. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/components/windowed_rate/windowed_rate_config.py +0 -0
  141. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/config/__init__.py +0 -0
  142. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/config/mode.py +0 -0
  143. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/config/widget_fit_dimensions.py +0 -0
  144. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/state/__init__.py +0 -0
  145. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/state/observe.py +0 -0
  146. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/state/state_types.py +0 -0
  147. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/state/subscription_set.py +0 -0
  148. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/styling/__init__.py +0 -0
  149. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/styling/attributes/__init__.py +0 -0
  150. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/styling/attributes/attribute.py +0 -0
  151. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/styling/attributes/attributizer.py +0 -0
  152. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/styling/colors/__init__.py +0 -0
  153. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/styling/colors/color.py +0 -0
  154. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/styling/colors/colorizer.py +0 -0
  155. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/styling/colors/extended_color.py +0 -0
  156. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/styling/colors/highlight.py +0 -0
  157. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/styling/stylize.py +0 -0
  158. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/ui/styling/stylizer.py +0 -0
  159. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/utils/__init__.py +0 -0
  160. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/cocoa/utils/time_parser.py +0 -0
  161. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/example/test_check_multiarg.py +0 -0
  162. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/example/test_cyperpunk.py +0 -0
  163. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/hyperlight_cocoa.egg-info/dependency_links.txt +0 -0
  164. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/hyperlight_cocoa.egg-info/top_level.txt +0 -0
  165. {hyperlight_cocoa-0.4.2 → hyperlight_cocoa-0.4.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperlight-cocoa
3
- Version: 0.4.2
3
+ Version: 0.4.5
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
@@ -36,6 +36,8 @@ Requires-Python: >=3.11
36
36
  Description-Content-Type: text/markdown
37
37
  License-File: LICENSE
38
38
  Requires-Dist: pydantic
39
+ Provides-Extra: yaml
40
+ Requires-Dist: ruamel.yaml; extra == "yaml"
39
41
  Dynamic: license-file
40
42
 
41
43
  # <b>Cocoa</b>
@@ -49,7 +51,7 @@ Dynamic: license-file
49
51
 
50
52
  | Package | Cocoa |
51
53
  | ----------- | ----------- |
52
- | Version | 0.3.12 |
54
+ | Version | 0.4.4 |
53
55
  | Download | https://pypi.org/project/hyperlight-cocoa/ |
54
56
  | Source | https://github.com/hyper-light/cocoa |
55
57
  | Keywords | termial, ui, async, cli, graphics, ASCII |
@@ -9,7 +9,7 @@
9
9
 
10
10
  | Package | Cocoa |
11
11
  | ----------- | ----------- |
12
- | Version | 0.3.12 |
12
+ | Version | 0.4.4 |
13
13
  | Download | https://pypi.org/project/hyperlight-cocoa/ |
14
14
  | Source | https://github.com/hyper-light/cocoa |
15
15
  | Keywords | termial, ui, async, cli, graphics, ASCII |
@@ -21,6 +21,7 @@ from cocoa.cli.arg_types.data_types import (
21
21
  Paths,
22
22
  Pattern,
23
23
  RawFile,
24
+ YamlFile,
24
25
  )
25
26
  from cocoa.cli.arg_types.data_types.reduce_pattern_type import reduce_pattern_type
26
27
  from cocoa.cli.arg_types.operators import Operator
@@ -44,7 +45,8 @@ class KeywordArg(Generic[T]):
44
45
  | Operator
45
46
  | Paths
46
47
  | Pattern
47
- | RawFile,
48
+ | RawFile
49
+ | YamlFile,
48
50
  Callable[
49
51
  [str, type[Any]],
50
52
  AssertPath
@@ -58,7 +60,8 @@ class KeywordArg(Generic[T]):
58
60
  | Operator
59
61
  | Paths
60
62
  | Pattern
61
- | RawFile,
63
+ | RawFile
64
+ | YamlFile,
62
65
  ],
63
66
  ] = {
64
67
  AssertPath: lambda _, __: AssertPath(),
@@ -73,6 +76,7 @@ class KeywordArg(Generic[T]):
73
76
  Paths: lambda _, subtype: Paths(subtype),
74
77
  Pattern: lambda _, subtype: Pattern(subtype),
75
78
  RawFile: lambda _, subtype: RawFile(subtype),
79
+ YamlFile: lambda _, __: YamlFile(),
76
80
  }
77
81
 
78
82
 
@@ -19,6 +19,7 @@ from cocoa.cli.arg_types.data_types import (
19
19
  Paths,
20
20
  Pattern,
21
21
  RawFile,
22
+ YamlFile,
22
23
  )
23
24
  from cocoa.cli.arg_types.data_types.reduce_pattern_type import reduce_pattern_type
24
25
  from cocoa.cli.arg_types.operators import Operator
@@ -39,7 +40,8 @@ class PositionalArg(Generic[T]):
39
40
  | Operator
40
41
  | Paths
41
42
  | Pattern
42
- | RawFile,
43
+ | RawFile
44
+ | YamlFile,
43
45
  Callable[
44
46
  [str, type[Any]],
45
47
  AssertPath
@@ -53,7 +55,8 @@ class PositionalArg(Generic[T]):
53
55
  | Operator
54
56
  | Paths
55
57
  | Pattern
56
- | RawFile,
58
+ | RawFile
59
+ | YamlFile,
57
60
  ],
58
61
  ] = {
59
62
  AssertPath: lambda _, __: AssertPath(),
@@ -68,6 +71,7 @@ class PositionalArg(Generic[T]):
68
71
  Paths: lambda _, subtype: Paths(subtype),
69
72
  Pattern: lambda _, subtype: Pattern(subtype),
70
73
  RawFile: lambda _, subtype: RawFile(subtype),
74
+ YamlFile: lambda _, __: YamlFile(),
71
75
  }
72
76
 
73
77
  def __init__(
@@ -9,3 +9,4 @@ from .json_file import JsonFile as JsonFile
9
9
  from .paths import Paths as Paths
10
10
  from .pattern import Pattern as Pattern
11
11
  from .raw_file import RawFile as RawFile
12
+ from .yaml_file import YamlFile as YamlFile
@@ -0,0 +1,86 @@
1
+ from __future__ import annotations
2
+ import asyncio
3
+ import io
4
+ from pydantic import BaseModel
5
+ from typing import Any, TypeVar, Generic
6
+ from .reduce_pattern_type import reduce_pattern_type
7
+
8
+ try:
9
+ from ruamel.yaml import YAML
10
+ from ruamel.yaml.comments import CommentedBase
11
+
12
+ except (Exception, ImportError):
13
+
14
+ class CommentedBase:
15
+
16
+ def __init__(self):
17
+ pass
18
+
19
+ class YAML:
20
+ def __init__(
21
+ self,
22
+ typ: str | None = None
23
+ ):
24
+ pass
25
+
26
+ def load(self, file_pointer: Any):
27
+ return ImportError('You must install the [yaml] option to use the YamlFile operator!')
28
+
29
+
30
+ class YamlFile:
31
+ def __init__(self):
32
+ super().__init__()
33
+
34
+ self.data: CommentedBase | None = None
35
+
36
+ self._data_types = [str]
37
+ self._types = [str]
38
+
39
+ self._loop = asyncio.get_event_loop()
40
+
41
+ def __contains__(self, value: Any):
42
+ return type(value) in [self._types]
43
+
44
+ @property
45
+ def data_type(self):
46
+ return "Yaml"
47
+
48
+ async def parse(self, arg: str | None = None):
49
+ result = await self._load_yaml_file(arg)
50
+ if isinstance(result, Exception):
51
+ return result
52
+
53
+ self.data = result
54
+
55
+ return self
56
+
57
+ async def _load_yaml_file(self, arg: str | None = None):
58
+ try:
59
+ if arg is None:
60
+ return Exception("no argument passed for filepath")
61
+
62
+ return await self._load_file(arg)
63
+
64
+ except Exception as e:
65
+ return Exception(
66
+ f"encountered error {str(e)} parsing file at {arg} to JSON"
67
+ )
68
+
69
+ async def _load_file(self, arg: str):
70
+ try:
71
+
72
+ file_handle: io.TextIOWrapper = await self._loop.run_in_executor(
73
+ None,
74
+ open,
75
+ arg,
76
+ )
77
+
78
+ yaml = YAML(typ='rt')
79
+ file_data = await self._loop.run_in_executor(None, yaml.load, file_handle)
80
+
81
+ await self._loop.run_in_executor(None, file_handle.close)
82
+
83
+ return file_data
84
+
85
+ except Exception as e:
86
+ return Exception(f"encountered error {str(e)} opening file at {arg}")
@@ -14,6 +14,7 @@ from cocoa.cli.arg_types.data_types import (
14
14
  Paths,
15
15
  Pattern,
16
16
  RawFile,
17
+ YamlFile,
17
18
  )
18
19
 
19
20
  T = TypeVarTuple("T")
@@ -48,7 +49,8 @@ class Chain(Generic[*T]):
48
49
  | JsonData
49
50
  | JsonData
50
51
  | Pattern
51
- | RawFile,
52
+ | RawFile
53
+ | YamlFile,
52
54
  Callable[
53
55
  [str, type[Any]],
54
56
  AssertPath
@@ -59,7 +61,8 @@ class Chain(Generic[*T]):
59
61
  | JsonData
60
62
  | JsonData
61
63
  | Pattern
62
- | RawFile,
64
+ | RawFile
65
+ | YamlFile
63
66
  ],
64
67
  ] = {
65
68
  AssertPath: lambda _, __: AssertPath(),
@@ -72,6 +75,7 @@ class Chain(Generic[*T]):
72
75
  Paths: lambda _, subtype: Paths(subtype),
73
76
  Pattern: lambda _, subtype: Pattern(subtype),
74
77
  RawFile: lambda _, subtype: RawFile(subtype),
78
+ YamlFile: lambda _, __: YamlFile()
75
79
  }
76
80
 
77
81
  self._loop = asyncio.get_event_loop()
@@ -14,6 +14,7 @@ from cocoa.cli.arg_types.data_types import (
14
14
  Paths,
15
15
  Pattern,
16
16
  RawFile,
17
+ YamlFile,
17
18
  )
18
19
 
19
20
  T = TypeVarTuple("T")
@@ -48,7 +49,8 @@ class Map(Generic[*T]):
48
49
  | JsonData
49
50
  | JsonData
50
51
  | Pattern
51
- | RawFile,
52
+ | RawFile
53
+ | YamlFile,
52
54
  Callable[
53
55
  [str, type[Any]],
54
56
  AssertPath
@@ -59,7 +61,8 @@ class Map(Generic[*T]):
59
61
  | JsonData
60
62
  | JsonData
61
63
  | Pattern
62
- | RawFile,
64
+ | RawFile
65
+ | YamlFile,
63
66
  ],
64
67
  ] = {
65
68
  AssertPath: lambda _, __: AssertPath(),
@@ -72,6 +75,7 @@ class Map(Generic[*T]):
72
75
  Paths: lambda _, subtype: Paths(subtype),
73
76
  Pattern: lambda _, subtype: Pattern(subtype),
74
77
  RawFile: lambda _, subtype: RawFile(subtype),
78
+ YamlFile: lambda _, __: YamlFile(),
75
79
  }
76
80
 
77
81
  self._loop = asyncio.get_event_loop()
@@ -137,7 +137,7 @@ class Command(Generic[T]):
137
137
  (positional_args, keyword_args, errors) = await self._find_args(args, context)
138
138
 
139
139
  if positional_args is None and keyword_args is None:
140
- await self._print_group_help_message()
140
+ await self._print_command_help_message()
141
141
 
142
142
  return (
143
143
  None,
@@ -146,7 +146,7 @@ class Command(Generic[T]):
146
146
  )
147
147
 
148
148
  elif len(errors) > 0:
149
- await self._print_group_help_message(
149
+ await self._print_command_help_message(
150
150
  error=errors[0],
151
151
  )
152
152
 
@@ -170,8 +170,8 @@ class Command(Generic[T]):
170
170
  if self.display_help_on_error is False:
171
171
  raise err
172
172
 
173
- await self._print_group_help_message(
174
- error=err,
173
+ await self._print_command_help_message(
174
+ error=str(err),
175
175
  )
176
176
 
177
177
  return (
@@ -217,7 +217,7 @@ class Command(Generic[T]):
217
217
  )
218
218
 
219
219
 
220
- async def _print_group_help_message(
220
+ async def _print_command_help_message(
221
221
  self,
222
222
  error: str | None = None
223
223
  ):
@@ -125,6 +125,7 @@ class Group(Generic[T]):
125
125
 
126
126
  self.subgroups: dict[str, Group[Any]] = {}
127
127
  self.subcommands: dict[str, Command[Any]] = {}
128
+
128
129
  self._global_styles: CLIStyle | None = None
129
130
 
130
131
  self.positional_args = positional_args
@@ -232,7 +233,7 @@ class Group(Generic[T]):
232
233
 
233
234
 
234
235
  await self._print_group_help_message(
235
- error=err,
236
+ error=str(err),
236
237
  subcommands=subcommands,
237
238
  )
238
239
 
@@ -47,6 +47,7 @@ class OptionsHelpMessage(BaseModel):
47
47
  self,
48
48
  global_styles: CLIStyle | None = None,
49
49
  ):
50
+
50
51
  indentation = self.indentation
51
52
  if global_styles and global_styles.indentation:
52
53
  indentation = global_styles.indentation
@@ -63,7 +64,9 @@ class OptionsHelpMessage(BaseModel):
63
64
  arg_string = join_char.join(
64
65
  [
65
66
  await self._to_help_string(
66
- arg, descriptor=param_descriptors.get(arg.name), styles=styles
67
+ arg,
68
+ descriptor=param_descriptors.get(arg.name),
69
+ styles=styles,
67
70
  )
68
71
  for arg in self.options
69
72
  if Context not in arg.value_type
@@ -92,6 +95,7 @@ class OptionsHelpMessage(BaseModel):
92
95
  descriptor: str | None = None,
93
96
  styles: CLIStyle | None = None,
94
97
  ):
98
+
95
99
  if descriptor is None:
96
100
  descriptor = arg.description
97
101
 
@@ -123,11 +123,11 @@ def inspect_wrapped(
123
123
 
124
124
  required = no_default and none_not_preset
125
125
 
126
-
126
+ full_flag = "-".join(arg_name.split("_"))
127
127
  keyword_arg = KeywordArg(
128
128
  arg_name,
129
129
  arg_attrs.annotation,
130
- short_name=shortnames.get(arg_name),
130
+ short_name=shortnames.get(full_flag),
131
131
  required=required,
132
132
  default=arg_default,
133
133
  arg_type=arg_type,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperlight-cocoa
3
- Version: 0.4.2
3
+ Version: 0.4.5
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
@@ -36,6 +36,8 @@ Requires-Python: >=3.11
36
36
  Description-Content-Type: text/markdown
37
37
  License-File: LICENSE
38
38
  Requires-Dist: pydantic
39
+ Provides-Extra: yaml
40
+ Requires-Dist: ruamel.yaml; extra == "yaml"
39
41
  Dynamic: license-file
40
42
 
41
43
  # <b>Cocoa</b>
@@ -49,7 +51,7 @@ Dynamic: license-file
49
51
 
50
52
  | Package | Cocoa |
51
53
  | ----------- | ----------- |
52
- | Version | 0.3.12 |
54
+ | Version | 0.4.4 |
53
55
  | Download | https://pypi.org/project/hyperlight-cocoa/ |
54
56
  | Source | https://github.com/hyper-light/cocoa |
55
57
  | Keywords | termial, ui, async, cli, graphics, ASCII |
@@ -25,6 +25,7 @@ cocoa/cli/arg_types/data_types/paths.py
25
25
  cocoa/cli/arg_types/data_types/pattern.py
26
26
  cocoa/cli/arg_types/data_types/raw_file.py
27
27
  cocoa/cli/arg_types/data_types/reduce_pattern_type.py
28
+ cocoa/cli/arg_types/data_types/yaml_file.py
28
29
  cocoa/cli/arg_types/operators/__init__.py
29
30
  cocoa/cli/arg_types/operators/chain.py
30
31
  cocoa/cli/arg_types/operators/map.py
@@ -0,0 +1,4 @@
1
+ pydantic
2
+
3
+ [yaml]
4
+ ruamel.yaml
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "hyperlight-cocoa"
9
- version = "0.4.2"
9
+ version = "0.4.5"
10
10
  requires-python = ">=3.11"
11
11
  description = "Create beautiful, performant terminal UI and CLI apps."
12
12
  readme = "README.md"
@@ -26,9 +26,13 @@ keywords = [
26
26
  'graphics',
27
27
  ]
28
28
  dependencies = [
29
- "pydantic"
29
+ "pydantic",
30
30
  ]
31
31
 
32
+ [project.optional-dependencies]
33
+ yaml = [
34
+ "ruamel.yaml",
35
+ ]
32
36
 
33
37
  [project.urls]
34
38
  Homepage = "https://github.com/hyper-light/cocoa"