hspylib-clitt 0.9.140__tar.gz → 0.9.143__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.

Potentially problematic release.


This version of hspylib-clitt might be problematic. Click here for more details.

Files changed (105) hide show
  1. {hspylib_clitt-0.9.140/hspylib_clitt.egg-info → hspylib_clitt-0.9.143}/PKG-INFO +17 -4
  2. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/README.md +1 -1
  3. hspylib_clitt-0.9.143/clitt/.version +1 -0
  4. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/__init__.py +2 -2
  5. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/__init__.py +2 -2
  6. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/appman/__init__.py +2 -2
  7. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/appman/templates/__init__.py +2 -2
  8. hspylib_clitt-0.9.143/clitt/addons/appman/templates/__pycache__/__init__.cpython-311.pyc +0 -0
  9. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/widman/__init__.py +2 -2
  10. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/widman/widgets/__init__.py +2 -2
  11. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/widman/widgets/widget_free.py +19 -9
  12. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/__init__.py +2 -2
  13. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/exception/__init__.py +2 -2
  14. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/icons/__init__.py +2 -2
  15. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/icons/emojis/__init__.py +2 -2
  16. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/icons/font_awesome/__init__.py +2 -2
  17. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/term/__init__.py +2 -2
  18. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/__init__.py +2 -2
  19. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/line_input/__init__.py +2 -2
  20. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/line_input/keyboard_input.py +8 -2
  21. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/line_input/line_input.py +4 -1
  22. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/mchoose/__init__.py +2 -2
  23. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/mdashboard/__init__.py +2 -2
  24. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/menu/__init__.py +2 -2
  25. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/minput/__init__.py +2 -2
  26. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/mselect/__init__.py +2 -2
  27. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/table/__init__.py +2 -2
  28. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/utils/__init__.py +2 -2
  29. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143/hspylib_clitt.egg-info}/PKG-INFO +17 -4
  30. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/hspylib_clitt.egg-info/SOURCES.txt +1 -0
  31. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/hspylib_clitt.egg-info/requires.txt +1 -1
  32. hspylib_clitt-0.9.140/clitt/.version +0 -1
  33. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/MANIFEST.in +0 -0
  34. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/__classpath__.py +0 -0
  35. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/__main__.py +0 -0
  36. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/appman/appman.py +0 -0
  37. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/appman/appman_enums.py +0 -0
  38. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/appman/templates/build.gradle.tpl +0 -0
  39. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/appman/templates/classpath.py.tpl +0 -0
  40. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/appman/templates/dependencies.hspd.tpl +0 -0
  41. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/appman/templates/gitignore.tpl +0 -0
  42. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/appman/templates/main.py.tpl +0 -0
  43. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/appman/templates/main_qt.py.tpl +0 -0
  44. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/appman/templates/main_qt_view.py.tpl +0 -0
  45. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/appman/templates/main_qt_view.ui.tpl +0 -0
  46. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/appman/templates/run.sh.tpl +0 -0
  47. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/appman/templates/test_main.py.tpl +0 -0
  48. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/appman/templates/usage.txt.tpl +0 -0
  49. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/appman/templates/widget.py.tpl +0 -0
  50. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/widman/widget.py +0 -0
  51. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/widman/widget_entry.py +0 -0
  52. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/widman/widgets/widget_punch.py +0 -0
  53. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/widman/widgets/widget_send_msg.py +0 -0
  54. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/widman/widgets/widget_time_calc.py +0 -0
  55. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/addons/widman/widman.py +0 -0
  56. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/exception/exceptions.py +0 -0
  57. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/icons/emojis/emojis.py +0 -0
  58. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/icons/emojis/face_smiling.py +0 -0
  59. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/icons/font_awesome/app_icons.py +0 -0
  60. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/icons/font_awesome/awesome.py +0 -0
  61. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/icons/font_awesome/dashboard_icons.py +0 -0
  62. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/icons/font_awesome/form_icons.py +0 -0
  63. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/icons/font_awesome/game_icons.py +0 -0
  64. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/icons/font_awesome/nav_icons.py +0 -0
  65. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/icons/font_awesome/trickplay_icons.py +0 -0
  66. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/icons/font_awesome/widget_icons.py +0 -0
  67. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/preferences.py +0 -0
  68. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/term/commons.py +0 -0
  69. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/term/cursor.py +0 -0
  70. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/term/screen.py +0 -0
  71. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/term/terminal.py +0 -0
  72. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/mchoose/mchoose.py +0 -0
  73. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/mchoose/menu_choose.py +0 -0
  74. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/mdashboard/dashboard_builder.py +0 -0
  75. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/mdashboard/dashboard_item.py +0 -0
  76. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/mdashboard/mdashboard.py +0 -0
  77. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/mdashboard/menu_dashboard.py +0 -0
  78. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/menu/tui_menu.py +0 -0
  79. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/menu/tui_menu_action.py +0 -0
  80. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/menu/tui_menu_factory.py +0 -0
  81. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/menu/tui_menu_item.py +0 -0
  82. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/menu/tui_menu_ui.py +0 -0
  83. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/menu/tui_menu_view.py +0 -0
  84. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/minput/access_type.py +0 -0
  85. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/minput/field_builder.py +0 -0
  86. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/minput/form_builder.py +0 -0
  87. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/minput/form_field.py +0 -0
  88. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/minput/input_type.py +0 -0
  89. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/minput/input_validator.py +0 -0
  90. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/minput/menu_input.py +0 -0
  91. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/minput/minput.py +0 -0
  92. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/minput/minput_utils.py +0 -0
  93. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/mselect/menu_select.py +0 -0
  94. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/mselect/mselect.py +0 -0
  95. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/table/table_enums.py +0 -0
  96. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/table/table_renderer.py +0 -0
  97. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/tui_application.py +0 -0
  98. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/tui_component.py +0 -0
  99. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/core/tui/tui_preferences.py +0 -0
  100. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/utils/git_utils.py +0 -0
  101. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/clitt/welcome.txt +0 -0
  102. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/hspylib_clitt.egg-info/dependency_links.txt +0 -0
  103. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/hspylib_clitt.egg-info/top_level.txt +0 -0
  104. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/setup.cfg +0 -0
  105. {hspylib_clitt-0.9.140 → hspylib_clitt-0.9.143}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: hspylib-clitt
3
- Version: 0.9.140
3
+ Version: 0.9.143
4
4
  Summary: HsPyLib - CLI Terminal Tools
5
5
  Home-page: https://github.com/yorevs/hspylib
6
6
  Author: Hugo Saporetti Junior
@@ -29,7 +29,20 @@ Requires-Dist: hspylib
29
29
  Requires-Dist: pyperclip>=1.9.0
30
30
  Requires-Dist: urllib3>=1.26.20
31
31
  Requires-Dist: emoji>=2.12.1
32
- Requires-Dist: rich>=13.8.1
32
+ Requires-Dist: rich>=13.9.4
33
+ Dynamic: author
34
+ Dynamic: author-email
35
+ Dynamic: classifier
36
+ Dynamic: description
37
+ Dynamic: description-content-type
38
+ Dynamic: home-page
39
+ Dynamic: keywords
40
+ Dynamic: license
41
+ Dynamic: platform
42
+ Dynamic: project-url
43
+ Dynamic: requires-dist
44
+ Dynamic: requires-python
45
+ Dynamic: summary
33
46
 
34
47
  <img src="https://iili.io/HYBJFA7.png" width="64" height="64" align="right" />
35
48
 
@@ -41,7 +54,7 @@ Requires-Dist: rich>=13.8.1
41
54
  [![Gitter](https://badgen.net/badge/icon/gitter?icon=gitter&label)](https://gitter.im/hspylib/community)
42
55
  [![Donate](https://badgen.net/badge/paypal/donate/yellow)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J5CDEFLF6M3H4)
43
56
  [![License](https://badgen.net/badge/license/MIT/gray)](LICENSE.md)
44
- [![Release](https://badgen.net/badge/release/v0.9.140/gray)](docs/CHANGELOG.md#unreleased)
57
+ [![Release](https://badgen.net/badge/release/v0.9.143/gray)](docs/CHANGELOG.md#unreleased)
45
58
  [![build-and-test](https://github.com/yorevs/hspylib/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/yorevs/hspylib/actions/workflows/build-and-test.yml)
46
59
 
47
60
  HsPyLib is not just a Python library; it's a gateway to elevating your programming experience to new heights. Built on
@@ -8,7 +8,7 @@
8
8
  [![Gitter](https://badgen.net/badge/icon/gitter?icon=gitter&label)](https://gitter.im/hspylib/community)
9
9
  [![Donate](https://badgen.net/badge/paypal/donate/yellow)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J5CDEFLF6M3H4)
10
10
  [![License](https://badgen.net/badge/license/MIT/gray)](LICENSE.md)
11
- [![Release](https://badgen.net/badge/release/v0.9.140/gray)](docs/CHANGELOG.md#unreleased)
11
+ [![Release](https://badgen.net/badge/release/v0.9.143/gray)](docs/CHANGELOG.md#unreleased)
12
12
  [![build-and-test](https://github.com/yorevs/hspylib/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/yorevs/hspylib/actions/workflows/build-and-test.yml)
13
13
 
14
14
  HsPyLib is not just a Python library; it's a gateway to elevating your programming experience to new heights. Built on
@@ -0,0 +1 @@
1
+ 0.9.143
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt
6
6
  """Package initialization."""
@@ -10,4 +10,4 @@ __all__ = [
10
10
  'core',
11
11
  'utils'
12
12
  ]
13
- __version__ = '0.9.140'
13
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.addons
6
6
  """Package initialization."""
@@ -9,4 +9,4 @@ __all__ = [
9
9
  'appman',
10
10
  'widman'
11
11
  ]
12
- __version__ = '0.9.140'
12
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.addons.appman
6
6
  """Package initialization."""
@@ -10,4 +10,4 @@ __all__ = [
10
10
  'appman_enums',
11
11
  'templates'
12
12
  ]
13
- __version__ = '0.9.140'
13
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.addons.appman.templates
6
6
  """Package initialization."""
@@ -8,4 +8,4 @@
8
8
  __all__ = [
9
9
 
10
10
  ]
11
- __version__ = '0.9.140'
11
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.addons.widman
6
6
  """Package initialization."""
@@ -11,4 +11,4 @@ __all__ = [
11
11
  'widgets',
12
12
  'widman'
13
13
  ]
14
- __version__ = '0.9.140'
14
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.addons.widman.widgets
6
6
  """Package initialization."""
@@ -11,4 +11,4 @@ __all__ = [
11
11
  'widget_send_msg',
12
12
  'widget_time_calc'
13
13
  ]
14
- __version__ = '0.9.140'
14
+ __version__ = '0.9.143'
@@ -12,6 +12,8 @@
12
12
 
13
13
  Copyright·(c)·2024,·HSPyLib
14
14
  """
15
+ import platform
16
+
15
17
  from clitt.addons.widman.widget import Widget
16
18
  from clitt.core.icons.font_awesome.widget_icons import WidgetIcons
17
19
  from clitt.core.term.terminal import Terminal
@@ -43,7 +45,7 @@ class WidgetFree(Widget):
43
45
  self._report_interval = 1.5
44
46
  self._exit_code = ExitStatus.SUCCESS
45
47
 
46
- def execute(self, *args) -> ExitStatus:
48
+ def execute(self, *_) -> ExitStatus:
47
49
  with futures.ThreadPoolExecutor() as executor:
48
50
  done = False
49
51
  while not done and not Keyboard.kbhit():
@@ -57,8 +59,18 @@ class WidgetFree(Widget):
57
59
  @staticmethod
58
60
  def _report_usage() -> bool:
59
61
  """Display the memory usage for the cycle."""
62
+ os_type: str
60
63
  ps, _, ec1 = Terminal.shell_exec("ps -caxm -orss,comm") # Get process info
61
- vm, _, ec2 = Terminal.shell_exec("vm_stat") # Grabbing memory characteristics
64
+
65
+ if platform.system() == "Darwin":
66
+ os_type = "Darwin"
67
+ vm, _, ec2 = Terminal.shell_exec("vm_stat") # macOS memory characteristics
68
+ elif platform.system() == "Linux":
69
+ os_type = "Linux"
70
+ vm, _, ec2 = Terminal.shell_exec("free -m") # Linux memory characteristics
71
+ else:
72
+ os_type = "Unknown"
73
+ vm, ec2 = "", 1
62
74
 
63
75
  if ec1 == ExitStatus.SUCCESS and ec2 == ExitStatus.SUCCESS and ps:
64
76
  process_lines = ps.split("\n") # Iterate processes
@@ -88,22 +100,20 @@ class WidgetFree(Widget):
88
100
  inactive, iu = human_readable_bytes(vm_stats["Pages inactive"])
89
101
  free, fu = human_readable_bytes(vm_stats["Pages free"])
90
102
  real, ru = human_readable_bytes(rss_total) # Total memory
103
+ os_info = f"%ORANGE%[{os_type}] Reporting system memory usage%NC%"
91
104
 
92
105
  sysout(
93
- dedent(
94
- f"""
106
+ dedent(f"""\
95
107
  %HOM%%ED2%%MOD(0)%
96
- %ORANGE%Reporting system memory usage:%NC%
97
- {'-' * 30}
108
+ {os_info:^52s}
109
+ {'-=' * 20}
98
110
  %GREEN% Wired Memory: {wired:6s} {wu:2s}
99
111
  %GREEN% Active Memory: {active:6s} {au:2s}
100
112
  %GREEN%Inactive Memory: {inactive:6s} {iu:2s}
101
113
  %GREEN% Free Memory: {free:6s} {fu:2s}
102
114
  %GREEN% Real Memory: {real:6s} {ru:2s}
103
115
 
104
- %YELLOW%Press [Enter] to exit ..."""
105
- )
106
- )
116
+ %YELLOW%Press [Enter] to exit ..."""))
107
117
 
108
118
  return True
109
119
 
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.core
6
6
  """Package initialization."""
@@ -12,4 +12,4 @@ __all__ = [
12
12
  'term',
13
13
  'tui'
14
14
  ]
15
- __version__ = '0.9.140'
15
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.core.exception
6
6
  """Package initialization."""
@@ -8,4 +8,4 @@
8
8
  __all__ = [
9
9
  'exceptions'
10
10
  ]
11
- __version__ = '0.9.140'
11
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.core.icons
6
6
  """Package initialization."""
@@ -9,4 +9,4 @@ __all__ = [
9
9
  'emojis',
10
10
  'font_awesome'
11
11
  ]
12
- __version__ = '0.9.140'
12
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.core.icons.emojis
6
6
  """Package initialization."""
@@ -9,4 +9,4 @@ __all__ = [
9
9
  'emojis',
10
10
  'face_smiling'
11
11
  ]
12
- __version__ = '0.9.140'
12
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.core.icons.font_awesome
6
6
  """Package initialization."""
@@ -15,4 +15,4 @@ __all__ = [
15
15
  'trickplay_icons',
16
16
  'widget_icons'
17
17
  ]
18
- __version__ = '0.9.140'
18
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.core.term
6
6
  """Package initialization."""
@@ -11,4 +11,4 @@ __all__ = [
11
11
  'screen',
12
12
  'terminal'
13
13
  ]
14
- __version__ = '0.9.140'
14
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.core.tui
6
6
  """Package initialization."""
@@ -17,4 +17,4 @@ __all__ = [
17
17
  'tui_component',
18
18
  'tui_preferences'
19
19
  ]
20
- __version__ = '0.9.140'
20
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.core.tui.line_input
6
6
  """Package initialization."""
@@ -9,4 +9,4 @@ __all__ = [
9
9
  'keyboard_input',
10
10
  'line_input'
11
11
  ]
12
- __version__ = '0.9.140'
12
+ __version__ = '0.9.143'
@@ -139,7 +139,8 @@ class KeyboardInput(TUIComponent):
139
139
  prompt_color: VtColor = VtColor.NC,
140
140
  text_color: VtColor = VtColor.NC,
141
141
  navbar_enable: bool = False,
142
- case_insensitive: bool = True
142
+ case_insensitive: bool = True,
143
+ markdown: bool = False,
143
144
  ):
144
145
  self._HISTORY[-1] = ""
145
146
  self._HIST_INDEX = max(0, len(self._HISTORY) - 1)
@@ -148,6 +149,7 @@ class KeyboardInput(TUIComponent):
148
149
  self._prompt_color: VtColor = prompt_color
149
150
  self._text_color: VtColor = text_color
150
151
  self._navbar_enable: bool = navbar_enable
152
+ self._markdown = markdown
151
153
  self._case_insensitive: bool = case_insensitive
152
154
  self._offset: Position = 0, 0
153
155
  self._input_index: int = 0
@@ -188,6 +190,10 @@ class KeyboardInput(TUIComponent):
188
190
  def bindings(self) -> KeyBinding:
189
191
  return self._bindings
190
192
 
193
+ @property
194
+ def markdown(self) -> bool:
195
+ return self._markdown
196
+
191
197
  def execute(self) -> Optional[str | Keyboard]:
192
198
  keypress = self._loop(cleanup=False) or Keyboard.VK_ESC
193
199
  if keypress.isEnter():
@@ -239,7 +245,7 @@ class KeyboardInput(TUIComponent):
239
245
  self.cursor.move(self._offset[0], Direction.UP)
240
246
  self.cursor.move(self._offset[1], Direction.LEFT)
241
247
  self.cursor.erase(Direction.DOWN)
242
- self.write(self.prompt)
248
+ self.write(self.prompt, markdown=self.markdown)
243
249
  if self.text:
244
250
  self.write(self.text)
245
251
  self._render_suggestions()
@@ -25,6 +25,7 @@ def line_input(
25
25
  text_color: VtColor = VtColor.NC,
26
26
  navbar_enable: bool = False,
27
27
  case_insensitive: bool = True,
28
+ markdown: bool = False,
28
29
  ) -> Optional[str | Keyboard]:
29
30
  """Read a string from standard input.
30
31
  :param prompt: The message to be displayed to the user.
@@ -33,6 +34,8 @@ def line_input(
33
34
  :param text_color: The color of the input text.
34
35
  :param navbar_enable: Whether to display the navbar or not.
35
36
  :param case_insensitive: Whether suggestions are case insensitive or not.
37
+ :param markdown: Whether to render rich markdown text.
36
38
  """
37
- ptt = KeyboardInput(prompt, placeholder, prompt_color, text_color, navbar_enable, case_insensitive)
39
+ ptt = KeyboardInput(
40
+ prompt, placeholder, prompt_color, text_color, navbar_enable, case_insensitive, markdown)
38
41
  return ptt.execute()
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.core.tui.mchoose
6
6
  """Package initialization."""
@@ -9,4 +9,4 @@ __all__ = [
9
9
  'mchoose',
10
10
  'menu_choose'
11
11
  ]
12
- __version__ = '0.9.140'
12
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.core.tui.mdashboard
6
6
  """Package initialization."""
@@ -11,4 +11,4 @@ __all__ = [
11
11
  'mdashboard',
12
12
  'menu_dashboard'
13
13
  ]
14
- __version__ = '0.9.140'
14
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.core.tui.menu
6
6
  """Package initialization."""
@@ -13,4 +13,4 @@ __all__ = [
13
13
  'tui_menu_ui',
14
14
  'tui_menu_view'
15
15
  ]
16
- __version__ = '0.9.140'
16
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.core.tui.minput
6
6
  """Package initialization."""
@@ -16,4 +16,4 @@ __all__ = [
16
16
  'minput',
17
17
  'minput_utils'
18
18
  ]
19
- __version__ = '0.9.140'
19
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.core.tui.mselect
6
6
  """Package initialization."""
@@ -9,4 +9,4 @@ __all__ = [
9
9
  'menu_select',
10
10
  'mselect'
11
11
  ]
12
- __version__ = '0.9.140'
12
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.core.tui.table
6
6
  """Package initialization."""
@@ -9,4 +9,4 @@ __all__ = [
9
9
  'table_enums',
10
10
  'table_renderer'
11
11
  ]
12
- __version__ = '0.9.140'
12
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
1
  # _*_ coding: utf-8 _*_
2
2
  #
3
- # hspylib-clitt v0.9.140
3
+ # hspylib-clitt v0.9.143
4
4
  #
5
5
  # Package: main.clitt.utils
6
6
  """Package initialization."""
@@ -8,4 +8,4 @@
8
8
  __all__ = [
9
9
  'git_utils'
10
10
  ]
11
- __version__ = '0.9.140'
11
+ __version__ = '0.9.143'
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: hspylib-clitt
3
- Version: 0.9.140
3
+ Version: 0.9.143
4
4
  Summary: HsPyLib - CLI Terminal Tools
5
5
  Home-page: https://github.com/yorevs/hspylib
6
6
  Author: Hugo Saporetti Junior
@@ -29,7 +29,20 @@ Requires-Dist: hspylib
29
29
  Requires-Dist: pyperclip>=1.9.0
30
30
  Requires-Dist: urllib3>=1.26.20
31
31
  Requires-Dist: emoji>=2.12.1
32
- Requires-Dist: rich>=13.8.1
32
+ Requires-Dist: rich>=13.9.4
33
+ Dynamic: author
34
+ Dynamic: author-email
35
+ Dynamic: classifier
36
+ Dynamic: description
37
+ Dynamic: description-content-type
38
+ Dynamic: home-page
39
+ Dynamic: keywords
40
+ Dynamic: license
41
+ Dynamic: platform
42
+ Dynamic: project-url
43
+ Dynamic: requires-dist
44
+ Dynamic: requires-python
45
+ Dynamic: summary
33
46
 
34
47
  <img src="https://iili.io/HYBJFA7.png" width="64" height="64" align="right" />
35
48
 
@@ -41,7 +54,7 @@ Requires-Dist: rich>=13.8.1
41
54
  [![Gitter](https://badgen.net/badge/icon/gitter?icon=gitter&label)](https://gitter.im/hspylib/community)
42
55
  [![Donate](https://badgen.net/badge/paypal/donate/yellow)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J5CDEFLF6M3H4)
43
56
  [![License](https://badgen.net/badge/license/MIT/gray)](LICENSE.md)
44
- [![Release](https://badgen.net/badge/release/v0.9.140/gray)](docs/CHANGELOG.md#unreleased)
57
+ [![Release](https://badgen.net/badge/release/v0.9.143/gray)](docs/CHANGELOG.md#unreleased)
45
58
  [![build-and-test](https://github.com/yorevs/hspylib/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/yorevs/hspylib/actions/workflows/build-and-test.yml)
46
59
 
47
60
  HsPyLib is not just a Python library; it's a gateway to elevating your programming experience to new heights. Built on
@@ -23,6 +23,7 @@ clitt/addons/appman/templates/run.sh.tpl
23
23
  clitt/addons/appman/templates/test_main.py.tpl
24
24
  clitt/addons/appman/templates/usage.txt.tpl
25
25
  clitt/addons/appman/templates/widget.py.tpl
26
+ clitt/addons/appman/templates/__pycache__/__init__.cpython-311.pyc
26
27
  clitt/addons/widman/__init__.py
27
28
  clitt/addons/widman/widget.py
28
29
  clitt/addons/widman/widget_entry.py
@@ -2,4 +2,4 @@ hspylib
2
2
  pyperclip>=1.9.0
3
3
  urllib3>=1.26.20
4
4
  emoji>=2.12.1
5
- rich>=13.8.1
5
+ rich>=13.9.4
@@ -1 +0,0 @@
1
- 0.9.140