hspylib-clitt 0.9.118__py3-none-any.whl → 0.9.119__py3-none-any.whl
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.
- build/lib/build/lib/build/lib/build/lib/clitt/__classpath__.py +28 -0
- build/lib/build/lib/build/lib/build/lib/clitt/__init__.py +13 -0
- build/lib/build/lib/build/lib/build/lib/clitt/__main__.py +139 -0
- build/lib/build/lib/build/lib/build/lib/clitt/addons/__init__.py +12 -0
- build/lib/build/lib/build/lib/build/lib/clitt/addons/appman/__init__.py +13 -0
- build/lib/build/lib/build/lib/build/lib/clitt/addons/appman/appman.py +305 -0
- build/lib/build/lib/build/lib/build/lib/clitt/addons/appman/appman_enums.py +39 -0
- build/lib/build/lib/build/lib/build/lib/clitt/addons/appman/templates/__init__.py +11 -0
- build/lib/build/lib/build/lib/build/lib/clitt/addons/widman/__init__.py +14 -0
- build/lib/build/lib/build/lib/build/lib/clitt/addons/widman/widget.py +70 -0
- build/lib/build/lib/build/lib/build/lib/clitt/addons/widman/widget_entry.py +54 -0
- build/lib/build/lib/build/lib/build/lib/clitt/addons/widman/widgets/__init__.py +14 -0
- build/lib/build/lib/build/lib/build/lib/clitt/addons/widman/widgets/widget_free.py +110 -0
- build/lib/build/lib/build/lib/build/lib/clitt/addons/widman/widgets/widget_punch.py +246 -0
- build/lib/build/lib/build/lib/build/lib/clitt/addons/widman/widgets/widget_send_msg.py +272 -0
- build/lib/build/lib/build/lib/build/lib/clitt/addons/widman/widgets/widget_time_calc.py +146 -0
- build/lib/build/lib/build/lib/build/lib/clitt/addons/widman/widman.py +123 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/__init__.py +15 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/exception/__init__.py +11 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/exception/exceptions.py +19 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/icons/__init__.py +12 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/icons/emojis/__init__.py +12 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/icons/emojis/emojis.py +41 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/icons/emojis/face_smiling.py +40 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/__init__.py +18 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/app_icons.py +55 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/awesome.py +76 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/dashboard_icons.py +93 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/form_icons.py +69 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/game_icons.py +59 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/nav_icons.py +42 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/trickplay_icons.py +39 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/widget_icons.py +37 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/preferences.py +87 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/term/__init__.py +14 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/term/commons.py +106 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/term/cursor.py +174 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/term/screen.py +106 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/term/terminal.py +202 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/__init__.py +20 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/line_input/__init__.py +12 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/line_input/keyboard_input.py +229 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/line_input/line_input.py +31 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/mchoose/__init__.py +12 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/mchoose/mchoose.py +43 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/mchoose/menu_choose.py +192 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/mdashboard/__init__.py +14 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/mdashboard/dashboard_builder.py +54 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/mdashboard/dashboard_item.py +31 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/mdashboard/mdashboard.py +26 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/mdashboard/menu_dashboard.py +148 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/menu/__init__.py +16 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/menu/tui_menu.py +111 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/menu/tui_menu_action.py +47 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/menu/tui_menu_factory.py +117 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/menu/tui_menu_item.py +196 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/menu/tui_menu_ui.py +98 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/menu/tui_menu_view.py +57 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/minput/__init__.py +19 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/minput/access_type.py +26 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/minput/field_builder.py +117 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/minput/form_builder.py +72 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/minput/form_field.py +180 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/minput/input_type.py +30 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/minput/input_validator.py +98 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/minput/menu_input.py +292 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/minput/minput.py +44 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/minput/minput_utils.py +156 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/mselect/__init__.py +12 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/mselect/menu_select.py +170 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/mselect/mselect.py +36 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/table/__init__.py +12 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/table/table_enums.py +47 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/table/table_renderer.py +339 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/tui_application.py +52 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/tui_component.py +154 -0
- build/lib/build/lib/build/lib/build/lib/clitt/core/tui/tui_preferences.py +103 -0
- build/lib/build/lib/build/lib/build/lib/clitt/utils/__init__.py +11 -0
- build/lib/build/lib/build/lib/build/lib/clitt/utils/git_utils.py +66 -0
- build/lib/build/lib/build/lib/clitt/__classpath__.py +28 -0
- build/lib/build/lib/build/lib/clitt/__init__.py +13 -0
- build/lib/build/lib/build/lib/clitt/__main__.py +139 -0
- build/lib/build/lib/build/lib/clitt/addons/__init__.py +12 -0
- build/lib/build/lib/build/lib/clitt/addons/appman/__init__.py +13 -0
- build/lib/build/lib/build/lib/clitt/addons/appman/appman.py +305 -0
- build/lib/build/lib/build/lib/clitt/addons/appman/appman_enums.py +39 -0
- build/lib/build/lib/build/lib/clitt/addons/appman/templates/__init__.py +11 -0
- build/lib/build/lib/build/lib/clitt/addons/widman/__init__.py +14 -0
- build/lib/build/lib/build/lib/clitt/addons/widman/widget.py +70 -0
- build/lib/build/lib/build/lib/clitt/addons/widman/widget_entry.py +54 -0
- build/lib/build/lib/build/lib/clitt/addons/widman/widgets/__init__.py +14 -0
- build/lib/build/lib/build/lib/clitt/addons/widman/widgets/widget_free.py +110 -0
- build/lib/build/lib/build/lib/clitt/addons/widman/widgets/widget_punch.py +246 -0
- build/lib/build/lib/build/lib/clitt/addons/widman/widgets/widget_send_msg.py +272 -0
- build/lib/build/lib/build/lib/clitt/addons/widman/widgets/widget_time_calc.py +146 -0
- build/lib/build/lib/build/lib/clitt/addons/widman/widman.py +123 -0
- build/lib/build/lib/build/lib/clitt/core/__init__.py +15 -0
- build/lib/build/lib/build/lib/clitt/core/exception/__init__.py +11 -0
- build/lib/build/lib/build/lib/clitt/core/exception/exceptions.py +19 -0
- build/lib/build/lib/build/lib/clitt/core/icons/__init__.py +12 -0
- build/lib/build/lib/build/lib/clitt/core/icons/emojis/__init__.py +12 -0
- build/lib/build/lib/build/lib/clitt/core/icons/emojis/emojis.py +41 -0
- build/lib/build/lib/build/lib/clitt/core/icons/emojis/face_smiling.py +40 -0
- build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/__init__.py +18 -0
- build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/app_icons.py +55 -0
- build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/awesome.py +76 -0
- build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/dashboard_icons.py +93 -0
- build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/form_icons.py +69 -0
- build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/game_icons.py +59 -0
- build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/nav_icons.py +42 -0
- build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/trickplay_icons.py +39 -0
- build/lib/build/lib/build/lib/clitt/core/icons/font_awesome/widget_icons.py +37 -0
- build/lib/build/lib/build/lib/clitt/core/preferences.py +87 -0
- build/lib/build/lib/build/lib/clitt/core/term/__init__.py +14 -0
- build/lib/build/lib/build/lib/clitt/core/term/commons.py +106 -0
- build/lib/build/lib/build/lib/clitt/core/term/cursor.py +174 -0
- build/lib/build/lib/build/lib/clitt/core/term/screen.py +106 -0
- build/lib/build/lib/build/lib/clitt/core/term/terminal.py +202 -0
- build/lib/build/lib/build/lib/clitt/core/tui/__init__.py +20 -0
- build/lib/build/lib/build/lib/clitt/core/tui/line_input/__init__.py +12 -0
- build/lib/build/lib/build/lib/clitt/core/tui/line_input/keyboard_input.py +229 -0
- build/lib/build/lib/build/lib/clitt/core/tui/line_input/line_input.py +31 -0
- build/lib/build/lib/build/lib/clitt/core/tui/mchoose/__init__.py +12 -0
- build/lib/build/lib/build/lib/clitt/core/tui/mchoose/mchoose.py +43 -0
- build/lib/build/lib/build/lib/clitt/core/tui/mchoose/menu_choose.py +192 -0
- build/lib/build/lib/build/lib/clitt/core/tui/mdashboard/__init__.py +14 -0
- build/lib/build/lib/build/lib/clitt/core/tui/mdashboard/dashboard_builder.py +54 -0
- build/lib/build/lib/build/lib/clitt/core/tui/mdashboard/dashboard_item.py +31 -0
- build/lib/build/lib/build/lib/clitt/core/tui/mdashboard/mdashboard.py +26 -0
- build/lib/build/lib/build/lib/clitt/core/tui/mdashboard/menu_dashboard.py +148 -0
- build/lib/build/lib/build/lib/clitt/core/tui/menu/__init__.py +16 -0
- build/lib/build/lib/build/lib/clitt/core/tui/menu/tui_menu.py +111 -0
- build/lib/build/lib/build/lib/clitt/core/tui/menu/tui_menu_action.py +47 -0
- build/lib/build/lib/build/lib/clitt/core/tui/menu/tui_menu_factory.py +117 -0
- build/lib/build/lib/build/lib/clitt/core/tui/menu/tui_menu_item.py +196 -0
- build/lib/build/lib/build/lib/clitt/core/tui/menu/tui_menu_ui.py +98 -0
- build/lib/build/lib/build/lib/clitt/core/tui/menu/tui_menu_view.py +57 -0
- build/lib/build/lib/build/lib/clitt/core/tui/minput/__init__.py +19 -0
- build/lib/build/lib/build/lib/clitt/core/tui/minput/access_type.py +26 -0
- build/lib/build/lib/build/lib/clitt/core/tui/minput/field_builder.py +117 -0
- build/lib/build/lib/build/lib/clitt/core/tui/minput/form_builder.py +72 -0
- build/lib/build/lib/build/lib/clitt/core/tui/minput/form_field.py +180 -0
- build/lib/build/lib/build/lib/clitt/core/tui/minput/input_type.py +30 -0
- build/lib/build/lib/build/lib/clitt/core/tui/minput/input_validator.py +98 -0
- build/lib/build/lib/build/lib/clitt/core/tui/minput/menu_input.py +292 -0
- build/lib/build/lib/build/lib/clitt/core/tui/minput/minput.py +44 -0
- build/lib/build/lib/build/lib/clitt/core/tui/minput/minput_utils.py +156 -0
- build/lib/build/lib/build/lib/clitt/core/tui/mselect/__init__.py +12 -0
- build/lib/build/lib/build/lib/clitt/core/tui/mselect/menu_select.py +170 -0
- build/lib/build/lib/build/lib/clitt/core/tui/mselect/mselect.py +36 -0
- build/lib/build/lib/build/lib/clitt/core/tui/table/__init__.py +12 -0
- build/lib/build/lib/build/lib/clitt/core/tui/table/table_enums.py +47 -0
- build/lib/build/lib/build/lib/clitt/core/tui/table/table_renderer.py +339 -0
- build/lib/build/lib/build/lib/clitt/core/tui/tui_application.py +52 -0
- build/lib/build/lib/build/lib/clitt/core/tui/tui_component.py +154 -0
- build/lib/build/lib/build/lib/clitt/core/tui/tui_preferences.py +103 -0
- build/lib/build/lib/build/lib/clitt/utils/__init__.py +11 -0
- build/lib/build/lib/build/lib/clitt/utils/git_utils.py +66 -0
- build/lib/build/lib/clitt/__classpath__.py +28 -0
- build/lib/build/lib/clitt/__init__.py +13 -0
- build/lib/build/lib/clitt/__main__.py +139 -0
- build/lib/build/lib/clitt/addons/__init__.py +12 -0
- build/lib/build/lib/clitt/addons/appman/__init__.py +13 -0
- build/lib/build/lib/clitt/addons/appman/appman.py +305 -0
- build/lib/build/lib/clitt/addons/appman/appman_enums.py +39 -0
- build/lib/build/lib/clitt/addons/appman/templates/__init__.py +11 -0
- build/lib/build/lib/clitt/addons/widman/__init__.py +14 -0
- build/lib/build/lib/clitt/addons/widman/widget.py +70 -0
- build/lib/build/lib/clitt/addons/widman/widget_entry.py +54 -0
- build/lib/build/lib/clitt/addons/widman/widgets/__init__.py +14 -0
- build/lib/build/lib/clitt/addons/widman/widgets/widget_free.py +110 -0
- build/lib/build/lib/clitt/addons/widman/widgets/widget_punch.py +246 -0
- build/lib/build/lib/clitt/addons/widman/widgets/widget_send_msg.py +272 -0
- build/lib/build/lib/clitt/addons/widman/widgets/widget_time_calc.py +146 -0
- build/lib/build/lib/clitt/addons/widman/widman.py +123 -0
- build/lib/build/lib/clitt/core/__init__.py +15 -0
- build/lib/build/lib/clitt/core/exception/__init__.py +11 -0
- build/lib/build/lib/clitt/core/exception/exceptions.py +19 -0
- build/lib/build/lib/clitt/core/icons/__init__.py +12 -0
- build/lib/build/lib/clitt/core/icons/emojis/__init__.py +12 -0
- build/lib/build/lib/clitt/core/icons/emojis/emojis.py +41 -0
- build/lib/build/lib/clitt/core/icons/emojis/face_smiling.py +40 -0
- build/lib/build/lib/clitt/core/icons/font_awesome/__init__.py +18 -0
- build/lib/build/lib/clitt/core/icons/font_awesome/app_icons.py +55 -0
- build/lib/build/lib/clitt/core/icons/font_awesome/awesome.py +76 -0
- build/lib/build/lib/clitt/core/icons/font_awesome/dashboard_icons.py +93 -0
- build/lib/build/lib/clitt/core/icons/font_awesome/form_icons.py +69 -0
- build/lib/build/lib/clitt/core/icons/font_awesome/game_icons.py +59 -0
- build/lib/build/lib/clitt/core/icons/font_awesome/nav_icons.py +42 -0
- build/lib/build/lib/clitt/core/icons/font_awesome/trickplay_icons.py +39 -0
- build/lib/build/lib/clitt/core/icons/font_awesome/widget_icons.py +37 -0
- build/lib/build/lib/clitt/core/preferences.py +87 -0
- build/lib/build/lib/clitt/core/term/__init__.py +14 -0
- build/lib/build/lib/clitt/core/term/commons.py +106 -0
- build/lib/build/lib/clitt/core/term/cursor.py +174 -0
- build/lib/build/lib/clitt/core/term/screen.py +106 -0
- build/lib/build/lib/clitt/core/term/terminal.py +202 -0
- build/lib/build/lib/clitt/core/tui/__init__.py +20 -0
- build/lib/build/lib/clitt/core/tui/line_input/__init__.py +12 -0
- build/lib/build/lib/clitt/core/tui/line_input/keyboard_input.py +229 -0
- build/lib/build/lib/clitt/core/tui/line_input/line_input.py +31 -0
- build/lib/build/lib/clitt/core/tui/mchoose/__init__.py +12 -0
- build/lib/build/lib/clitt/core/tui/mchoose/mchoose.py +43 -0
- build/lib/build/lib/clitt/core/tui/mchoose/menu_choose.py +192 -0
- build/lib/build/lib/clitt/core/tui/mdashboard/__init__.py +14 -0
- build/lib/build/lib/clitt/core/tui/mdashboard/dashboard_builder.py +54 -0
- build/lib/build/lib/clitt/core/tui/mdashboard/dashboard_item.py +31 -0
- build/lib/build/lib/clitt/core/tui/mdashboard/mdashboard.py +26 -0
- build/lib/build/lib/clitt/core/tui/mdashboard/menu_dashboard.py +148 -0
- build/lib/build/lib/clitt/core/tui/menu/__init__.py +16 -0
- build/lib/build/lib/clitt/core/tui/menu/tui_menu.py +111 -0
- build/lib/build/lib/clitt/core/tui/menu/tui_menu_action.py +47 -0
- build/lib/build/lib/clitt/core/tui/menu/tui_menu_factory.py +117 -0
- build/lib/build/lib/clitt/core/tui/menu/tui_menu_item.py +196 -0
- build/lib/build/lib/clitt/core/tui/menu/tui_menu_ui.py +98 -0
- build/lib/build/lib/clitt/core/tui/menu/tui_menu_view.py +57 -0
- build/lib/build/lib/clitt/core/tui/minput/__init__.py +19 -0
- build/lib/build/lib/clitt/core/tui/minput/access_type.py +26 -0
- build/lib/build/lib/clitt/core/tui/minput/field_builder.py +117 -0
- build/lib/build/lib/clitt/core/tui/minput/form_builder.py +72 -0
- build/lib/build/lib/clitt/core/tui/minput/form_field.py +180 -0
- build/lib/build/lib/clitt/core/tui/minput/input_type.py +30 -0
- build/lib/build/lib/clitt/core/tui/minput/input_validator.py +98 -0
- build/lib/build/lib/clitt/core/tui/minput/menu_input.py +292 -0
- build/lib/build/lib/clitt/core/tui/minput/minput.py +44 -0
- build/lib/build/lib/clitt/core/tui/minput/minput_utils.py +156 -0
- build/lib/build/lib/clitt/core/tui/mselect/__init__.py +12 -0
- build/lib/build/lib/clitt/core/tui/mselect/menu_select.py +170 -0
- build/lib/build/lib/clitt/core/tui/mselect/mselect.py +36 -0
- build/lib/build/lib/clitt/core/tui/table/__init__.py +12 -0
- build/lib/build/lib/clitt/core/tui/table/table_enums.py +47 -0
- build/lib/build/lib/clitt/core/tui/table/table_renderer.py +339 -0
- build/lib/build/lib/clitt/core/tui/tui_application.py +52 -0
- build/lib/build/lib/clitt/core/tui/tui_component.py +154 -0
- build/lib/build/lib/clitt/core/tui/tui_preferences.py +103 -0
- build/lib/build/lib/clitt/utils/__init__.py +11 -0
- build/lib/build/lib/clitt/utils/git_utils.py +66 -0
- build/lib/clitt/__classpath__.py +28 -0
- build/lib/clitt/__init__.py +13 -0
- build/lib/clitt/__main__.py +139 -0
- build/lib/clitt/addons/__init__.py +12 -0
- build/lib/clitt/addons/appman/__init__.py +13 -0
- build/lib/clitt/addons/appman/appman.py +305 -0
- build/lib/clitt/addons/appman/appman_enums.py +39 -0
- build/lib/clitt/addons/appman/templates/__init__.py +11 -0
- build/lib/clitt/addons/widman/__init__.py +14 -0
- build/lib/clitt/addons/widman/widget.py +70 -0
- build/lib/clitt/addons/widman/widget_entry.py +54 -0
- build/lib/clitt/addons/widman/widgets/__init__.py +14 -0
- build/lib/clitt/addons/widman/widgets/widget_free.py +110 -0
- build/lib/clitt/addons/widman/widgets/widget_punch.py +246 -0
- build/lib/clitt/addons/widman/widgets/widget_send_msg.py +272 -0
- build/lib/clitt/addons/widman/widgets/widget_time_calc.py +146 -0
- build/lib/clitt/addons/widman/widman.py +123 -0
- build/lib/clitt/core/__init__.py +15 -0
- build/lib/clitt/core/exception/__init__.py +11 -0
- build/lib/clitt/core/exception/exceptions.py +19 -0
- build/lib/clitt/core/icons/__init__.py +12 -0
- build/lib/clitt/core/icons/emojis/__init__.py +12 -0
- build/lib/clitt/core/icons/emojis/emojis.py +41 -0
- build/lib/clitt/core/icons/emojis/face_smiling.py +40 -0
- build/lib/clitt/core/icons/font_awesome/__init__.py +18 -0
- build/lib/clitt/core/icons/font_awesome/app_icons.py +55 -0
- build/lib/clitt/core/icons/font_awesome/awesome.py +76 -0
- build/lib/clitt/core/icons/font_awesome/dashboard_icons.py +93 -0
- build/lib/clitt/core/icons/font_awesome/form_icons.py +69 -0
- build/lib/clitt/core/icons/font_awesome/game_icons.py +59 -0
- build/lib/clitt/core/icons/font_awesome/nav_icons.py +42 -0
- build/lib/clitt/core/icons/font_awesome/trickplay_icons.py +39 -0
- build/lib/clitt/core/icons/font_awesome/widget_icons.py +37 -0
- build/lib/clitt/core/preferences.py +87 -0
- build/lib/clitt/core/term/__init__.py +14 -0
- build/lib/clitt/core/term/commons.py +106 -0
- build/lib/clitt/core/term/cursor.py +174 -0
- build/lib/clitt/core/term/screen.py +106 -0
- build/lib/clitt/core/term/terminal.py +202 -0
- build/lib/clitt/core/tui/__init__.py +20 -0
- build/lib/clitt/core/tui/line_input/__init__.py +12 -0
- build/lib/clitt/core/tui/line_input/keyboard_input.py +229 -0
- build/lib/clitt/core/tui/line_input/line_input.py +31 -0
- build/lib/clitt/core/tui/mchoose/__init__.py +12 -0
- build/lib/clitt/core/tui/mchoose/mchoose.py +43 -0
- build/lib/clitt/core/tui/mchoose/menu_choose.py +192 -0
- build/lib/clitt/core/tui/mdashboard/__init__.py +14 -0
- build/lib/clitt/core/tui/mdashboard/dashboard_builder.py +54 -0
- build/lib/clitt/core/tui/mdashboard/dashboard_item.py +31 -0
- build/lib/clitt/core/tui/mdashboard/mdashboard.py +26 -0
- build/lib/clitt/core/tui/mdashboard/menu_dashboard.py +148 -0
- build/lib/clitt/core/tui/menu/__init__.py +16 -0
- build/lib/clitt/core/tui/menu/tui_menu.py +111 -0
- build/lib/clitt/core/tui/menu/tui_menu_action.py +47 -0
- build/lib/clitt/core/tui/menu/tui_menu_factory.py +117 -0
- build/lib/clitt/core/tui/menu/tui_menu_item.py +196 -0
- build/lib/clitt/core/tui/menu/tui_menu_ui.py +98 -0
- build/lib/clitt/core/tui/menu/tui_menu_view.py +57 -0
- build/lib/clitt/core/tui/minput/__init__.py +19 -0
- build/lib/clitt/core/tui/minput/access_type.py +26 -0
- build/lib/clitt/core/tui/minput/field_builder.py +117 -0
- build/lib/clitt/core/tui/minput/form_builder.py +72 -0
- build/lib/clitt/core/tui/minput/form_field.py +180 -0
- build/lib/clitt/core/tui/minput/input_type.py +30 -0
- build/lib/clitt/core/tui/minput/input_validator.py +98 -0
- build/lib/clitt/core/tui/minput/menu_input.py +292 -0
- build/lib/clitt/core/tui/minput/minput.py +44 -0
- build/lib/clitt/core/tui/minput/minput_utils.py +156 -0
- build/lib/clitt/core/tui/mselect/__init__.py +12 -0
- build/lib/clitt/core/tui/mselect/menu_select.py +170 -0
- build/lib/clitt/core/tui/mselect/mselect.py +36 -0
- build/lib/clitt/core/tui/table/__init__.py +12 -0
- build/lib/clitt/core/tui/table/table_enums.py +47 -0
- build/lib/clitt/core/tui/table/table_renderer.py +339 -0
- build/lib/clitt/core/tui/tui_application.py +52 -0
- build/lib/clitt/core/tui/tui_component.py +154 -0
- build/lib/clitt/core/tui/tui_preferences.py +103 -0
- build/lib/clitt/utils/__init__.py +11 -0
- build/lib/clitt/utils/git_utils.py +66 -0
- clitt/.version +1 -1
- clitt/__init__.py +3 -3
- clitt/addons/__init__.py +3 -3
- clitt/addons/appman/__init__.py +3 -3
- clitt/addons/appman/templates/__init__.py +3 -3
- clitt/addons/widman/__init__.py +3 -3
- clitt/addons/widman/widgets/__init__.py +3 -3
- clitt/core/__init__.py +3 -3
- clitt/core/exception/__init__.py +3 -3
- clitt/core/icons/__init__.py +3 -3
- clitt/core/icons/emojis/__init__.py +3 -3
- clitt/core/icons/font_awesome/__init__.py +3 -3
- clitt/core/term/__init__.py +3 -3
- clitt/core/term/commons.py +11 -12
- clitt/core/tui/__init__.py +3 -3
- clitt/core/tui/line_input/__init__.py +3 -3
- clitt/core/tui/mchoose/__init__.py +3 -3
- clitt/core/tui/mdashboard/__init__.py +3 -3
- clitt/core/tui/menu/__init__.py +3 -3
- clitt/core/tui/minput/__init__.py +3 -3
- clitt/core/tui/mselect/__init__.py +3 -3
- clitt/core/tui/table/__init__.py +3 -3
- clitt/utils/__init__.py +3 -3
- {hspylib_clitt-0.9.118.dist-info → hspylib_clitt-0.9.119.dist-info}/METADATA +2 -2
- hspylib_clitt-0.9.119.dist-info/RECORD +413 -0
- {hspylib_clitt-0.9.118.dist-info → hspylib_clitt-0.9.119.dist-info}/top_level.txt +1 -0
- hspylib_clitt-0.9.118.dist-info/RECORD +0 -97
- {hspylib_clitt-0.9.118.dist-info → hspylib_clitt-0.9.119.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
@project: HsPyLib-Clitt
|
|
6
|
+
@package: clitt.core.icons.emojis
|
|
7
|
+
@file: face_smiling.py
|
|
8
|
+
@created: Tue, 4 May 2021
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior"
|
|
10
|
+
@site: https://github.com/yorevs/hspylib
|
|
11
|
+
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
|
+
|
|
13
|
+
Copyright·(c)·2024,·HSPyLib
|
|
14
|
+
"""
|
|
15
|
+
from clitt.core.icons.emojis.emojis import Emoji
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class FaceSmiling(Emoji):
|
|
19
|
+
"""
|
|
20
|
+
Face smiling emojis.
|
|
21
|
+
Codes can be found here:
|
|
22
|
+
- https://unicode.org/emoji/charts/emoji-list.html#face-smiling
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
# fmt: off
|
|
26
|
+
_CUSTOM = ''
|
|
27
|
+
DEFAULT = '\U0001F600' # 😀
|
|
28
|
+
BEAMING = '\U0001F601' # 😁
|
|
29
|
+
TEARS_OF_JOY = '\U0001F602' # 😂
|
|
30
|
+
BIG_EYES = '\U0001F603' # 😃
|
|
31
|
+
SMILING_EYES = '\U0001F604' # 😄
|
|
32
|
+
SWEAT = '\U0001F605' # 😅
|
|
33
|
+
SQUINTING = '\U0001F606' # 😆
|
|
34
|
+
HALO = '\U0001F607' # 😇
|
|
35
|
+
WINKING = '\U0001F609' # 😉
|
|
36
|
+
BLUSHING = '\U0001F60A' # 😊
|
|
37
|
+
SLIGHTLY = '\U0001F642' # 🙂
|
|
38
|
+
UPSIDE_DOWN = '\U0001F643' # 🙃
|
|
39
|
+
ROFL = '\U0001F923' # 🤣
|
|
40
|
+
# fmt: on
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# _*_ coding: utf-8 _*_
|
|
2
|
+
#
|
|
3
|
+
# hspylib-clitt v0.9.119
|
|
4
|
+
#
|
|
5
|
+
# Package: main.build.lib.build.lib.build.lib.build.lib.clitt.core.icons.font_awesome
|
|
6
|
+
"""Package initialization."""
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
'app_icons',
|
|
10
|
+
'awesome',
|
|
11
|
+
'dashboard_icons',
|
|
12
|
+
'form_icons',
|
|
13
|
+
'game_icons',
|
|
14
|
+
'nav_icons',
|
|
15
|
+
'trickplay_icons',
|
|
16
|
+
'widget_icons'
|
|
17
|
+
]
|
|
18
|
+
__version__ = '0.9.119'
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
@project: HsPyLib-Clitt
|
|
6
|
+
@package: clitt.core.icons.font_awesome
|
|
7
|
+
@file: app_icons.py
|
|
8
|
+
@created: Tue, 4 May 2021
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior"
|
|
10
|
+
@site: https://github.com/yorevs/hspylib
|
|
11
|
+
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
|
+
|
|
13
|
+
Copyright·(c)·2024,·HSPyLib
|
|
14
|
+
"""
|
|
15
|
+
from clitt.core.icons.font_awesome.awesome import Awesome
|
|
16
|
+
from enum import auto
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class AppIcons(Awesome):
|
|
20
|
+
"""
|
|
21
|
+
Application icons.
|
|
22
|
+
Codes can be found here:
|
|
23
|
+
- https://fontawesome.com/cheatsheet?from=io
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
# fmt: off
|
|
27
|
+
_CUSTOM = auto()
|
|
28
|
+
AMAZON = '\uF270' #
|
|
29
|
+
APPLE = '\uF179' #
|
|
30
|
+
AWS = '\uF375' #
|
|
31
|
+
CPLUSPLUS = '\uF38C' #
|
|
32
|
+
DOCKER = '\uF308' #
|
|
33
|
+
DROPBOX = '\uF16B' #
|
|
34
|
+
GIT = '\uF813' #
|
|
35
|
+
GITHUB = '\uF408' #
|
|
36
|
+
GOOGLE = '\uF1A0' #
|
|
37
|
+
GOOGLE_DRIVE = '\uF3AA' #
|
|
38
|
+
FACEBOOK = '\uF082' #
|
|
39
|
+
FIREBASE = '\uF1D0' #
|
|
40
|
+
IE = '\uF7FF' #
|
|
41
|
+
INSTAGRAM = '\uF16D' #
|
|
42
|
+
JAVA = '\uF4E4' #
|
|
43
|
+
LINKED_IN = '\uF08C' #
|
|
44
|
+
LINUX = '\uF31A' #
|
|
45
|
+
PAYPAL = '\uF1ED' #
|
|
46
|
+
PYTHON = '\uF3E2' #
|
|
47
|
+
STACK_OVERFLOW = '\uF16C' #
|
|
48
|
+
TWITTER = '\uF081' #
|
|
49
|
+
UBUNTU = '\uF31B' #
|
|
50
|
+
VS_CODE = '\uF3AB' #
|
|
51
|
+
YOUTUBE = '\uF16A' #
|
|
52
|
+
WHATSAPP = '\uFAA2' # 甆
|
|
53
|
+
WINDOWS = '\uF17A' #
|
|
54
|
+
ALPINE = '\uF7F4' #
|
|
55
|
+
# fmt: on
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
@project: HsPyLib-Clitt
|
|
6
|
+
@package: clitt.core.icons.font_awesome
|
|
7
|
+
@file: awesome.py
|
|
8
|
+
@created: Tue, 4 May 2021
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior"
|
|
10
|
+
@site: https://github.com/yorevs/hspylib
|
|
11
|
+
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
|
+
|
|
13
|
+
Copyright·(c)·2024,·HSPyLib
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
from hspylib.core.enums.enumeration import Enumeration
|
|
17
|
+
from hspylib.core.tools.commons import sysout
|
|
18
|
+
from typing import Union
|
|
19
|
+
|
|
20
|
+
import re
|
|
21
|
+
import struct
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Awesome(Enumeration):
|
|
25
|
+
"""
|
|
26
|
+
Font awesome codes
|
|
27
|
+
Full list of font awesome icons can be found here:
|
|
28
|
+
- https://fontawesome.com/cheatsheet?from=io
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
@classmethod
|
|
32
|
+
def no_icon(cls) -> "Awesome":
|
|
33
|
+
"""No awesome icon specified."""
|
|
34
|
+
|
|
35
|
+
def _str(self) -> str:
|
|
36
|
+
return " "
|
|
37
|
+
|
|
38
|
+
def _len(self) -> int:
|
|
39
|
+
return 1
|
|
40
|
+
|
|
41
|
+
def _fmt(self, fmt) -> str:
|
|
42
|
+
return " "
|
|
43
|
+
|
|
44
|
+
no_icon_cls = type("NoIcon", (object,), {"name": "NO_ICON", "value": ""})
|
|
45
|
+
setattr(no_icon_cls, "__str__", _str)
|
|
46
|
+
setattr(no_icon_cls, "__len__", _len)
|
|
47
|
+
setattr(no_icon_cls, "__format__", _fmt)
|
|
48
|
+
return no_icon_cls()
|
|
49
|
+
|
|
50
|
+
@staticmethod
|
|
51
|
+
def print_unicode(uni_code: Union[str, int], end: str = "") -> None:
|
|
52
|
+
"""Print the specified unicode character.
|
|
53
|
+
:param uni_code: the unicode to be printed.
|
|
54
|
+
:param end string appended after the last value, default a newline.
|
|
55
|
+
"""
|
|
56
|
+
if isinstance(uni_code, str) and re.match(r"^[a-fA-F0-9]{1,4}$", uni_code):
|
|
57
|
+
hex_val = bytes.decode(struct.pack("!I", int(uni_code.zfill(4), 16)), "utf_32_be")
|
|
58
|
+
sysout(f"{hex_val:2s}", end=end)
|
|
59
|
+
elif isinstance(uni_code, int):
|
|
60
|
+
hex_val = bytes.decode(struct.pack("!I", uni_code), "utf_32_be")
|
|
61
|
+
sysout(f"{hex_val:2s}", end=end)
|
|
62
|
+
else:
|
|
63
|
+
raise TypeError(f"Invalid unicode value: {uni_code}")
|
|
64
|
+
|
|
65
|
+
def __str__(self) -> str:
|
|
66
|
+
return str(self.value)
|
|
67
|
+
|
|
68
|
+
def __repr__(self) -> str:
|
|
69
|
+
return str(self)
|
|
70
|
+
|
|
71
|
+
def __len__(self) -> int:
|
|
72
|
+
return len(str(self.value))
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def unicode(self) -> str:
|
|
76
|
+
return str(self.value)
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
@project: HsPyLib-Clitt
|
|
6
|
+
@package: clitt.core.icons.font_awesome
|
|
7
|
+
@file: dashboard_icons.py
|
|
8
|
+
@created: Tue, 4 May 2021
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior"
|
|
10
|
+
@site: https://github.com/yorevs/hspylib
|
|
11
|
+
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
|
+
|
|
13
|
+
Copyright·(c)·2024,·HSPyLib
|
|
14
|
+
"""
|
|
15
|
+
from clitt.core.icons.font_awesome.awesome import Awesome
|
|
16
|
+
from enum import auto
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class DashboardIcons(Awesome):
|
|
20
|
+
"""
|
|
21
|
+
Dashboard UI icons.
|
|
22
|
+
Codes can be found here:
|
|
23
|
+
- https://fontawesome.com/cheatsheet?from=io
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
# fmt: off
|
|
27
|
+
_CUSTOM = auto()
|
|
28
|
+
ADJUSTMENTS = '\uF1DE' #
|
|
29
|
+
AGENDA = '\uF073' #
|
|
30
|
+
ALERT = '\uF071' #
|
|
31
|
+
ARCHIVE = '\uF01C' #
|
|
32
|
+
BALLOON = '\uF075' #
|
|
33
|
+
CAMERA = '\uF030' #
|
|
34
|
+
CHAT = '\uF78B' #
|
|
35
|
+
CLOUD_DOWNLOAD = '\uF0ED' #
|
|
36
|
+
CLOUD_UPLOAD = '\uF0EE' #
|
|
37
|
+
CODE = '\uFABF' # 謹
|
|
38
|
+
COMPASS = '\uF124' #
|
|
39
|
+
DASHBOARD = '\uF00A' #
|
|
40
|
+
DATABASE = '\uF1C0' #
|
|
41
|
+
DELIVERED = '\uFB3D' #
|
|
42
|
+
DOCUMENT = '\uF016' #
|
|
43
|
+
DOWNLOAD = '\uF019' #
|
|
44
|
+
EMAIL = '\uF003' #
|
|
45
|
+
ERROR = '\uF06A' #
|
|
46
|
+
EXIT = '\uF426' #
|
|
47
|
+
EXPORT = '\uF5F6' #
|
|
48
|
+
FAVORITE = '\uF02E' #
|
|
49
|
+
FLAG = '\uF024' #
|
|
50
|
+
FOLDER = '\uF74A' #
|
|
51
|
+
FOLDER_OPEN = '\uF07C' #
|
|
52
|
+
FORM = '\uF233' #
|
|
53
|
+
FORMAT = '\uF6C8' #
|
|
54
|
+
GRAPHS = '\uF627' #
|
|
55
|
+
HISTORY = '\uF017' #
|
|
56
|
+
HOME = '\uF015' #
|
|
57
|
+
IDENTITY = '\uF2BB' #
|
|
58
|
+
IMPORT = '\uF5F9' #
|
|
59
|
+
KILL = '\uF8C4' #
|
|
60
|
+
LIGHT_ON = '\uF834' #
|
|
61
|
+
LIGHT_OFF = '\uF835' #
|
|
62
|
+
LIKE = '\uF004' #
|
|
63
|
+
LIST = '\uF03A' #
|
|
64
|
+
LOCATION = '\uF450' #
|
|
65
|
+
MOBILE = '\uF61F' #
|
|
66
|
+
MOVIE = '\uF008' #
|
|
67
|
+
MUSIC = '\uF3B5' #
|
|
68
|
+
MUTE = '\uF86C' #
|
|
69
|
+
NOTIFICATION = '\uF0F3' #
|
|
70
|
+
PICTURE = '\uF03E' #
|
|
71
|
+
PLAY = '\uF01D' #
|
|
72
|
+
PLUGIN = '\uF12E' #
|
|
73
|
+
PLUG_IN = '\uF1E6' #
|
|
74
|
+
PLUG_OUT = '\uF492' #
|
|
75
|
+
PLUGGED = '\uF700' #
|
|
76
|
+
POWER = '\uF011' #
|
|
77
|
+
PRINTER = '\uF02F' #
|
|
78
|
+
READ = '\uF830' #
|
|
79
|
+
SAVE = '\uF0C7' #
|
|
80
|
+
SEARCH = '\uF002' #
|
|
81
|
+
SECRET = '\uF49C' #
|
|
82
|
+
SEND = '\uF3FE' #
|
|
83
|
+
SENT = '\uF0FB' #
|
|
84
|
+
SETTINGS = '\uF013' #
|
|
85
|
+
SHOPPING_CART = '\uF60F' #
|
|
86
|
+
TERMINAL = '\uF120' #
|
|
87
|
+
PROMPT = '\uF054' #
|
|
88
|
+
UN_MUTE = '\uF86E' #
|
|
89
|
+
UNPLUGGED = '\uF701' #
|
|
90
|
+
USER = '\uF007' #
|
|
91
|
+
VERIFIED = '\uF4A1' #
|
|
92
|
+
|
|
93
|
+
# fmt: on
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
@project: HsPyLib-Clitt
|
|
6
|
+
@package: clitt.core.icons.font_awesome
|
|
7
|
+
@file: form_icons.py
|
|
8
|
+
@created: Tue, 4 May 2021
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior"
|
|
10
|
+
@site: https://github.com/yorevs/hspylib
|
|
11
|
+
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
|
+
|
|
13
|
+
Copyright·(c)·2024,·HSPyLib
|
|
14
|
+
"""
|
|
15
|
+
from clitt.core.icons.font_awesome.awesome import Awesome
|
|
16
|
+
from enum import auto
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class FormIcons(Awesome):
|
|
20
|
+
"""
|
|
21
|
+
Form UI icons.
|
|
22
|
+
Codes can be found here:
|
|
23
|
+
- https://fontawesome.com/cheatsheet?from=io
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
# fmt: off
|
|
27
|
+
_CUSTOM = auto()
|
|
28
|
+
ARROW_LEFT = '\uF060' #
|
|
29
|
+
ARROW_RIGHT = '\uF061' #
|
|
30
|
+
ARROW_UP = '\uF062' #
|
|
31
|
+
ARROW_DOWN = '\uF063' #
|
|
32
|
+
MOVE_ARROWS = '\uF047' #
|
|
33
|
+
CHECK = '\uF00C' #
|
|
34
|
+
UNCHECK = '\uF00D' #
|
|
35
|
+
PLUS_CIRCLE = '\uF055' #
|
|
36
|
+
MINUS_CIRCLE = '\uF056' #
|
|
37
|
+
ERROR_CIRCLE = '\uf057' #
|
|
38
|
+
CHECK_CIRCLE = '\uF058' #
|
|
39
|
+
QUESTION_CIRCLE = '\uF059' #
|
|
40
|
+
UNCHECK_CIRCLE = '\uF111' #
|
|
41
|
+
CHECK_SQUARE = '\uF14A' #
|
|
42
|
+
UNCHECK_SQUARE = '\uF0C8' #
|
|
43
|
+
ON = '\uF205' #
|
|
44
|
+
OFF = '\uF204' #
|
|
45
|
+
MARKED = '\uF634' #
|
|
46
|
+
UNMARKED = '\uF630' #
|
|
47
|
+
CLEAR = '\uF5E1' #
|
|
48
|
+
REFRESH = '\uF01E' #
|
|
49
|
+
FILTER = '\uF0B0' #
|
|
50
|
+
ATTACH = '\uF0C6' #
|
|
51
|
+
HIDDEN = '\uF070' #
|
|
52
|
+
VISIBLE = '\uF06E' #
|
|
53
|
+
LOCKED = '\uF023' #
|
|
54
|
+
UNLOCKED = '\uF09C' #
|
|
55
|
+
EDITABLE = '\uF044' #
|
|
56
|
+
MASKED = '\uF0CE' #
|
|
57
|
+
SELECTABLE = '\uF150' #
|
|
58
|
+
DESELECT = '\uF657' #
|
|
59
|
+
DELETE = '\uF014' #
|
|
60
|
+
EDIT = '\uF040' #
|
|
61
|
+
CUT = '\uF68F' #
|
|
62
|
+
PASTE = '\uF68E' #
|
|
63
|
+
PLUS = '\uF067' #
|
|
64
|
+
MINUS = '\uF068' #
|
|
65
|
+
NUMBERS = '\uF162' #
|
|
66
|
+
LETTERS = '\uF15D' #
|
|
67
|
+
WORDS = '\uF161' #
|
|
68
|
+
CUSTOM = '\uF45E' #
|
|
69
|
+
# fmt: on
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
@project: HsPyLib-Clitt
|
|
6
|
+
@package: clitt.core.icons.font_awesome
|
|
7
|
+
@file: game_icons.py
|
|
8
|
+
@created: Thu, 20 Jul 2023
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior"
|
|
10
|
+
@site: https://github.com/yorevs/hspylib
|
|
11
|
+
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
|
+
|
|
13
|
+
Copyright·(c)·2024,·HSPyLib
|
|
14
|
+
"""
|
|
15
|
+
from clitt.core.icons.font_awesome.awesome import Awesome
|
|
16
|
+
from enum import auto
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# @composable
|
|
20
|
+
class GameIcons(Awesome):
|
|
21
|
+
"""
|
|
22
|
+
Game icons.
|
|
23
|
+
Codes can be found here:
|
|
24
|
+
- https://fontawesome.com/cheatsheet?from=io
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
# fmt: off
|
|
28
|
+
_CUSTOM = auto()
|
|
29
|
+
STEAM = '\uF9D2' # 戮
|
|
30
|
+
XBOX = '\uFAB8' # 視
|
|
31
|
+
CUTLERY = '\uF9A5' # 殮
|
|
32
|
+
BALL = '\uF9B7' # 醴
|
|
33
|
+
HOME = '\uFAF7' #
|
|
34
|
+
FURNITURE = '\uF9B8' # 隸
|
|
35
|
+
AGENT = '\uFAF8' #
|
|
36
|
+
GAMEPAD = '\uFAB9' # 調
|
|
37
|
+
SWORD = '\uF9E4' # 理
|
|
38
|
+
GUN = '\uFC01' # ﰁ
|
|
39
|
+
CANDLE = '\uFAE1' #
|
|
40
|
+
HORSE = '\uFCC0' # ﳀ
|
|
41
|
+
MUSHROOM = '\uFCDD' # ﳝ
|
|
42
|
+
SHOVEL = '\uFC0E' # ﰎ
|
|
43
|
+
BATTLE = '\uFCFD' # ﳽ
|
|
44
|
+
WALK = '\uFC0C' # ﰌ
|
|
45
|
+
WRITE = '\uFBD1' #
|
|
46
|
+
LOOK = '\uFBCE' #
|
|
47
|
+
EXAMINE = '\uF422' #
|
|
48
|
+
CHAT = '\uF41F' #
|
|
49
|
+
SNOW = '\uFC15' # ﰕ
|
|
50
|
+
HOT = '\uF490' #
|
|
51
|
+
DAY = '\uFAA7' # 盛
|
|
52
|
+
NIGHT = '\uFA93' # 望
|
|
53
|
+
TREE = '\uF904' # 滑
|
|
54
|
+
KEY = '\uF80A' #
|
|
55
|
+
OLD_KEY = '\uF084' #
|
|
56
|
+
SLEEP = '\uF9B1' # 鈴
|
|
57
|
+
LUCK = '\uFD14' # ﴔ
|
|
58
|
+
ANIMAL = '\uF8E8' #
|
|
59
|
+
# fmt: on
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
@project: HsPyLib-Clitt
|
|
6
|
+
@package: clitt.core.icons.font_awesome
|
|
7
|
+
@file: nav_icons.py
|
|
8
|
+
@created: Tue, 4 May 2021
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior"
|
|
10
|
+
@site: https://github.com/yorevs/hspylib
|
|
11
|
+
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
|
+
|
|
13
|
+
Copyright·(c)·2024,·HSPyLib
|
|
14
|
+
"""
|
|
15
|
+
from clitt.core.icons.font_awesome.awesome import Awesome
|
|
16
|
+
from enum import auto
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# @composable
|
|
20
|
+
class NavIcons(Awesome):
|
|
21
|
+
"""
|
|
22
|
+
Navigation icons.
|
|
23
|
+
Codes can be found here:
|
|
24
|
+
- https://fontawesome.com/cheatsheet?from=io
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
# fmt: off
|
|
28
|
+
_CUSTOM = auto()
|
|
29
|
+
UP = '\u2191' # ↑
|
|
30
|
+
RIGHT = '\u2192' # →
|
|
31
|
+
DOWN = '\u2193' # ↓
|
|
32
|
+
LEFT = '\u2190' # ←
|
|
33
|
+
UP_DOWN = '\uF9E1' # 李
|
|
34
|
+
LEFT_RIGHT = '\uF9E0' # 易
|
|
35
|
+
ENTER = '\u21B5' # ↵
|
|
36
|
+
TAB = '\u21B9' # ↹
|
|
37
|
+
BACKSPACE = '\u232B' # ⌫
|
|
38
|
+
POINTER = '\uF432' #
|
|
39
|
+
SELECTED = '\uF814' #
|
|
40
|
+
UNSELECTED = '\uF815' #
|
|
41
|
+
BREADCRUMB = '\uF44A' #
|
|
42
|
+
# fmt: on
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
@project: HsPyLib-Clitt
|
|
6
|
+
@package: clitt.core.icons.font_awesome
|
|
7
|
+
@file: trickplay_icons.py
|
|
8
|
+
@created: Tue, 4 May 2021
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior"
|
|
10
|
+
@site: https://github.com/yorevs/hspylib
|
|
11
|
+
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
|
+
|
|
13
|
+
Copyright·(c)·2024,·HSPyLib
|
|
14
|
+
"""
|
|
15
|
+
from clitt.core.icons.font_awesome.awesome import Awesome
|
|
16
|
+
from enum import auto
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# @composable
|
|
20
|
+
class TrickplayIcons(Awesome):
|
|
21
|
+
"""
|
|
22
|
+
Navigation icons.
|
|
23
|
+
Codes can be found here:
|
|
24
|
+
- https://fontawesome.com/cheatsheet?from=io
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
# fmt: off
|
|
28
|
+
_CUSTOM = auto()
|
|
29
|
+
PREVIOUS = '\uF048' #
|
|
30
|
+
REWIND = '\uF049' #
|
|
31
|
+
BACKWARD = '\uF04A' #
|
|
32
|
+
PLAY = '\uF04B' #
|
|
33
|
+
PAUSE = '\uF04C' #
|
|
34
|
+
STOP = '\uF04D' #
|
|
35
|
+
NEXT = '\uF051' #
|
|
36
|
+
ADVANCE = '\uF050' #
|
|
37
|
+
FORWARD = '\uF04E' #
|
|
38
|
+
EJECT = '\uF052' #
|
|
39
|
+
# fmt: on
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
@project: HsPyLib-Clitt
|
|
6
|
+
@package: clitt.core.icons.font_awesome
|
|
7
|
+
@file: widget_icons.py
|
|
8
|
+
@created: Thu, 20 May 2021
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior"
|
|
10
|
+
@site: https://github.com/yorevs/hspylib
|
|
11
|
+
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
|
+
|
|
13
|
+
Copyright·(c)·2024,·HSPyLib
|
|
14
|
+
"""
|
|
15
|
+
from clitt.core.icons.font_awesome.awesome import Awesome
|
|
16
|
+
from enum import auto
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class WidgetIcons(Awesome):
|
|
20
|
+
"""
|
|
21
|
+
Dashboard UI icons.
|
|
22
|
+
Codes can be found here:
|
|
23
|
+
- https://fontawesome.com/cheatsheet?from=io
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
# fmt: off
|
|
27
|
+
_CUSTOM = auto()
|
|
28
|
+
CHART_2 = '\uF200' #
|
|
29
|
+
CHART_1 = '\uF1FE' #
|
|
30
|
+
CLOCK = '\uF651' #
|
|
31
|
+
CHIP = '\uFB19' #
|
|
32
|
+
MUSIC = '\uF3B5' #
|
|
33
|
+
NETWORK = '\uF819' #
|
|
34
|
+
PUNCH = '\uF255' #
|
|
35
|
+
SIGN = '\uF45D' #
|
|
36
|
+
WIDGET = '\uF198' #
|
|
37
|
+
# fmt: on
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
@project: HsPyLib-Clitt
|
|
6
|
+
@package: clitt.core
|
|
7
|
+
@file: preferences.py
|
|
8
|
+
@created: Fri, 7 Jul 2023
|
|
9
|
+
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior"
|
|
10
|
+
@site: https://github.com/yorevs/hspylib
|
|
11
|
+
@license: MIT - Please refer to <https://opensource.org/licenses/MIT>
|
|
12
|
+
|
|
13
|
+
Copyright·(c)·2024,·HSPyLib
|
|
14
|
+
"""
|
|
15
|
+
from enum import Enum
|
|
16
|
+
from hspylib.core.metaclass.singleton import AbstractSingleton
|
|
17
|
+
from hspylib.core.preconditions import check_argument, check_not_none
|
|
18
|
+
from hspylib.core.tools.dict_tools import get_or_default_by_key
|
|
19
|
+
from hspylib.core.tools.text_tools import ensure_startswith, environ_name
|
|
20
|
+
from typing import Any
|
|
21
|
+
|
|
22
|
+
import os
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class Preferences(metaclass=AbstractSingleton):
|
|
26
|
+
"""General purpose bas class to provide preference management."""
|
|
27
|
+
|
|
28
|
+
def __init__(self, prefix: str = ""):
|
|
29
|
+
self._prefix = prefix
|
|
30
|
+
self._overrides = {}
|
|
31
|
+
|
|
32
|
+
def __str__(self):
|
|
33
|
+
# fmt: off
|
|
34
|
+
return (
|
|
35
|
+
f"Terminal UI Preferences{os.linesep}"
|
|
36
|
+
f"{'-=' * 20}{os.linesep}"
|
|
37
|
+
+ os.linesep.join([f"|-{p[1:]:<16}: {getattr(self, p)}" for p in vars(self)])
|
|
38
|
+
+ f"{os.linesep}{'-=' * 20}{os.linesep}"
|
|
39
|
+
)
|
|
40
|
+
# fmt: on
|
|
41
|
+
|
|
42
|
+
def __repr__(self):
|
|
43
|
+
return str(self)
|
|
44
|
+
|
|
45
|
+
def __getitem__(self, name: str):
|
|
46
|
+
attr_name = name.replace(self._prefix + ".", "").replace(".", "_")
|
|
47
|
+
return getattr(self, attr_name)
|
|
48
|
+
|
|
49
|
+
def __setitem__(self, name: str, value: Any):
|
|
50
|
+
attr_name = name.replace(self._prefix + ".", "").replace(".", "_")
|
|
51
|
+
curr_val = getattr(self, attr_name)
|
|
52
|
+
t1, t2 = type(curr_val), type(value)
|
|
53
|
+
check_not_none(curr_val, f"Preference '{name}' does not exist")
|
|
54
|
+
check_argument(t1 == t2, f"Preference '{name}' value must be of type '{t1}', not '{t2}'")
|
|
55
|
+
self._overrides[self._get_name(name)] = value
|
|
56
|
+
|
|
57
|
+
def __iter__(self):
|
|
58
|
+
return self._overrides.__iter__()
|
|
59
|
+
|
|
60
|
+
def __len__(self):
|
|
61
|
+
return len(self._overrides)
|
|
62
|
+
|
|
63
|
+
def get_preference(self, name: str, default: Any = None) -> Any:
|
|
64
|
+
"""Retrieve preference for the given specified name. If not found, return the default value.
|
|
65
|
+
:param name: the preference name.
|
|
66
|
+
:param default: the preference default value.
|
|
67
|
+
:return the preference value.
|
|
68
|
+
"""
|
|
69
|
+
pref_name = self._get_name(name)
|
|
70
|
+
value = get_or_default_by_key(self._overrides, pref_name, default)
|
|
71
|
+
if str_value := os.environ.get(environ_name(pref_name)):
|
|
72
|
+
type_attr = type(value)
|
|
73
|
+
try:
|
|
74
|
+
if isinstance(value, Enum):
|
|
75
|
+
value = type_attr[str_value.upper()]
|
|
76
|
+
else:
|
|
77
|
+
value = type_attr(str_value)
|
|
78
|
+
except (KeyError, TypeError, ValueError):
|
|
79
|
+
pass
|
|
80
|
+
return value
|
|
81
|
+
|
|
82
|
+
def _get_name(self, name: str) -> str:
|
|
83
|
+
"""Retrieve the preference name based. It uses the specified prefix to compose the actual name.
|
|
84
|
+
:param name: the preference name.
|
|
85
|
+
:return the prefixed preference name.
|
|
86
|
+
"""
|
|
87
|
+
return ensure_startswith(name, self._prefix + ".")
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# _*_ coding: utf-8 _*_
|
|
2
|
+
#
|
|
3
|
+
# hspylib-clitt v0.9.119
|
|
4
|
+
#
|
|
5
|
+
# Package: main.build.lib.build.lib.build.lib.build.lib.clitt.core.term
|
|
6
|
+
"""Package initialization."""
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
'commons',
|
|
10
|
+
'cursor',
|
|
11
|
+
'screen',
|
|
12
|
+
'terminal'
|
|
13
|
+
]
|
|
14
|
+
__version__ = '0.9.119'
|