flask-vite-0.2.3
توضیحات
Flask+Vite integration.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | flask-vite-0.2.3 |
| نام | flask-vite |
| نسخه کتابخانه | 0.2.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Abilian SAS |
| ایمیل نویسنده | contact@abilian.com |
| آدرس صفحه اصلی | https://github.com/abilian/flask-vite |
| آدرس اینترنتی | https://pypi.org/project/flask-vite/ |
| مجوز | - |
# Flask-Vite
[](https://pypi.python.org/pypi/flask-tailwind)
Plugin to simplify use of Vite from Flask.
- Status: Alpha.
- Free software: MIT license
## Usage
Instantiate the Flask extension as you do for other Flask extensions:
```python
from flask_vite import Vite
app = Flask(...)
vite = Vite(app)
# or
vite = Vite()
vite.init_app(app)
```
Then you can use the following commands:
```text
$ flask vite
Usage: flask vite [OPTIONS] COMMAND [ARGS]...
Perform Vite operations.
Options:
--help Show this message and exit.
Commands:
build Build the Vite assets.
check-updates Check outdated Vite dependencies.
init Init the vite/ directory (if it doesn't exist)
install Install the dependencies using npm.
start Start watching source changes for dev.
update Update Vite and its dependencies, if needed.
```
## Features
- Manages a `vite` directory where you put your front-end source code.
- Auto-injects vite-generated assets into your HTML pages.
## Credits
This project is inspired by the
[Django-Tailwind](https://github.com/timonweb/django-tailwind) project.
This package was created with
[Cookiecutter](https://github.com/audreyr/cookiecutter), using the
[abilian/cookiecutter-abilian-python](https://github.com/abilian/cookiecutter-abilian-python)
project template.
نیازمندی
| مقدار | نام |
|---|---|
| >=2,<3 | flask |
| >=12,<13 | rich |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl flask-vite-0.2.3:
pip install flask-vite-0.2.3.whl
نصب پکیج tar.gz flask-vite-0.2.3:
pip install flask-vite-0.2.3.tar.gz