{"id":26930364,"url":"https://github.com/blobbybilb/keyui.py","last_synced_at":"2025-04-02T06:19:07.057Z","repository":{"id":241767848,"uuid":"623813014","full_name":"blobbybilb/KeyUI.py","owner":"blobbybilb","description":"A keyboard user interface framework for python","archived":false,"fork":false,"pushed_at":"2023-04-05T06:50:10.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-30T02:14:40.998Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blobbybilb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-04-05T06:25:36.000Z","updated_at":"2024-05-30T02:14:43.804Z","dependencies_parsed_at":"2024-05-30T02:14:42.642Z","dependency_job_id":null,"html_url":"https://github.com/blobbybilb/KeyUI.py","commit_stats":null,"previous_names":["blobbybilb/keyui.py"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blobbybilb%2FKeyUI.py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blobbybilb%2FKeyUI.py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blobbybilb%2FKeyUI.py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blobbybilb%2FKeyUI.py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blobbybilb","download_url":"https://codeload.github.com/blobbybilb/KeyUI.py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246763877,"owners_count":20829800,"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","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-04-02T06:19:06.368Z","updated_at":"2025-04-02T06:19:07.048Z","avatar_url":"https://github.com/blobbybilb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KeyUI.py\nA keyboard user interface framework for python\n\n### What's a \"keyboard user interface\"?\nI was working on a project that does something when `\\\\\u003csomething\u003e\\\u003csomething\u003e\\\\` is typed (anywhere, eg. in a text document). I wrote this simple class as a part of that; as it could have more general uses, I called it \"KeyUI.py\" for keyboard user iterface (because I couldn't think of anything else) and put it here.\n\n### Usage\ndownload the keyUI.py file\n\n```python\nfrom keyUI import KeyUI\n```\n\n\n#### from the KeyUI class:\nUsage:\n1. Initialize KeyUI -- `KeyUI()`\n2. Set handler -- `KeyUI().set_handler(handler_func)` where `handler_func` is a function that takes a list of strings as an argument.\n3. Run -- `KeyUI().run()`\n\nExample:\n```\ndef handler(args: list[str]):\n    print(args)\n\nKeyUI().set_handler(handler).run()\n```\n\n---\n\nCustom separator and delimiter (Note: not yet supported, may not work):\n\nset `KeyUI().separator`/`KeyUI().delimiter` to your custom separator/delimiter\n\n\n\n### License\nGNU GPLv3","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblobbybilb%2Fkeyui.py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblobbybilb%2Fkeyui.py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblobbybilb%2Fkeyui.py/lists"}