{"id":31065781,"url":"https://github.com/henriqueslab/easy-gui-prompt","last_synced_at":"2025-09-15T16:57:18.353Z","repository":{"id":241364394,"uuid":"805362311","full_name":"HenriquesLab/easy-gui-prompt","owner":"HenriquesLab","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-04T15:51:22.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-24T18:50:01.118Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HenriquesLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-24T12:16:24.000Z","updated_at":"2025-02-04T15:51:27.000Z","dependencies_parsed_at":"2024-05-28T01:22:05.474Z","dependency_job_id":"86e35a6f-bca8-4ef4-beeb-8a95ea112b0b","html_url":"https://github.com/HenriquesLab/easy-gui-prompt","commit_stats":null,"previous_names":["henriqueslab/easy-gui-prompt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HenriquesLab/easy-gui-prompt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenriquesLab%2Feasy-gui-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenriquesLab%2Feasy-gui-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenriquesLab%2Feasy-gui-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenriquesLab%2Feasy-gui-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HenriquesLab","download_url":"https://codeload.github.com/HenriquesLab/easy-gui-prompt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HenriquesLab%2Feasy-gui-prompt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275289706,"owners_count":25438494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-15T16:57:16.395Z","updated_at":"2025-09-15T16:57:18.328Z","avatar_url":"https://github.com/HenriquesLab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Easy GUI Prompt\n\n[![PyPI version](https://badge.fury.io/py/easy_gui_prompt.svg)](https://badge.fury.io/py/easy_gui_prompt)\n[![Python versions](https://img.shields.io/pypi/pyversions/easy_gui_prompt.svg)](https://pypi.org/project/easy_gui_prompt/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA Python library to simplify the creation of GUI elements in the terminal using prompt-toolkit.\n\n## Installation\n\nInstall easy_gui_prompt using pip:\n\n```bash\npip install easy_gui_prompt\n```\n\n## Usage\n\nImport the `EasyGUI` class:\n\n```python\nfrom easy_gui_prompt import EasyGUI\n```\n\nCreate an instance of `EasyGUI` with a title:\n\n```python\ngui = EasyGUI(\"My GUI\")\n```\n\nAdd GUI elements using the available methods:\n\n```python\n# Yes/No prompt\nresult = gui.add_yes_no(\"confirm\", \"Do you want to proceed?\", remember_value=True)\n\n# Text input\nname = gui.add_text(\"name\", \"Enter your name:\", remember_value=True)\n\n# Integer range\nage = gui.add_int_range(\"age\", \"Enter your age:\", 18, 100, remember_value=True)\n```\n\nSave the settings to a configuration file:\n\n```python\ngui.save_settings()\n```\n\nRestore default settings:\n\n```python\ngui.restore_default_settings()\n```\n\n## Configuration\n\nThe library automatically saves user preferences to onfiguration files in `~/.easy_gui/`. This allows the GUI to remember the last entered values when `remember_value=True` is used.\n\nYou can also access the configuration directly using the `get_config` and `save_config` functions:\n\n```python\nfrom easy_gui_prompt import get_config, save_config\n\nconfig = get_config(\"My GUI\")\nsave_config(\"My GUI\", config)\n```\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE.txt) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenriqueslab%2Feasy-gui-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenriqueslab%2Feasy-gui-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenriqueslab%2Feasy-gui-prompt/lists"}