hspylib-clitt 0.9.127__tar.gz → 0.9.129__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.
- {hspylib_clitt-0.9.127/hspylib_clitt.egg-info → hspylib_clitt-0.9.129}/PKG-INFO +2 -4
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/README.md +1 -3
- hspylib_clitt-0.9.129/clitt/.version +1 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/__classpath__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/__main__.py +4 -4
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/appman/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/appman/appman.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/appman/templates/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/widman/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/widman/widgets/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/widman/widman.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/exception/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/icons/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/icons/emojis/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/icons/font_awesome/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/term/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/term/cursor.py +17 -7
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/term/terminal.py +7 -3
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/line_input/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/line_input/keyboard_input.py +84 -77
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/mchoose/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/mdashboard/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/menu/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/minput/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/mselect/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/table/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/tui_application.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/tui_component.py +28 -18
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/utils/__init__.py +2 -2
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129/hspylib_clitt.egg-info}/PKG-INFO +2 -4
- hspylib_clitt-0.9.127/clitt/.version +0 -1
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/MANIFEST.in +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/appman/appman_enums.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/appman/templates/build.gradle.tpl +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/appman/templates/classpath.py.tpl +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/appman/templates/dependencies.hspd.tpl +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/appman/templates/gitignore.tpl +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/appman/templates/main.py.tpl +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/appman/templates/main_qt.py.tpl +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/appman/templates/main_qt_view.py.tpl +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/appman/templates/main_qt_view.ui.tpl +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/appman/templates/run.sh.tpl +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/appman/templates/test_main.py.tpl +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/appman/templates/usage.txt.tpl +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/appman/templates/widget.py.tpl +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/widman/widget.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/widman/widget_entry.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/widman/widgets/widget_free.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/widman/widgets/widget_punch.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/widman/widgets/widget_send_msg.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/addons/widman/widgets/widget_time_calc.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/exception/exceptions.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/icons/emojis/emojis.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/icons/emojis/face_smiling.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/icons/font_awesome/app_icons.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/icons/font_awesome/awesome.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/icons/font_awesome/dashboard_icons.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/icons/font_awesome/form_icons.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/icons/font_awesome/game_icons.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/icons/font_awesome/nav_icons.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/icons/font_awesome/trickplay_icons.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/icons/font_awesome/widget_icons.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/preferences.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/term/commons.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/term/screen.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/line_input/line_input.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/mchoose/mchoose.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/mchoose/menu_choose.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/mdashboard/dashboard_builder.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/mdashboard/dashboard_item.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/mdashboard/mdashboard.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/mdashboard/menu_dashboard.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/menu/tui_menu.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/menu/tui_menu_action.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/menu/tui_menu_factory.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/menu/tui_menu_item.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/menu/tui_menu_ui.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/menu/tui_menu_view.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/minput/access_type.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/minput/field_builder.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/minput/form_builder.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/minput/form_field.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/minput/input_type.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/minput/input_validator.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/minput/menu_input.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/minput/minput.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/minput/minput_utils.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/mselect/menu_select.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/mselect/mselect.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/table/table_enums.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/table/table_renderer.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/core/tui/tui_preferences.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/utils/git_utils.py +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/clitt/welcome.txt +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/hspylib_clitt.egg-info/SOURCES.txt +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/hspylib_clitt.egg-info/dependency_links.txt +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/hspylib_clitt.egg-info/requires.txt +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/hspylib_clitt.egg-info/top_level.txt +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/setup.cfg +0 -0
- {hspylib_clitt-0.9.127 → hspylib_clitt-0.9.129}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: hspylib-clitt
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.129
|
|
4
4
|
Summary: HsPyLib - CLI Terminal Tools
|
|
5
5
|
Home-page: https://github.com/yorevs/hspylib
|
|
6
6
|
Author: Hugo Saporetti Junior
|
|
@@ -40,7 +40,7 @@ Requires-Dist: emoji>=2.12.1
|
|
|
40
40
|
[](https://gitter.im/hspylib/community)
|
|
41
41
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J5CDEFLF6M3H4)
|
|
42
42
|
[](LICENSE.md)
|
|
43
|
-
[](docs/CHANGELOG.md#unreleased)
|
|
44
44
|
[](https://github.com/yorevs/hspylib/actions/workflows/build-and-test.yml)
|
|
45
45
|
|
|
46
46
|
HsPyLib is not just a Python library; it's a gateway to elevating your programming experience to new heights. Built on
|
|
@@ -249,7 +249,6 @@ if __name__ == "__main__":
|
|
|
249
249
|
|
|
250
250
|
## PyPi Modules
|
|
251
251
|
|
|
252
|
-
- [A Pivotal Cloud Foundry](https://pypi.org/project/hspylib-cfman) application tool.
|
|
253
252
|
- [A CLI Terminal](https://pypi.org/project/hspylib-clitt) tools.
|
|
254
253
|
- [Datasource](https://pypi.org/project/hspylib-datasource) framework.
|
|
255
254
|
- [A Firebase](https://pypi.org/project/hspylib-firebase) integration tool.
|
|
@@ -303,7 +302,6 @@ Additional modules that can also be installed:
|
|
|
303
302
|
- [CLItt](https://pypi.org/project/hspylib-clitt) : `# python3 -m pip install hspylib-clitt` to install HsPyLib CLI terminal tools.
|
|
304
303
|
- [Firebase](https://pypi.org/project/hspylib-firebase) : `# python3 -m pip install hspylib-firebase` to install HsPyLib Firebase application.
|
|
305
304
|
- [Vault](https://pypi.org/project/hspylib-vault) : `# python3 -m pip install hspylib-vault` to install HsPyLib Vault application.
|
|
306
|
-
- [CFMan](https://pypi.org/project/hspylib-cfman) : `# python3 -m pip install hspylib-cfman` to install CloudFoundry manager.
|
|
307
305
|
- [Kafman](https://pypi.org/project/hspylib-kafman) : `# python3 -m pip install hspylib-kafman` to install Kafka manager.
|
|
308
306
|
- [Datasource](https://pypi.org/project/hspylib-datasource) : `# python3 -m pip install hspylib-datasource` to install datasource helpers.
|
|
309
307
|
- [HQT](https://pypi.org/project/hspylib-hqt) : `# python3 -m pip install hspylib-hqt` to install HsPyLib PyQt framework.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[](https://gitter.im/hspylib/community)
|
|
9
9
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J5CDEFLF6M3H4)
|
|
10
10
|
[](LICENSE.md)
|
|
11
|
-
[](docs/CHANGELOG.md#unreleased)
|
|
12
12
|
[](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
|
|
@@ -217,7 +217,6 @@ if __name__ == "__main__":
|
|
|
217
217
|
|
|
218
218
|
## PyPi Modules
|
|
219
219
|
|
|
220
|
-
- [A Pivotal Cloud Foundry](https://pypi.org/project/hspylib-cfman) application tool.
|
|
221
220
|
- [A CLI Terminal](https://pypi.org/project/hspylib-clitt) tools.
|
|
222
221
|
- [Datasource](https://pypi.org/project/hspylib-datasource) framework.
|
|
223
222
|
- [A Firebase](https://pypi.org/project/hspylib-firebase) integration tool.
|
|
@@ -271,7 +270,6 @@ Additional modules that can also be installed:
|
|
|
271
270
|
- [CLItt](https://pypi.org/project/hspylib-clitt) : `# python3 -m pip install hspylib-clitt` to install HsPyLib CLI terminal tools.
|
|
272
271
|
- [Firebase](https://pypi.org/project/hspylib-firebase) : `# python3 -m pip install hspylib-firebase` to install HsPyLib Firebase application.
|
|
273
272
|
- [Vault](https://pypi.org/project/hspylib-vault) : `# python3 -m pip install hspylib-vault` to install HsPyLib Vault application.
|
|
274
|
-
- [CFMan](https://pypi.org/project/hspylib-cfman) : `# python3 -m pip install hspylib-cfman` to install CloudFoundry manager.
|
|
275
273
|
- [Kafman](https://pypi.org/project/hspylib-kafman) : `# python3 -m pip install hspylib-kafman` to install Kafka manager.
|
|
276
274
|
- [Datasource](https://pypi.org/project/hspylib-datasource) : `# python3 -m pip install hspylib-datasource` to install datasource helpers.
|
|
277
275
|
- [HQT](https://pypi.org/project/hspylib-hqt) : `# python3 -m pip install hspylib-hqt` to install HsPyLib PyQt framework.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.9.129
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
16
|
from hspylib.core.metaclass.classpath import Classpath
|
|
17
|
-
from hspylib.core.tools.commons import
|
|
17
|
+
from hspylib.core.tools.commons import parent_path, root_dir
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class _Classpath(Classpath):
|
|
21
21
|
"""Provide a class to help locating user-defined classes, packages, sources and resources."""
|
|
22
22
|
|
|
23
23
|
def __init__(self):
|
|
24
|
-
super().__init__(
|
|
24
|
+
super().__init__(parent_path(__file__), parent_path(root_dir()), (parent_path(__file__) / "resources"))
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
# Instantiate the classpath singleton
|
|
@@ -19,7 +19,7 @@ from clitt.addons.widman.widman import WidgetManager
|
|
|
19
19
|
from clitt.core.tui.tui_application import TUIApplication
|
|
20
20
|
from hspylib.core.enums.charset import Charset
|
|
21
21
|
from hspylib.core.enums.enumeration import Enumeration
|
|
22
|
-
from hspylib.core.tools.commons import
|
|
22
|
+
from hspylib.core.tools.commons import root_dir, syserr
|
|
23
23
|
from hspylib.core.tools.text_tools import strip_linebreaks
|
|
24
24
|
from hspylib.modules.application.exit_status import ExitStatus
|
|
25
25
|
from hspylib.modules.application.version import Version
|
|
@@ -63,7 +63,7 @@ class Main(TUIApplication):
|
|
|
63
63
|
.add_option(
|
|
64
64
|
'dest-dir', 'd', 'dest-dir',
|
|
65
65
|
'the destination directory. If omitted, the current directory will be used.',
|
|
66
|
-
nargs='?', default=self.
|
|
66
|
+
nargs='?', default=self._root_dir) \
|
|
67
67
|
.add_parameter(
|
|
68
68
|
'app-name', 'the application name', nargs='?') \
|
|
69
69
|
.add_parameter(
|
|
@@ -121,7 +121,7 @@ class Main(TUIApplication):
|
|
|
121
121
|
self.get_arg("app-name"),
|
|
122
122
|
AppType.of_value(app_type),
|
|
123
123
|
list(map(AppExtension.value_of, app_ext)) if app_ext else [],
|
|
124
|
-
self.get_arg("dest-dir") or
|
|
124
|
+
self.get_arg("dest-dir") or root_dir(),
|
|
125
125
|
)
|
|
126
126
|
else:
|
|
127
127
|
args = addon.prompt()
|
|
@@ -131,7 +131,7 @@ class Main(TUIApplication):
|
|
|
131
131
|
app_ext.append(AppExtension.GRADLE)
|
|
132
132
|
if args.initialize_git:
|
|
133
133
|
app_ext.append(AppExtension.GIT)
|
|
134
|
-
addon.create(args.app_name, AppType.of_value(args.app_type), list(app_ext), args.dest_dir or
|
|
134
|
+
addon.create(args.app_name, AppType.of_value(args.app_type), list(app_ext), args.dest_dir or root_dir())
|
|
135
135
|
|
|
136
136
|
|
|
137
137
|
# Application entry point
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.129
|
|
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.
|
|
12
|
+
__version__ = '0.9.129'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.129
|
|
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.
|
|
13
|
+
__version__ = '0.9.129'
|
|
@@ -21,7 +21,7 @@ from hspylib.core.enums.http_code import HttpCode
|
|
|
21
21
|
from hspylib.core.metaclass.singleton import Singleton
|
|
22
22
|
from hspylib.core.namespace import Namespace
|
|
23
23
|
from hspylib.core.preconditions import check_argument
|
|
24
|
-
from hspylib.core.tools.commons import
|
|
24
|
+
from hspylib.core.tools.commons import parent_path, syserr, sysout
|
|
25
25
|
from hspylib.core.tools.text_tools import camelcase, ensure_endswith
|
|
26
26
|
from hspylib.modules.application.application import Application
|
|
27
27
|
from hspylib.modules.application.exit_status import ExitStatus
|
|
@@ -34,7 +34,7 @@ import os
|
|
|
34
34
|
import stat
|
|
35
35
|
import urllib3
|
|
36
36
|
|
|
37
|
-
HERE =
|
|
37
|
+
HERE = parent_path(__file__)
|
|
38
38
|
|
|
39
39
|
INITIAL_REVISION = Version.initial()
|
|
40
40
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.129
|
|
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.
|
|
14
|
+
__version__ = '0.9.129'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.129
|
|
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.
|
|
14
|
+
__version__ = '0.9.129'
|
|
@@ -19,7 +19,7 @@ from clitt.core.tui.mdashboard.mdashboard import mdashboard
|
|
|
19
19
|
from hspylib.core.exception.exceptions import WidgetExecutionError, WidgetNotFoundError
|
|
20
20
|
from hspylib.core.metaclass.singleton import Singleton
|
|
21
21
|
from hspylib.core.preconditions import check_state
|
|
22
|
-
from hspylib.core.tools.commons import
|
|
22
|
+
from hspylib.core.tools.commons import parent_path
|
|
23
23
|
from hspylib.core.tools.text_tools import camelcase
|
|
24
24
|
from hspylib.modules.application.application import Application
|
|
25
25
|
from hspylib.modules.application.exit_status import ExitStatus
|
|
@@ -28,7 +28,7 @@ import atexit
|
|
|
28
28
|
import os
|
|
29
29
|
import sys
|
|
30
30
|
|
|
31
|
-
HERE =
|
|
31
|
+
HERE = parent_path(__file__)
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
class WidgetManager(metaclass=Singleton):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.129
|
|
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.
|
|
15
|
+
__version__ = '0.9.129'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.129
|
|
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.
|
|
11
|
+
__version__ = '0.9.129'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.129
|
|
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.
|
|
12
|
+
__version__ = '0.9.129'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.129
|
|
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.
|
|
12
|
+
__version__ = '0.9.129'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.129
|
|
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.
|
|
18
|
+
__version__ = '0.9.129'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.129
|
|
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.
|
|
14
|
+
__version__ = '0.9.129'
|
|
@@ -126,27 +126,28 @@ class Cursor(metaclass=Singleton):
|
|
|
126
126
|
self.position = get_cursor_position() or self.position
|
|
127
127
|
return self.position
|
|
128
128
|
|
|
129
|
-
def write(self, obj: Any, end: str = "") -> Position:
|
|
129
|
+
def write(self, obj: Any = "", end: str = "", markdown: bool = False) -> Position:
|
|
130
130
|
"""Write the string representation of the object to the screen.
|
|
131
131
|
:param obj the object to be written.
|
|
132
132
|
:param end string appended after the last value, default a newline.
|
|
133
|
+
:param markdown: whether to print a markdown render.
|
|
133
134
|
:return the cursor position after writing.
|
|
134
135
|
"""
|
|
135
|
-
sysout(obj, end=end)
|
|
136
|
-
text = (str(obj) + end)
|
|
137
|
-
|
|
138
|
-
text_offset = len(text[max(0, last_index_of(text, os.linesep)) :])
|
|
136
|
+
sysout(obj, end=end, markdown=markdown)
|
|
137
|
+
text: str = self.cleanup_text(str(obj) + end)
|
|
138
|
+
text_offset: int = self.offset_text(text)
|
|
139
139
|
self.position = self.position[0] + text.count(os.linesep), text_offset + (
|
|
140
140
|
self.position[1] if text.count(os.linesep) == 0 else 0
|
|
141
141
|
)
|
|
142
142
|
return self.position
|
|
143
143
|
|
|
144
|
-
def writeln(self, obj: Any) -> Position:
|
|
144
|
+
def writeln(self, obj: Any = "", markdown: bool = False) -> Position:
|
|
145
145
|
"""Write the string representation of the object to the screen, appending a new line.
|
|
146
146
|
:param obj the object to be written.
|
|
147
|
+
:param markdown: whether to print a markdown render.
|
|
147
148
|
:return the cursor position after writing.
|
|
148
149
|
"""
|
|
149
|
-
return self.write(obj, end=os.linesep)
|
|
150
|
+
return self.write(obj, end=os.linesep, markdown=markdown)
|
|
150
151
|
|
|
151
152
|
def save(self) -> Position:
|
|
152
153
|
"""Save the current cursor position and attributes.
|
|
@@ -170,5 +171,14 @@ class Cursor(metaclass=Singleton):
|
|
|
170
171
|
sysout(Vt100.mode(0), end=end)
|
|
171
172
|
return self.position
|
|
172
173
|
|
|
174
|
+
def cleanup_text(self, text: str) -> str:
|
|
175
|
+
"""TODO"""
|
|
176
|
+
return VtColor.strip_colors(VtCode.strip_codes(text.replace("%EOL%", os.linesep)))
|
|
177
|
+
|
|
178
|
+
def offset_text(self, text: str) -> int:
|
|
179
|
+
"""TODO"""
|
|
180
|
+
text: str = self.cleanup_text(text)
|
|
181
|
+
return len(text[max(0, last_index_of(text, os.linesep)):])
|
|
182
|
+
|
|
173
183
|
|
|
174
184
|
assert (cursor := Cursor().INSTANCE) is not None, "Failed to create Cursor instance"
|
|
@@ -177,9 +177,13 @@ class Terminal(metaclass=Singleton):
|
|
|
177
177
|
cls.INSTANCE.screen.clear()
|
|
178
178
|
|
|
179
179
|
@classmethod
|
|
180
|
-
def echo(cls, obj: Any, end: str = os.linesep) -> None:
|
|
181
|
-
"""Write the string representation of the object to the screen.
|
|
182
|
-
|
|
180
|
+
def echo(cls, obj: Any = "", end: str = os.linesep, markdown: bool = False) -> None:
|
|
181
|
+
"""Write the string representation of the object to the screen.
|
|
182
|
+
:param obj the object to be written.
|
|
183
|
+
:param end string appended after the last value, default a newline.
|
|
184
|
+
:param markdown: whether to print a markdown render.
|
|
185
|
+
"""
|
|
186
|
+
cls.INSTANCE.screen.cursor.write(obj, end=end, markdown=markdown)
|
|
183
187
|
|
|
184
188
|
@classmethod
|
|
185
189
|
def alternate_screen(cls, enable: bool) -> None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.129
|
|
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.
|
|
20
|
+
__version__ = '0.9.129'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# _*_ coding: utf-8 _*_
|
|
2
2
|
#
|
|
3
|
-
# hspylib-clitt v0.9.
|
|
3
|
+
# hspylib-clitt v0.9.129
|
|
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.
|
|
12
|
+
__version__ = '0.9.129'
|