{"id":27976533,"url":"https://github.com/maplelost/tauri-vite-python-template","last_synced_at":"2025-08-04T08:36:33.000Z","repository":{"id":282167304,"uuid":"947691112","full_name":"maplelost/tauri-vite-python-template","owner":"maplelost","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-14T04:02:09.000Z","size":196,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T01:34:32.821Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","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/maplelost.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":"2025-03-13T05:04:09.000Z","updated_at":"2025-05-07T13:47:49.000Z","dependencies_parsed_at":"2025-03-13T06:32:30.099Z","dependency_job_id":null,"html_url":"https://github.com/maplelost/tauri-vite-python-template","commit_stats":null,"previous_names":["maplelost/tauri-python-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/maplelost/tauri-vite-python-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maplelost%2Ftauri-vite-python-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maplelost%2Ftauri-vite-python-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maplelost%2Ftauri-vite-python-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maplelost%2Ftauri-vite-python-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maplelost","download_url":"https://codeload.github.com/maplelost/tauri-vite-python-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maplelost%2Ftauri-vite-python-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268671661,"owners_count":24288211,"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-08-04T02:00:09.867Z","response_time":79,"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-05-08T01:27:42.747Z","updated_at":"2025-08-04T08:36:32.949Z","avatar_url":"https://github.com/maplelost.png","language":"Vue","readme":"# Tauri + Vue + Python 桌面应用模板\n\n这是一个集成了 Tauri、Vue 3 和 Python 后端的桌面应用程序模板。该模板允许您使用 Vue 构建前端 UI，使用 Rust/Tauri\n创建跨平台桌面应用程序，并使用 Python 处理后端逻辑。\n\n## 技术栈\n\n- **前端**: Vue 3 + TypeScript\n- **桌面框架**: Tauri 2.0 (Rust)\n- **后端**: Python (FastAPI)\n\n## 项目结构\n\n```plaintext\n├── src/ # Vue前端代码\n├── src-tauri/ # Tauri/Rust代码\n├── python/ # Python后端代码\n└── public/ # 静态资源\n```\n\n## 功能特性\n\n- 跨平台桌面应用支持 (Windows, macOS, Linux)\n- Vue 3 + TypeScript提供现代化前端开发体验\n- Python后端通过FastAPI提供API接口\n- Tauri提供安全、轻量的桌面应用包装\n- 应用关闭时自动停止Python进程\n\n## 环境要求\n\n- Node.js 16+\n- Rust 1.70+\n- Python 3.8+\n- [Tauri系统依赖](https://tauri.app/v1/guides/getting-started/prerequisites)\n\n## 安装\n\n### 1. 克隆仓库\n\n```bash\ngit clone https://github.com/yourusername/tauri-vue-python-template.git\ncd tauri-vue-python-template\n````\n\n### 2. 安装前端依赖\n\n```bash\nnpm install\n```\n\n### 3. 安装 Python 依赖\n\n```bash\npip install -r requirements.txt\n```\n\n## 开发\n\n### 开发模式\n\n```bash\nnpm run build:sidecar-winos\n# npm run build:sidecar-macos\n# npm run build:sidecar-linux\nnpm run tauri dev\n```\n\n此命令将启动:\n\n- Vite 开发服务器 (Vue 前端)\n- Tauri 应用程序\n- Python FastAPI 服务器 (通过 Tauri sidecar 自动启动)\n\n### 构建应用\n\n```bash\nnpm run tauri build\n```\n\n这将创建一个生产就绪的桌面应用程序，包含打包的 Python 环境。\n\n## 工作原理\n\n1. 应用启动时，Tauri (Rust) 会自动启动 Python 后端作为 sidecar 进程\n2. Vue 前端通过 HTTP 与 Python FastAPI 后端通信 (端口 8008)\n3. 应用关闭时，所有进程会被自动清理\n\n## 许可\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaplelost%2Ftauri-vite-python-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaplelost%2Ftauri-vite-python-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaplelost%2Ftauri-vite-python-template/lists"}