hyperlight-cocoa 0.4.6__tar.gz → 0.4.8__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.6 → hyperlight_cocoa-0.4.8}/PKG-INFO +2 -2
  2. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/README.md +1 -1
  3. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/__init__.py +1 -0
  4. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/__init__.py +1 -0
  5. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/base/keyword_arg.py +6 -2
  6. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/base/positional_arg.py +6 -2
  7. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/data_types/__init__.py +2 -1
  8. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/data_types/yaml_file.py +20 -12
  9. hyperlight_cocoa-0.4.8/cocoa/cli/arg_types/data_types/yaml_file_with_default.py +125 -0
  10. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/operators/chain.py +6 -2
  11. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/operators/map.py +6 -2
  12. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/hyperlight_cocoa.egg-info/PKG-INFO +2 -2
  13. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/hyperlight_cocoa.egg-info/SOURCES.txt +1 -0
  14. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/pyproject.toml +1 -1
  15. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/LICENSE +0 -0
  16. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/base/__init__.py +0 -0
  17. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/data_types/assert_path.py +0 -0
  18. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/data_types/assert_set.py +0 -0
  19. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/data_types/check_if_multiarg.py +0 -0
  20. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/data_types/context.py +0 -0
  21. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/data_types/env.py +0 -0
  22. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/data_types/import_instance.py +0 -0
  23. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/data_types/import_type.py +0 -0
  24. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/data_types/json_data.py +0 -0
  25. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/data_types/json_file.py +0 -0
  26. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/data_types/paths.py +0 -0
  27. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/data_types/pattern.py +0 -0
  28. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/data_types/raw_file.py +0 -0
  29. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/data_types/reduce_pattern_type.py +0 -0
  30. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/operators/__init__.py +0 -0
  31. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/arg_types/operators/operator.py +0 -0
  32. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/cli.py +0 -0
  33. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/cli_protocol.py +0 -0
  34. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/command.py +0 -0
  35. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/group.py +0 -0
  36. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/help_message/__init__.py +0 -0
  37. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/help_message/cli_style.py +0 -0
  38. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/help_message/create_help_string.py +0 -0
  39. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/help_message/description_help_message.py +0 -0
  40. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/help_message/help_message.py +0 -0
  41. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/help_message/line_parsing.py +0 -0
  42. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/help_message/options_help_message.py +0 -0
  43. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/help_message/title_help_message.py +0 -0
  44. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/cli/inspect_wrapped.py +0 -0
  45. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/__init__.py +0 -0
  46. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/__init__.py +0 -0
  47. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/animated_status_bar/__init__.py +0 -0
  48. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/animated_status_bar/animated_status_bar.py +0 -0
  49. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/animated_status_bar/animated_status_bar_config.py +0 -0
  50. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/counter/__init__.py +0 -0
  51. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/counter/counter.py +0 -0
  52. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/counter/counter_config.py +0 -0
  53. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/empty/__init__.py +0 -0
  54. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/empty/empty.py +0 -0
  55. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/header/__init__.py +0 -0
  56. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/header/header.py +0 -0
  57. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/header/header_config.py +0 -0
  58. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/header/letters/__init__.py +0 -0
  59. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/header/letters/fonts/__init__.py +0 -0
  60. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/header/letters/fonts/alphabet.py +0 -0
  61. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/header/letters/fonts/bubbles.py +0 -0
  62. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/header/letters/fonts/cyberpunk.py +0 -0
  63. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/header/letters/fonts/formatted_letter.py +0 -0
  64. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/header/letters/fonts/letter.py +0 -0
  65. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/header/letters/formatted_word.py +0 -0
  66. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/header/letters/word.py +0 -0
  67. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/link/__init__.py +0 -0
  68. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/link/link.py +0 -0
  69. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/link/link_config.py +0 -0
  70. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/link/link_validator.py +0 -0
  71. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/multiline_text/__init__.py +0 -0
  72. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/multiline_text/multiline_text.py +0 -0
  73. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/multiline_text/multiline_text_config.py +0 -0
  74. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/progress_bar/__init__.py +0 -0
  75. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/progress_bar/background_char.py +0 -0
  76. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/progress_bar/end_char.py +0 -0
  77. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/progress_bar/fill_char.py +0 -0
  78. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/progress_bar/progress_bar.py +0 -0
  79. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/progress_bar/progress_bar_config.py +0 -0
  80. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/progress_bar/progress_bar_status.py +0 -0
  81. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/progress_bar/start_char.py +0 -0
  82. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/scatter_plot/__init__.py +0 -0
  83. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/scatter_plot/plot_config.py +0 -0
  84. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/scatter_plot/plot_point.py +0 -0
  85. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/scatter_plot/plotille/__init__.py +0 -0
  86. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/scatter_plot/plotille/_canvas.py +0 -0
  87. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/scatter_plot/plotille/_cmaps.py +0 -0
  88. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/scatter_plot/plotille/_cmaps_data.py +0 -0
  89. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/scatter_plot/plotille/_colors.py +0 -0
  90. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/scatter_plot/plotille/_dots.py +0 -0
  91. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/scatter_plot/plotille/_figure.py +0 -0
  92. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/scatter_plot/plotille/_figure_data.py +0 -0
  93. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/scatter_plot/plotille/_graphs.py +0 -0
  94. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/scatter_plot/plotille/_input_formatter.py +0 -0
  95. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/scatter_plot/plotille/_util.py +0 -0
  96. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/scatter_plot/point_char.py +0 -0
  97. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/scatter_plot/scatter_plot.py +0 -0
  98. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/spinner/__init__.py +0 -0
  99. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/spinner/spinner.py +0 -0
  100. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/spinner/spinner_config.py +0 -0
  101. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/spinner/spinner_data.py +0 -0
  102. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/spinner/spinner_factory.py +0 -0
  103. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/spinner/spinner_frames_set.py +0 -0
  104. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/spinner/spinner_status.py +0 -0
  105. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/spinner/spinner_types.py +0 -0
  106. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/status_bar/__init__.py +0 -0
  107. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/status_bar/status_bar.py +0 -0
  108. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/status_bar/status_bar_config.py +0 -0
  109. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/table/__init__.py +0 -0
  110. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/table/table.py +0 -0
  111. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/table/table_config.py +0 -0
  112. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/table/tabulate/__init__.py +0 -0
  113. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/table/tabulate/cell_alignment.py +0 -0
  114. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/table/tabulate/charset_position_type.py +0 -0
  115. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/table/tabulate/table_assembler.py +0 -0
  116. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/table/tabulate/table_border_lines.py +0 -0
  117. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/terminal/__init__.py +0 -0
  118. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/terminal/action.py +0 -0
  119. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/terminal/canvas.py +0 -0
  120. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/terminal/engine_config.py +0 -0
  121. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/terminal/refresh_rate.py +0 -0
  122. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/terminal/section.py +0 -0
  123. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/terminal/section_config.py +0 -0
  124. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/terminal/terminal.py +0 -0
  125. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/terminal/terminal_protocol.py +0 -0
  126. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/text/__init__.py +0 -0
  127. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/text/text.py +0 -0
  128. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/text/text_config.py +0 -0
  129. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/timer/__init__.py +0 -0
  130. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/timer/timer.py +0 -0
  131. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/timer/timer_config.py +0 -0
  132. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/timer/timer_status.py +0 -0
  133. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/total_rate/__init__.py +0 -0
  134. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/total_rate/total_rate.py +0 -0
  135. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/total_rate/total_rate_config.py +0 -0
  136. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/total_rate/total_rate_status.py +0 -0
  137. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/windowed_rate/__init__.py +0 -0
  138. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/windowed_rate/windowed_rate.py +0 -0
  139. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/components/windowed_rate/windowed_rate_config.py +0 -0
  140. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/config/__init__.py +0 -0
  141. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/config/mode.py +0 -0
  142. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/config/widget_fit_dimensions.py +0 -0
  143. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/state/__init__.py +0 -0
  144. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/state/observe.py +0 -0
  145. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/state/state_types.py +0 -0
  146. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/state/subscription_set.py +0 -0
  147. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/styling/__init__.py +0 -0
  148. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/styling/attributes/__init__.py +0 -0
  149. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/styling/attributes/attribute.py +0 -0
  150. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/styling/attributes/attributizer.py +0 -0
  151. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/styling/colors/__init__.py +0 -0
  152. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/styling/colors/color.py +0 -0
  153. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/styling/colors/colorizer.py +0 -0
  154. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/styling/colors/extended_color.py +0 -0
  155. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/styling/colors/highlight.py +0 -0
  156. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/styling/stylize.py +0 -0
  157. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/ui/styling/stylizer.py +0 -0
  158. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/utils/__init__.py +0 -0
  159. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/cocoa/utils/time_parser.py +0 -0
  160. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/example/test_check_multiarg.py +0 -0
  161. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/example/test_cyperpunk.py +0 -0
  162. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/hyperlight_cocoa.egg-info/dependency_links.txt +0 -0
  163. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/hyperlight_cocoa.egg-info/requires.txt +0 -0
  164. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/hyperlight_cocoa.egg-info/top_level.txt +0 -0
  165. {hyperlight_cocoa-0.4.6 → hyperlight_cocoa-0.4.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperlight-cocoa
3
- Version: 0.4.6
3
+ Version: 0.4.8
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
@@ -51,7 +51,7 @@ Dynamic: license-file
51
51
 
52
52
  | Package | Cocoa |
53
53
  | ----------- | ----------- |
54
- | Version | 0.4.6 |
54
+ | Version | 0.4.8 |
55
55
  | Download | https://pypi.org/project/hyperlight-cocoa/ |
56
56
  | Source | https://github.com/hyper-light/cocoa |
57
57
  | Keywords | termial, ui, async, cli, graphics, ASCII |
@@ -9,7 +9,7 @@
9
9
 
10
10
  | Package | Cocoa |
11
11
  | ----------- | ----------- |
12
- | Version | 0.4.6 |
12
+ | Version | 0.4.8 |
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 |
@@ -13,6 +13,7 @@ from .arg_types import Paths as Paths
13
13
  from .arg_types import Pattern as Pattern
14
14
  from .arg_types import RawFile as RawFile
15
15
  from .arg_types import YamlFile as YamlFile
16
+ from .arg_types import YamlFileWithDefault as YamlFileWithDefault
16
17
  from .cli import CLI as CLI
17
18
  from .command import command as command
18
19
  from .group import group as group
@@ -17,6 +17,7 @@ from .data_types import Paths as Paths
17
17
  from .data_types import Pattern as Pattern
18
18
  from .data_types import RawFile as RawFile
19
19
  from .data_types import YamlFile as YamlFile
20
+ from .data_types import YamlFileWithDefault as YamlFileWithDefault
20
21
  from .operators import Chain as Chain
21
22
  from .operators import Map as Map
22
23
  from .operators import Operator as Operator
@@ -22,6 +22,7 @@ from cocoa.cli.arg_types.data_types import (
22
22
  Pattern,
23
23
  RawFile,
24
24
  YamlFile,
25
+ YamlFileWithDefault,
25
26
  )
26
27
  from cocoa.cli.arg_types.data_types.reduce_pattern_type import reduce_pattern_type
27
28
  from cocoa.cli.arg_types.operators import Operator
@@ -46,7 +47,8 @@ class KeywordArg(Generic[T]):
46
47
  | Paths
47
48
  | Pattern
48
49
  | RawFile
49
- | YamlFile,
50
+ | YamlFile
51
+ | YamlFileWithDefault,
50
52
  Callable[
51
53
  [str, type[Any]],
52
54
  AssertPath
@@ -61,7 +63,8 @@ class KeywordArg(Generic[T]):
61
63
  | Paths
62
64
  | Pattern
63
65
  | RawFile
64
- | YamlFile,
66
+ | YamlFile
67
+ | YamlFileWithDefault,
65
68
  ],
66
69
  ] = {
67
70
  AssertPath: lambda _, __: AssertPath(),
@@ -77,6 +80,7 @@ class KeywordArg(Generic[T]):
77
80
  Pattern: lambda _, subtype: Pattern(subtype),
78
81
  RawFile: lambda _, subtype: RawFile(subtype),
79
82
  YamlFile: lambda _, __: YamlFile(),
83
+ YamlFileWithDefault: lambda _, __: YamlFileWithDefault(),
80
84
  }
81
85
 
82
86
 
@@ -20,6 +20,7 @@ from cocoa.cli.arg_types.data_types import (
20
20
  Pattern,
21
21
  RawFile,
22
22
  YamlFile,
23
+ YamlFileWithDefault,
23
24
  )
24
25
  from cocoa.cli.arg_types.data_types.reduce_pattern_type import reduce_pattern_type
25
26
  from cocoa.cli.arg_types.operators import Operator
@@ -41,7 +42,8 @@ class PositionalArg(Generic[T]):
41
42
  | Paths
42
43
  | Pattern
43
44
  | RawFile
44
- | YamlFile,
45
+ | YamlFile
46
+ | YamlFileWithDefault,
45
47
  Callable[
46
48
  [str, type[Any]],
47
49
  AssertPath
@@ -56,7 +58,8 @@ class PositionalArg(Generic[T]):
56
58
  | Paths
57
59
  | Pattern
58
60
  | RawFile
59
- | YamlFile,
61
+ | YamlFile
62
+ | YamlFileWithDefault,
60
63
  ],
61
64
  ] = {
62
65
  AssertPath: lambda _, __: AssertPath(),
@@ -72,6 +75,7 @@ class PositionalArg(Generic[T]):
72
75
  Pattern: lambda _, subtype: Pattern(subtype),
73
76
  RawFile: lambda _, subtype: RawFile(subtype),
74
77
  YamlFile: lambda _, __: YamlFile(),
78
+ YamlFileWithDefault: lambda _, __: YamlFileWithDefault(),
75
79
  }
76
80
 
77
81
  def __init__(
@@ -9,4 +9,5 @@ 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
12
+ from .yaml_file import YamlFile as YamlFile
13
+ from .yaml_file_with_default import YamlFileWithDefault as YamlFileWithDefault
@@ -1,9 +1,8 @@
1
1
  from __future__ import annotations
2
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
3
+ import os
4
+ import pathlib
5
+ from typing import Any
7
6
 
8
7
  try:
9
8
  from ruamel.yaml import YAML
@@ -69,18 +68,27 @@ class YamlFile:
69
68
  async def _load_file(self, arg: str):
70
69
  try:
71
70
 
72
- file_handle: io.TextIOWrapper = await self._loop.run_in_executor(
71
+ return await self._loop.run_in_executor(
73
72
  None,
74
- open,
73
+ self._load_yaml_file,
75
74
  arg,
76
75
  )
77
76
 
78
- yaml = YAML(typ='rt')
79
- file_data = await self._loop.run_in_executor(None, yaml.load, file_handle)
77
+ except Exception as e:
78
+ return Exception(f"encountered error {str(e)} opening file at {arg}")
80
79
 
81
- await self._loop.run_in_executor(None, file_handle.close)
80
+ def _load_yaml_file(self, arg: str):
81
+ if arg.startswith('~/'):
82
+ arg.replace('~/', '')
83
+ arg = os.path.join(
84
+ str(pathlib.Path.home()),
85
+ arg,
86
+ )
82
87
 
83
- return file_data
88
+ elif arg == '.':
89
+ arg = os.getcwd()
84
90
 
85
- except Exception as e:
86
- return Exception(f"encountered error {str(e)} opening file at {arg}")
91
+ yaml = YAML(typ='rt')
92
+
93
+ with open(arg) as file:
94
+ return yaml.load(file)
@@ -0,0 +1,125 @@
1
+ from __future__ import annotations
2
+ import asyncio
3
+ import os
4
+ import pathlib
5
+ from typing import Any
6
+
7
+ try:
8
+ from ruamel.yaml import YAML
9
+ from ruamel.yaml.comments import CommentedBase
10
+ from ruamel.yaml.comments import CommentedMap
11
+
12
+ except (Exception, ImportError):
13
+
14
+ class CommentedBase:
15
+
16
+ def __init__(self):
17
+ pass
18
+
19
+ class CommentedMap:
20
+
21
+ def __init__(self):
22
+ pass
23
+
24
+ class YAML:
25
+ def __init__(
26
+ self,
27
+ typ: str | None = None
28
+ ):
29
+ self.preserve_quotes: bool = False
30
+ self.width: int = 0
31
+
32
+ def indent(
33
+ mapping: int | None = None,
34
+ sequence: int | None = None,
35
+ offset: int | None = None,
36
+ ):
37
+ pass
38
+
39
+ def load(self, file_pointer: Any):
40
+ return ImportError('You must install the [yaml] option to use the YamlFileWithDefault operator!')
41
+
42
+ def dump(self, file_pointer: Any, data: Any):
43
+ return ImportError('You must install the [yaml] option to use the YamlFileWithDefault operator!')
44
+
45
+
46
+ class YamlFileWithDefault:
47
+ def __init__(self):
48
+ super().__init__()
49
+
50
+ self.data: CommentedBase | None = None
51
+
52
+ self._data_types = [str]
53
+ self._types = [str]
54
+
55
+ self._loop = asyncio.get_event_loop()
56
+
57
+ def __contains__(self, value: Any):
58
+ return type(value) in [self._types]
59
+
60
+ @property
61
+ def data_type(self):
62
+ return "Yaml"
63
+
64
+ async def parse(self, arg: str | None = None):
65
+ result = await self._load_yaml_file(arg)
66
+ if isinstance(result, Exception):
67
+ return result
68
+
69
+ self.data = result
70
+
71
+ return self
72
+
73
+ async def _load_yaml_file(self, arg: str | None = None):
74
+ try:
75
+ if arg is None:
76
+ return Exception("no argument passed for filepath")
77
+
78
+ return await self._load_file(arg)
79
+
80
+ except Exception as e:
81
+ return Exception(
82
+ f"encountered error {str(e)} parsing file at {arg} to JSON"
83
+ )
84
+
85
+ async def _load_file(self, arg: str):
86
+ try:
87
+
88
+ return await self._loop.run_in_executor(
89
+ None,
90
+ self._load_yaml_or_default,
91
+ arg,
92
+ )
93
+
94
+ except Exception as e:
95
+ return Exception(f"encountered error {str(e)} opening file at {arg}")
96
+
97
+ def _load_yaml_or_default(self, arg: str):
98
+
99
+ if arg.startswith('~/'):
100
+ arg.replace('~/', '')
101
+ arg = os.path.join(
102
+ str(pathlib.Path.home()),
103
+ arg,
104
+ )
105
+
106
+ elif arg == '.':
107
+ arg = os.getcwd()
108
+
109
+ yaml = YAML(typ='rt')
110
+ if not pathlib.Path(arg).absolute().exists():
111
+
112
+ yaml.preserve_quotes = True
113
+ yaml.width = 4096
114
+ yaml.indent(mapping=2, sequence=4, offset=2)
115
+ with open(arg, 'w') as file:
116
+ yaml.dump(file, CommentedMap())
117
+
118
+
119
+ return file
120
+
121
+ with open(arg) as file:
122
+ return yaml.load(file)
123
+
124
+
125
+
@@ -15,6 +15,7 @@ from cocoa.cli.arg_types.data_types import (
15
15
  Pattern,
16
16
  RawFile,
17
17
  YamlFile,
18
+ YamlFileWithDefault,
18
19
  )
19
20
 
20
21
  T = TypeVarTuple("T")
@@ -50,7 +51,8 @@ class Chain(Generic[*T]):
50
51
  | JsonData
51
52
  | Pattern
52
53
  | RawFile
53
- | YamlFile,
54
+ | YamlFile
55
+ | YamlFileWithDefault,
54
56
  Callable[
55
57
  [str, type[Any]],
56
58
  AssertPath
@@ -63,6 +65,7 @@ class Chain(Generic[*T]):
63
65
  | Pattern
64
66
  | RawFile
65
67
  | YamlFile
68
+ | YamlFileWithDefault
66
69
  ],
67
70
  ] = {
68
71
  AssertPath: lambda _, __: AssertPath(),
@@ -75,7 +78,8 @@ class Chain(Generic[*T]):
75
78
  Paths: lambda _, subtype: Paths(subtype),
76
79
  Pattern: lambda _, subtype: Pattern(subtype),
77
80
  RawFile: lambda _, subtype: RawFile(subtype),
78
- YamlFile: lambda _, __: YamlFile()
81
+ YamlFile: lambda _, __: YamlFile(),
82
+ YamlFileWithDefault: lambda _, __: YamlFileWithDefault(),
79
83
  }
80
84
 
81
85
  self._loop = asyncio.get_event_loop()
@@ -15,6 +15,7 @@ from cocoa.cli.arg_types.data_types import (
15
15
  Pattern,
16
16
  RawFile,
17
17
  YamlFile,
18
+ YamlFileWithDefault,
18
19
  )
19
20
 
20
21
  T = TypeVarTuple("T")
@@ -50,7 +51,8 @@ class Map(Generic[*T]):
50
51
  | JsonData
51
52
  | Pattern
52
53
  | RawFile
53
- | YamlFile,
54
+ | YamlFile
55
+ | YamlFileWithDefault,
54
56
  Callable[
55
57
  [str, type[Any]],
56
58
  AssertPath
@@ -62,7 +64,8 @@ class Map(Generic[*T]):
62
64
  | JsonData
63
65
  | Pattern
64
66
  | RawFile
65
- | YamlFile,
67
+ | YamlFile
68
+ | YamlFileWithDefault,
66
69
  ],
67
70
  ] = {
68
71
  AssertPath: lambda _, __: AssertPath(),
@@ -76,6 +79,7 @@ class Map(Generic[*T]):
76
79
  Pattern: lambda _, subtype: Pattern(subtype),
77
80
  RawFile: lambda _, subtype: RawFile(subtype),
78
81
  YamlFile: lambda _, __: YamlFile(),
82
+ YamlFileWithDefault: lambda _, __: YamlFileWithDefault(),
79
83
  }
80
84
 
81
85
  self._loop = asyncio.get_event_loop()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperlight-cocoa
3
- Version: 0.4.6
3
+ Version: 0.4.8
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
@@ -51,7 +51,7 @@ Dynamic: license-file
51
51
 
52
52
  | Package | Cocoa |
53
53
  | ----------- | ----------- |
54
- | Version | 0.4.6 |
54
+ | Version | 0.4.8 |
55
55
  | Download | https://pypi.org/project/hyperlight-cocoa/ |
56
56
  | Source | https://github.com/hyper-light/cocoa |
57
57
  | Keywords | termial, ui, async, cli, graphics, ASCII |
@@ -26,6 +26,7 @@ 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
28
  cocoa/cli/arg_types/data_types/yaml_file.py
29
+ cocoa/cli/arg_types/data_types/yaml_file_with_default.py
29
30
  cocoa/cli/arg_types/operators/__init__.py
30
31
  cocoa/cli/arg_types/operators/chain.py
31
32
  cocoa/cli/arg_types/operators/map.py
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "hyperlight-cocoa"
9
- version = "0.4.6"
9
+ version = "0.4.8"
10
10
  requires-python = ">=3.11"
11
11
  description = "Create beautiful, performant terminal UI and CLI apps."
12
12
  readme = "README.md"