|
|
@@ -1,111 +1,9 @@ |
|
|
|
<h1 align='center'>Vitesse-Python</h1> |
|
|
|
<h1 align='center'>EMC</h1> |
|
|
|
|
|
|
|
<p align='center'> |
|
|
|
Mocking up web app with <b>Vitesse</b><sup><em>(speed)</em></sup><br> |
|
|
|
</p> |
|
|
|
|
|
|
|
<br> |
|
|
|
|
|
|
|
|
|
|
|
<br> |
|
|
|
|
|
|
|
<p align='center'> |
|
|
|
<b>简体中文</b> | <a href="">English</a> |
|
|
|
<!-- Contributors: Thanks for getting interested, however we DON'T accept new transitions to the README, thanks. --> |
|
|
|
</p> |
|
|
|
|
|
|
|
<br> |
|
|
|
|
|
|
|
## Introduction |
|
|
|
|
|
|
|
### 👀 `Vitesse-Python` |
|
|
|
|
|
|
|
- Vitesse-Python 帮助您构建 windows 平台客户端的应用,不再受pyqt的困扰。 |
|
|
|
- Vitesse-Python 的视图层采用 HTML+JS+CSS,业务层采用本地 Python。 |
|
|
|
- Vitesse-Python 采用了 Vite 的开发模式,支持热更新,开发体验更佳。 |
|
|
|
- Vitesse-Python 采用了 PyInstaller 打包,支持 windows 平台,打包体积更小。 |
|
|
|
- Vitesse-Python 采用了 pywebview 作为渲染引擎,支持 windows 平台,渲染速度更快。 |
|
|
|
- Vitesse-Python 采用了 Vue3、Vitesse 作为前端框架,代码编写更优雅从容。 |
|
|
|
|
|
|
|
### 📦 适用场景 |
|
|
|
|
|
|
|
- 对软件的用户界面有一定美感要求 |
|
|
|
- 需要用到 Python 中的人工智能等模块 |
|
|
|
- 考虑搭建本地应用,使用本机计算和存储资源 |
|
|
|
- 对软件功能要求比较高,需要自己开发 |
|
|
|
|
|
|
|
### 👨💻 适用人群 |
|
|
|
|
|
|
|
- 熟悉 Vue3 和 Python 编程的程序员。 |
|
|
|
- 熟悉 HTML、CSS、JS 的前端工程师。 |
|
|
|
- 熟悉 Python 的数据分析师。 |
|
|
|
- 熟悉 Python 的机器学习工程师。 |
|
|
|
- 熟悉 Python 的人工智能工程师。 |
|
|
|
- 熟悉 Python 的软件工程师。 |
|
|
|
|
|
|
|
## Features |
|
|
|
|
|
|
|
- ⚡️ [Vue 3](https://github.com/vuejs/core), [Vite 3](https://github.com/vitejs/vite), [pnpm](https://pnpm.io/), [ESBuild](https://github.com/evanw/esbuild) - born with fastness |
|
|
|
|
|
|
|
- 🗂 [File based routing](./src/pages) |
|
|
|
|
|
|
|
- 📦 [Components auto importing](./src/components) |
|
|
|
|
|
|
|
- 🍍 [State Management via Pinia](https://pinia.vuejs.org/) |
|
|
|
|
|
|
|
- 📑 [Layout system](./src/layouts) |
|
|
|
|
|
|
|
- 📲 [PWA](https://github.com/antfu/vite-plugin-pwa) |
|
|
|
|
|
|
|
- 🎨 [TailwindCss](https://github.com/) - the instant on-demand atomic CSS engine |
|
|
|
|
|
|
|
- 😃 [Use icons from any icon sets with classes](https://github.com/antfu/unocss/tree/main/packages/preset-icons) |
|
|
|
|
|
|
|
- 🌍 [I18n ready](./locales) |
|
|
|
|
|
|
|
- 🔎 [Component Preview](https://github.com/johnsoncodehk/vite-plugin-vue-component-preview) |
|
|
|
|
|
|
|
- 🗒 [Markdown Support](https://github.com/antfu/vite-plugin-vue-markdown) |
|
|
|
|
|
|
|
- 🔥 Use the [new `<script setup>` syntax](https://github.com/vuejs/rfcs/pull/227) |
|
|
|
|
|
|
|
- 🤙🏻 [Reactivity Transform](https://vuejs.org/guide/extras/reactivity-transform.html) enabled |
|
|
|
|
|
|
|
- 📥 [APIs auto importing](https://github.com/antfu/unplugin-auto-import) - use Composition API and others directly |
|
|
|
|
|
|
|
- 🖨 Static-site generation (SSG) via [vite-ssg](https://github.com/antfu/vite-ssg) |
|
|
|
|
|
|
|
- 🦔 Critical CSS via [critters](https://github.com/GoogleChromeLabs/critters) |
|
|
|
|
|
|
|
- 🦾 TypeScript, of course |
|
|
|
|
|
|
|
- ☁️ Deploy on Netlify, zero-config |
|
|
|
|
|
|
|
- 🎉 <strong>[Pywebview](https://pywebview.flowrl.com/) inside </strong> |
|
|
|
|
|
|
|
<br> |
|
|
|
|
|
|
|
|
|
|
|
## Try it now! |
|
|
|
|
|
|
|
> Vitesse-Python requires Node >=14.18 & Python >=3.7 |
|
|
|
|
|
|
|
```bash |
|
|
|
|
|
|
|
### GitHub Template |
|
|
|
|
|
|
|
[Create a repo from this template on GitHub](https://github.com/MarleneJiang/vitesse-python). |
|
|
|
|
|
|
|
### Clone to local |
|
|
|
|
|
|
|
If you prefer to do it manually with the cleaner git history |
|
|
|
|
|
|
|
```bash |
|
|
|
git clone https://github.com/MarleneJiang/vitesse-python.git |
|
|
|
cd vitesse-python |
|
|
|
pnpm inits # If you don't have pnpm installed, run: npm install -g pnpm |
|
|
|
``` |
|
|
|
|
|
|
|
## Usage |
|
|
|
|
|
|
|
### 开发前端 |
|
|
@@ -238,4 +136,4 @@ window.evaluate_js(code, callback=None)允许您使用同步返回的最后一 |
|
|
|
|
|
|
|
## THX |
|
|
|
|
|
|
|
- [vue-pywebview-pyinstaller](https://github.com/pangao1990/vue-pywebview-pyinstaller) |
|
|
|
- [vue-pywebview-pyinstaller](https://github.com/pangao1990/vue-pywebview-pyinstaller) |