Skip to main content

GUI for user interaction to Hab.

Project description

Hab Gui

A graphical user interface built on top of hab to take hab out of the shell.

image

Features

  • Gui for selecting hab URI's and launching aliases.
  • Gui for setting the current uri.
  • hab gui sub-command
  • habw command allows using hab without popup consoles on windows.
  • Customization of hab-gui using entry_points defined in hab site json files.

Quickstart

  1. Enable the use of hab gui by adding the entry_point in your site json file. You can use the example site files that come in the hab and hab-gui repos.
export HAB_PATHS="/path/to/hab-gui/tests/site/hab-gui.json:/path/to/hab/tests/site_main.json"

hab-gui.json extends hab's cli by adding the gui comand

  1. Use hab gui to launch the alias launch window.

    hab gui launch
    

    Or update the URI saved in the user prefs.

    hab gui set-uri
    

hab gui sub-command

Using hab entry points you can add a gui sub-command to hab. This allows you to launch hab-gui commands from the existing hab shell commands.

{
    "prepend": {
        "entry_points": {
            "cli": {
                "gui": "hab_gui.cli:gui"
            }
        }
    }
}

This is a minimal site json file enabling the use of hab gui that can be added to your existing site files.

habw.exe

When hab-gui is installed it adds the command habw as a using gui_scripts. This is useful for windows users as it prevents showing a command prompt window while using the other hab gui features. This exe uses the same cli interface as hab so you can convert any existing command to using habw. Just keep in mind that you won't see any text output on windows, so you may want to only use it when using the hab gui sub-command.

Hab-gui Entry Points

By default hab-gui uses fairly simple gui interfaces like a combo box for URI picking and simple buttons to launch aliases. Using the hab entry points system you can implement your own widgets extending or completely re-implementing them.

Feature Description Multiple values
hab_gui_init Used to customize the init of hab gui's launched from the command line. By default this installs a sys.excepthook that captures any python exceptions and shows them in a QMessageBox dialog. See hab-gui-init.json. Only the first is used, the rest are discarded.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hab_gui-0.3.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file hab_gui-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: hab_gui-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for hab_gui-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06c5942a601c295c1a59cf53830010540bac55e5a1d43b80f33063a05f99ad91
MD5 28b71ac61d5707164758bf283b0cb811
BLAKE2b-256 de696474a872cc1cdf19ae67bf7bac216d0eeb898189dce45d1a337111527fa4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page