{"id":21275672,"url":"https://github.com/halimath/termapp","last_synced_at":"2026-05-20T09:06:38.629Z","repository":{"id":55183758,"uuid":"522929775","full_name":"halimath/termapp","owner":"halimath","description":"Build terminal applications with python","archived":false,"fork":false,"pushed_at":"2022-08-12T07:33:06.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-10T03:44:37.601Z","etag":null,"topics":["python","terminal"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/halimath.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}},"created_at":"2022-08-09T11:56:59.000Z","updated_at":"2023-02-22T08:11:15.000Z","dependencies_parsed_at":"2022-08-14T15:21:31.535Z","dependency_job_id":null,"html_url":"https://github.com/halimath/termapp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/halimath/termapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halimath%2Ftermapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halimath%2Ftermapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halimath%2Ftermapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halimath%2Ftermapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halimath","download_url":"https://codeload.github.com/halimath/termapp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halimath%2Ftermapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33253076,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T04:48:54.280Z","status":"ssl_error","status_checked_at":"2026-05-20T04:48:10.851Z","response_time":356,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["python","terminal"],"created_at":"2024-11-21T09:36:05.287Z","updated_at":"2026-05-20T09:06:38.596Z","avatar_url":"https://github.com/halimath.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# termapp\n\n[![CI Status](https://github.com/halimath/termapp/workflows/CI/badge.svg)](https://github.com/halimath/termapp/actions/workflows/ci.yaml)\n[![Releases](https://img.shields.io/github/v/release/halimath/termapp.svg)](https://github.com/halimath/termapp/releases)\n[![PyPi](https://img.shields.io/pypi/v/termapp.svg)](https://pypi.org/project/termapp/)\n[![Wheel](https://img.shields.io/pypi/wheel/termapp.svg)](https://pypi.org/project/termapp/)\n[![Python Versions](https://img.shields.io/pypi/pyversions/termapp.svg)](https://pypi.org/project/termapp/)\n\nCreate terminal applications with python.\n\n# Installation\n\n```shell\npip install termapp\n```\n\n# Usage\n\n```python\nimport asyncio\n\nfrom termapp import __version__\nfrom termapp.styles import BOLD\nfrom termapp.asyncio import create_app\n\napp = create_app()\n\n\nasync def start():\n    await app.write_line(f\"termapp demo app v{__version__}\", BOLD)\n    await app.write_line('This app demonstrates the capabilities of the termapp module.')\n\n    await app.info('info is used to introduce an important step in the app.')\n    await app.details('details can be used to add additional informationen.')\n\n    await app.warn('warn shows a warning')\n    await app.details('which can also be enhanced with a details message.')\n\n    await app.danger('error reports an error message')\n    await app.details('which can also be enhanced with a details message.')\n\n    await app.start_progress(show_completion=True)\n    await asyncio.sleep(5)\n    await app.stop_progress()\n    await app.details('Longer operation finished.')\n\n    await app.success('success is used to indicate success')\n\n    await app.failure('failure is used to indicate the operation failed')\n\n\nasync def warn_later():\n    await asyncio.sleep(0.5)\n    await app.update_progress(completion=0.3, message='Some task to be done')\n    await asyncio.sleep(0.5)\n    await app.update_progress(completion=0.6)\n    await asyncio.sleep(0.5)\n    await app.update_progress(message='Another task to be done')\n    await asyncio.sleep(0.5)\n    await app.update_progress(completion=0.9)\n    await asyncio.sleep(1)\n    await app.warn('Something unexpected happened')\n\n\nasync def main():\n    return await asyncio.gather(start(), warn_later())\n\nasyncio.run(main())\n```\n\n# License\n\nCopyright 2022 Alexander Metzner.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalimath%2Ftermapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalimath%2Ftermapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalimath%2Ftermapp/lists"}