hyperlight-cocoa 0.3.7__tar.gz → 0.3.9__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 (161) hide show
  1. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/PKG-INFO +2 -2
  2. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/README.md +1 -1
  3. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/__init__.py +1 -0
  4. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/__init__.py +1 -0
  5. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/base/keyword_arg.py +7 -3
  6. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/base/positional_arg.py +7 -3
  7. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/data_types/__init__.py +1 -0
  8. hyperlight_cocoa-0.3.9/cocoa/cli/arg_types/data_types/assert_path.py +61 -0
  9. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/operators/chain.py +6 -2
  10. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/operators/map.py +6 -2
  11. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/inspect_wrapped.py +8 -2
  12. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/hyperlight_cocoa.egg-info/PKG-INFO +2 -2
  13. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/hyperlight_cocoa.egg-info/SOURCES.txt +1 -0
  14. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/pyproject.toml +1 -1
  15. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/LICENSE +0 -0
  16. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/base/__init__.py +0 -0
  17. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/data_types/assert_set.py +0 -0
  18. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/data_types/context.py +0 -0
  19. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/data_types/env.py +0 -0
  20. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/data_types/import_instance.py +0 -0
  21. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/data_types/import_type.py +0 -0
  22. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/data_types/json_data.py +0 -0
  23. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/data_types/json_file.py +0 -0
  24. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/data_types/paths.py +0 -0
  25. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/data_types/pattern.py +0 -0
  26. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/data_types/raw_file.py +0 -0
  27. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/data_types/reduce_pattern_type.py +0 -0
  28. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/operators/__init__.py +0 -0
  29. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/arg_types/operators/operator.py +0 -0
  30. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/cli.py +0 -0
  31. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/cli_protocol.py +0 -0
  32. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/command.py +0 -0
  33. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/group.py +0 -0
  34. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/help_message/__init__.py +0 -0
  35. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/help_message/cli_style.py +0 -0
  36. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/help_message/create_help_string.py +0 -0
  37. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/help_message/description_help_message.py +0 -0
  38. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/help_message/help_message.py +0 -0
  39. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/help_message/line_parsing.py +0 -0
  40. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/help_message/options_help_message.py +0 -0
  41. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/cli/help_message/title_help_message.py +0 -0
  42. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/__init__.py +0 -0
  43. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/__init__.py +0 -0
  44. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/animated_status_bar/__init__.py +0 -0
  45. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/animated_status_bar/animated_status_bar.py +0 -0
  46. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/animated_status_bar/animated_status_bar_config.py +0 -0
  47. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/counter/__init__.py +0 -0
  48. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/counter/counter.py +0 -0
  49. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/counter/counter_config.py +0 -0
  50. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/empty/__init__.py +0 -0
  51. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/empty/empty.py +0 -0
  52. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/header/__init__.py +0 -0
  53. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/header/header.py +0 -0
  54. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/header/header_config.py +0 -0
  55. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/header/letters/__init__.py +0 -0
  56. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/header/letters/fonts/__init__.py +0 -0
  57. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/header/letters/fonts/alphabet.py +0 -0
  58. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/header/letters/fonts/bubbles.py +0 -0
  59. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/header/letters/fonts/cyberpunk.py +0 -0
  60. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/header/letters/fonts/formatted_letter.py +0 -0
  61. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/header/letters/fonts/letter.py +0 -0
  62. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/header/letters/formatted_word.py +0 -0
  63. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/header/letters/word.py +0 -0
  64. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/link/__init__.py +0 -0
  65. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/link/link.py +0 -0
  66. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/link/link_config.py +0 -0
  67. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/link/link_validator.py +0 -0
  68. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/multiline_text/__init__.py +0 -0
  69. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/multiline_text/multiline_text.py +0 -0
  70. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/multiline_text/multiline_text_config.py +0 -0
  71. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/progress_bar/__init__.py +0 -0
  72. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/progress_bar/background_char.py +0 -0
  73. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/progress_bar/end_char.py +0 -0
  74. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/progress_bar/fill_char.py +0 -0
  75. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/progress_bar/progress_bar.py +0 -0
  76. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/progress_bar/progress_bar_config.py +0 -0
  77. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/progress_bar/progress_bar_status.py +0 -0
  78. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/progress_bar/start_char.py +0 -0
  79. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/scatter_plot/__init__.py +0 -0
  80. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/scatter_plot/plot_config.py +0 -0
  81. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/scatter_plot/plot_point.py +0 -0
  82. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/scatter_plot/plotille/__init__.py +0 -0
  83. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/scatter_plot/plotille/_canvas.py +0 -0
  84. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/scatter_plot/plotille/_cmaps.py +0 -0
  85. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/scatter_plot/plotille/_cmaps_data.py +0 -0
  86. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/scatter_plot/plotille/_colors.py +0 -0
  87. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/scatter_plot/plotille/_dots.py +0 -0
  88. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/scatter_plot/plotille/_figure.py +0 -0
  89. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/scatter_plot/plotille/_figure_data.py +0 -0
  90. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/scatter_plot/plotille/_graphs.py +0 -0
  91. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/scatter_plot/plotille/_input_formatter.py +0 -0
  92. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/scatter_plot/plotille/_util.py +0 -0
  93. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/scatter_plot/point_char.py +0 -0
  94. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/scatter_plot/scatter_plot.py +0 -0
  95. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/spinner/__init__.py +0 -0
  96. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/spinner/spinner.py +0 -0
  97. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/spinner/spinner_config.py +0 -0
  98. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/spinner/spinner_data.py +0 -0
  99. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/spinner/spinner_factory.py +0 -0
  100. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/spinner/spinner_frames_set.py +0 -0
  101. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/spinner/spinner_status.py +0 -0
  102. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/spinner/spinner_types.py +0 -0
  103. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/status_bar/__init__.py +0 -0
  104. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/status_bar/status_bar.py +0 -0
  105. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/status_bar/status_bar_config.py +0 -0
  106. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/table/__init__.py +0 -0
  107. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/table/table.py +0 -0
  108. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/table/table_config.py +0 -0
  109. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/table/tabulate/__init__.py +0 -0
  110. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/table/tabulate/cell_alignment.py +0 -0
  111. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/table/tabulate/charset_position_type.py +0 -0
  112. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/table/tabulate/table_assembler.py +0 -0
  113. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/table/tabulate/table_border_lines.py +0 -0
  114. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/terminal/__init__.py +0 -0
  115. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/terminal/action.py +0 -0
  116. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/terminal/canvas.py +0 -0
  117. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/terminal/engine_config.py +0 -0
  118. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/terminal/refresh_rate.py +0 -0
  119. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/terminal/section.py +0 -0
  120. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/terminal/section_config.py +0 -0
  121. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/terminal/terminal.py +0 -0
  122. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/terminal/terminal_protocol.py +0 -0
  123. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/text/__init__.py +0 -0
  124. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/text/text.py +0 -0
  125. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/text/text_config.py +0 -0
  126. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/timer/__init__.py +0 -0
  127. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/timer/timer.py +0 -0
  128. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/timer/timer_config.py +0 -0
  129. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/timer/timer_status.py +0 -0
  130. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/total_rate/__init__.py +0 -0
  131. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/total_rate/total_rate.py +0 -0
  132. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/total_rate/total_rate_config.py +0 -0
  133. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/total_rate/total_rate_status.py +0 -0
  134. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/windowed_rate/__init__.py +0 -0
  135. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/windowed_rate/windowed_rate.py +0 -0
  136. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/components/windowed_rate/windowed_rate_config.py +0 -0
  137. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/config/__init__.py +0 -0
  138. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/config/mode.py +0 -0
  139. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/config/widget_fit_dimensions.py +0 -0
  140. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/state/__init__.py +0 -0
  141. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/state/observe.py +0 -0
  142. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/state/state_types.py +0 -0
  143. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/state/subscription_set.py +0 -0
  144. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/styling/__init__.py +0 -0
  145. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/styling/attributes/__init__.py +0 -0
  146. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/styling/attributes/attribute.py +0 -0
  147. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/styling/attributes/attributizer.py +0 -0
  148. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/styling/colors/__init__.py +0 -0
  149. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/styling/colors/color.py +0 -0
  150. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/styling/colors/colorizer.py +0 -0
  151. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/styling/colors/extended_color.py +0 -0
  152. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/styling/colors/highlight.py +0 -0
  153. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/styling/stylize.py +0 -0
  154. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/ui/styling/stylizer.py +0 -0
  155. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/utils/__init__.py +0 -0
  156. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/cocoa/utils/time_parser.py +0 -0
  157. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/example/test_cyperpunk.py +0 -0
  158. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/hyperlight_cocoa.egg-info/dependency_links.txt +0 -0
  159. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/hyperlight_cocoa.egg-info/requires.txt +0 -0
  160. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/hyperlight_cocoa.egg-info/top_level.txt +0 -0
  161. {hyperlight_cocoa-0.3.7 → hyperlight_cocoa-0.3.9}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperlight-cocoa
3
- Version: 0.3.7
3
+ Version: 0.3.9
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
@@ -49,7 +49,7 @@ Dynamic: license-file
49
49
 
50
50
  | Package | Cocoa |
51
51
  | ----------- | ----------- |
52
- | Version | 0.1.1 |
52
+ | Version | 0.3.9 |
53
53
  | Download | https://pypi.org/project/hyperlight-cocoa/ |
54
54
  | Source | https://github.com/hyper-light/cocoa |
55
55
  | Keywords | termial, ui, async, cli, graphics, ASCII |
@@ -9,7 +9,7 @@
9
9
 
10
10
  | Package | Cocoa |
11
11
  | ----------- | ----------- |
12
- | Version | 0.1.1 |
12
+ | Version | 0.3.9 |
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 |
@@ -1,3 +1,4 @@
1
+ from .arg_types import AssertPath as AssertPath
1
2
  from .arg_types import AssertSet as AssertSet
2
3
  from .arg_types import Chain as Chain
3
4
  from .arg_types import Context as Context
@@ -5,6 +5,7 @@ from .base import is_defaultable as is_defaultable
5
5
  from .base import is_env_defaultable as is_env_defaultable
6
6
  from .base import is_required_missing_keyword_arg as is_required_missing_keyword_arg
7
7
  from .base import is_unsupported_keyword_arg as is_unsupported_keyword_arg
8
+ from .data_types import AssertPath as AssertPath
8
9
  from .data_types import AssertSet as AssertSet
9
10
  from .data_types import Context as Context
10
11
  from .data_types import Env as Env
@@ -10,6 +10,7 @@ from typing import (
10
10
  )
11
11
 
12
12
  from cocoa.cli.arg_types.data_types import (
13
+ AssertPath,
13
14
  AssertSet,
14
15
  Context,
15
16
  Env,
@@ -59,7 +60,8 @@ class KeywordArg(Generic[T]):
59
60
 
60
61
  args = get_args(data_type)
61
62
  self._complex_types: dict[
62
- AssertSet
63
+ AssertPath
64
+ | AssertSet
63
65
  | Context
64
66
  | Env
65
67
  | ImportInstance
@@ -72,7 +74,8 @@ class KeywordArg(Generic[T]):
72
74
  | RawFile,
73
75
  Callable[
74
76
  [str, type[Any]],
75
- AssertSet
77
+ AssertPath
78
+ | AssertSet
76
79
  | Context
77
80
  | Env
78
81
  | ImportInstance
@@ -85,6 +88,7 @@ class KeywordArg(Generic[T]):
85
88
  | RawFile,
86
89
  ],
87
90
  ] = {
91
+ AssertPath: lambda _, __: AssertPath(),
88
92
  AssertSet: lambda name, subtype: AssertSet(name, subtype),
89
93
  Context: lambda _, __: Context(),
90
94
  Env: lambda envar, subtype: Env(envar, subtype),
@@ -132,7 +136,7 @@ class KeywordArg(Generic[T]):
132
136
 
133
137
  elif len(args) > 0:
134
138
  base_type = args
135
-
139
+
136
140
  self.default = default
137
141
  self.group = group
138
142
  self.arg_type: KeywordArgType = arg_type
@@ -8,6 +8,7 @@ from typing import (
8
8
  )
9
9
 
10
10
  from cocoa.cli.arg_types.data_types import (
11
+ AssertPath,
11
12
  AssertSet,
12
13
  Context,
13
14
  Env,
@@ -44,7 +45,8 @@ class PositionalArg(Generic[T]):
44
45
 
45
46
  args = get_args(data_type)
46
47
  self._complex_types: dict[
47
- AssertSet
48
+ AssertPath
49
+ | AssertSet
48
50
  | Context
49
51
  | Env
50
52
  | ImportInstance
@@ -57,7 +59,8 @@ class PositionalArg(Generic[T]):
57
59
  | RawFile,
58
60
  Callable[
59
61
  [str, type[Any]],
60
- AssertSet
62
+ AssertPath
63
+ | AssertSet
61
64
  | Context
62
65
  | Env
63
66
  | ImportInstance
@@ -70,6 +73,7 @@ class PositionalArg(Generic[T]):
70
73
  | RawFile,
71
74
  ],
72
75
  ] = {
76
+ AssertPath: lambda _, __: AssertPath(),
73
77
  AssertSet: lambda name, subtype: AssertSet(name, subtype),
74
78
  Context: lambda _, __: Context(),
75
79
  Env: lambda envar, subtype: Env(envar, subtype),
@@ -110,7 +114,7 @@ class PositionalArg(Generic[T]):
110
114
 
111
115
  elif len(args) > 0:
112
116
  base_type = args
113
-
117
+
114
118
  self._data_type = [
115
119
  subtype_type.__name__ if hasattr(subtype_type, "__name__") else subtype_type
116
120
  for subtype_type in base_type
@@ -1,3 +1,4 @@
1
+ from .assert_path import AssertPath as AssertPath
1
2
  from .assert_set import AssertSet as AssertSet
2
3
  from .context import Context as Context
3
4
  from .env import Env as Env
@@ -0,0 +1,61 @@
1
+ from __future__ import annotations
2
+
3
+ import asyncio
4
+ import os
5
+ import pathlib
6
+
7
+ from typing import Any, TypeVar
8
+
9
+
10
+ T = TypeVar("T")
11
+
12
+
13
+ class AssertPath:
14
+ def __init__(self):
15
+ super().__init__()
16
+
17
+ self.data: str | None = None
18
+
19
+ self._data_types = [str]
20
+
21
+ self._types = [str]
22
+
23
+ self._loop = asyncio.get_event_loop()
24
+
25
+ def __contains__(self, value: Any):
26
+ return type(value) in [self._types]
27
+
28
+ @property
29
+ def data_type(self):
30
+ return ", ".join(self._data_types)
31
+
32
+ async def parse(self, arg: str | None = None) -> T | Exception:
33
+ path, valid = await self._loop.run_in_executor(
34
+ None,
35
+ self._validate_path,
36
+ arg,
37
+ )
38
+ if isinstance(path, Exception):
39
+ return path
40
+
41
+ elif valid is False:
42
+ return Exception(f'Path {arg} does not exist')
43
+
44
+ self.data = path
45
+
46
+ return self
47
+
48
+ def _validate_path(self, arg: str | None):
49
+
50
+ try:
51
+ path = str(pathlib.Path(arg).absolute().resolve())
52
+
53
+ if os.path.exists(path) is False:
54
+ return path, False
55
+
56
+ return path, True
57
+
58
+ except Exception as e:
59
+ return Exception(
60
+ f"encountered unexpected error {str(e)} validating path {arg}"
61
+ )
@@ -4,6 +4,7 @@ import asyncio
4
4
  from typing import Any, Callable, Generic, TypeVar, TypeVarTuple, get_args, get_origin
5
5
 
6
6
  from cocoa.cli.arg_types.data_types import (
7
+ AssertPath,
7
8
  AssertSet,
8
9
  Env,
9
10
  ImportInstance,
@@ -39,7 +40,8 @@ class Chain(Generic[*T]):
39
40
  self.data: Any | None = None
40
41
 
41
42
  self._complex_types: dict[
42
- AssertSet
43
+ AssertPath
44
+ | AssertSet
43
45
  | Env
44
46
  | ImportInstance
45
47
  | ImportType
@@ -49,7 +51,8 @@ class Chain(Generic[*T]):
49
51
  | RawFile,
50
52
  Callable[
51
53
  [str, type[Any]],
52
- AssertSet
54
+ AssertPath
55
+ | AssertSet
53
56
  | Env
54
57
  | ImportInstance
55
58
  | ImportType
@@ -59,6 +62,7 @@ class Chain(Generic[*T]):
59
62
  | RawFile,
60
63
  ],
61
64
  ] = {
65
+ AssertPath: lambda _, __: AssertPath(),
62
66
  AssertSet: lambda name, subtype: AssertSet(name, subtype),
63
67
  Env: lambda envar, subtype: Env(envar, subtype),
64
68
  ImportInstance: lambda _, subtype: ImportInstance(subtype),
@@ -4,6 +4,7 @@ import asyncio
4
4
  from typing import Any, Callable, Generic, TypeVar, TypeVarTuple, get_args, get_origin
5
5
 
6
6
  from cocoa.cli.arg_types.data_types import (
7
+ AssertPath,
7
8
  AssertSet,
8
9
  Env,
9
10
  ImportInstance,
@@ -39,7 +40,8 @@ class Map(Generic[*T]):
39
40
  self.data: Any | None = None
40
41
 
41
42
  self._complex_types: dict[
42
- AssertSet
43
+ AssertPath
44
+ | AssertSet
43
45
  | Env
44
46
  | ImportInstance
45
47
  | ImportType
@@ -49,7 +51,8 @@ class Map(Generic[*T]):
49
51
  | RawFile,
50
52
  Callable[
51
53
  [str, type[Any]],
52
- AssertSet
54
+ AssertPath
55
+ | AssertSet
53
56
  | Env
54
57
  | ImportInstance
55
58
  | ImportType
@@ -59,6 +62,7 @@ class Map(Generic[*T]):
59
62
  | RawFile,
60
63
  ],
61
64
  ] = {
65
+ AssertPath: lambda _, __: AssertPath(),
62
66
  AssertSet: lambda name, subtype: AssertSet(name, subtype),
63
67
  Env: lambda envar, subtype: Env(envar, subtype),
64
68
  ImportInstance: lambda _, subtype: ImportInstance(subtype),
@@ -1,6 +1,12 @@
1
1
  import inspect
2
- from typing import Any, Callable, get_args, get_origin
3
- from types import UnionType, Literal
2
+ from typing import (
3
+ Any,
4
+ Callable,
5
+ get_args,
6
+ get_origin,
7
+ Literal,
8
+ )
9
+ from types import UnionType
4
10
  from .arg_types import (
5
11
  Context,
6
12
  KeywordArg,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperlight-cocoa
3
- Version: 0.3.7
3
+ Version: 0.3.9
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
@@ -49,7 +49,7 @@ Dynamic: license-file
49
49
 
50
50
  | Package | Cocoa |
51
51
  | ----------- | ----------- |
52
- | Version | 0.1.1 |
52
+ | Version | 0.3.9 |
53
53
  | Download | https://pypi.org/project/hyperlight-cocoa/ |
54
54
  | Source | https://github.com/hyper-light/cocoa |
55
55
  | Keywords | termial, ui, async, cli, graphics, ASCII |
@@ -12,6 +12,7 @@ cocoa/cli/arg_types/base/__init__.py
12
12
  cocoa/cli/arg_types/base/keyword_arg.py
13
13
  cocoa/cli/arg_types/base/positional_arg.py
14
14
  cocoa/cli/arg_types/data_types/__init__.py
15
+ cocoa/cli/arg_types/data_types/assert_path.py
15
16
  cocoa/cli/arg_types/data_types/assert_set.py
16
17
  cocoa/cli/arg_types/data_types/context.py
17
18
  cocoa/cli/arg_types/data_types/env.py
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "hyperlight-cocoa"
9
- version = "0.3.7"
9
+ version = "0.3.9"
10
10
  requires-python = ">=3.11"
11
11
  description = "Create beautiful, performant terminal UI and CLI apps."
12
12
  readme = "README.md"