{"id":13623197,"url":"https://github.com/touch-callable/touch-callable","last_synced_at":"2025-04-15T14:32:19.076Z","repository":{"id":36525667,"uuid":"216258185","full_name":"touch-callable/touch-callable","owner":"touch-callable","description":"Automatically generate a Web UI for Python function using type annotations.","archived":false,"fork":false,"pushed_at":"2023-01-04T12:33:50.000Z","size":3647,"stargazers_count":40,"open_issues_count":27,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T03:17:42.579Z","etag":null,"topics":["callable","dashboard","easy-to-use","function","python3","react","serverless","type-annotations","type-hint","ui","web"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/touch-callable.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":"2019-10-19T19:16:20.000Z","updated_at":"2024-02-01T09:22:04.000Z","dependencies_parsed_at":"2023-01-17T02:30:37.430Z","dependency_job_id":null,"html_url":"https://github.com/touch-callable/touch-callable","commit_stats":null,"previous_names":["pengwk/touch-callable"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touch-callable%2Ftouch-callable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touch-callable%2Ftouch-callable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touch-callable%2Ftouch-callable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touch-callable%2Ftouch-callable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/touch-callable","download_url":"https://codeload.github.com/touch-callable/touch-callable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657912,"owners_count":21140846,"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":["callable","dashboard","easy-to-use","function","python3","react","serverless","type-annotations","type-hint","ui","web"],"created_at":"2024-08-01T21:01:29.074Z","updated_at":"2025-04-15T14:32:18.683Z","avatar_url":"https://github.com/touch-callable.png","language":"JavaScript","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"200\" src=\"./touch-callable.svg\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eTouch-Callable\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimage src=\"https://img.shields.io/pypi/v/touch-callable.svg\" /\u003e\n  \u003cimage src=\"https://img.shields.io/pypi/dm/touch-callable.svg\" /\u003e\n\u003c/p\u003e\n\n\u003cp\u003e\nThe web framework for less serious application.\n\nAutomatically generate a Web UI for Python function using type annotations.\n\u003cp\u003e\n\nEnglish | [简体中文](./README_zh_CN.md)\n\n## Support platforms\n\n- macOS\n- Ubuntu\n- Windows\n\n## Installation\n\nOnly support Python 3.6!\n\n`pip install -U touch-callable`\n\n## Supported parameter value types\n\n- str\n- int\n- float\n- bool\n- datetime.datetime\n- datetime.date\n- datetime.time\n- enum.Enum\n- io.BytesIO\n- typing.BinaryIO\n\n## Supported return value types\n\n- All objects that can be `json.dumps`\n- `open('filename.xxx', 'rb')`, return values' annotation should be `io.BufferedReader`\n\n## CommandLine args\n\n#### `--host` \n\nDefault is 127.0.0.1, you can only visit it on your computer.\n\nIf you want to listen all networks：\n\n`$ touch-callable example.py --host 0.0.0.0`\n\n#### `--port` \n\nDefault is 6789.\n\n#### `--debug` enable Flask debug feature(not recommend)\n\nDefault is False, if you want to enable it\n\n`$ touch-callable example.py --debug True`\n\n## Screenshot\n\n#### callables\n\n![callables](https://raw.githubusercontent.com/pengwk/touch-callable/master/callables_en_us.png)\n\n## Examples\n\n### All support types\n\n```python\n# example.py\nfrom datetime import datetime, date, time\nfrom enum import Enum\nimport io\nimport typing\n\n\nclass Languages(Enum):\n    Python = 'Python'\n    PHP = 'PHP'\n    Java = 'Java'\n\n\ndef demo(int_: int, str_: str, float_: float, bool_: bool,\n         enum_: Languages,\n         datetime_: datetime = datetime.now(),\n         date_: date = date.today(),\n         time_: time = time(1, 2, 3),\n         bytes_io: io.BytesIO = None,\n         binary_io: typing.BinaryIO = None):\n    pass\n```\n\n`$ touch-callable example.py`\n\n![demo_with_reponsive_ui](https://raw.githubusercontent.com/pengwk/touch-callable/master/demo_all_args_with_responsive_ui_en_us.png)\n\n### Return file\n\n```python\nimport io\n\ndef return_file() -\u003e io.BufferedReader:\n  return open('filename', 'rb')\n```\n\n## Stargazers\n\n[![Stargazers over time](https://starchart.cc/pengwk/touch-callable.svg)](https://starchart.cc/pengwk/touch-callable)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftouch-callable%2Ftouch-callable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftouch-callable%2Ftouch-callable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftouch-callable%2Ftouch-callable/lists"}