fletil-0.3.0
توضیحات
A CLI for the Flet framework.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fletil-0.3.0 |
| نام | fletil |
| نسخه کتابخانه | 0.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Andrew Phillips |
| ایمیل نویسنده | skeledrew@gmail.com |
| آدرس صفحه اصلی | https://gitlab.com/skeledrew/fletil |
| آدرس اینترنتی | https://pypi.org/project/fletil/ |
| مجوز | MIT |
# Fletil
A CLI for the [Flet](https://flet.dev/) framework.
## Features
- Exposes the standard run options for a Flet app.
- Implements "hot reload": reloads the targeted source file whenever changes are saved, attempting to preserve the running state of controls.
+ State to preserve must be specified by passing a unique ID and list of attribute names as `data` to the controls, eg. `TextField(value="hello world", data={"_cid": "greet_text", "_state_attrs": ["value"]})`.
+ If a Syntax error is detected during a reload, it is aborted.
- Developer buttons (a breakpoint button and code status indicator) can be temporarily injected into the page.
## Installing
NOTE: this also installs `Flet` if it isn't present.
- From PyPI:
+ `$ pip install fletil`.
- From GitLab (NOTE: development is managed by Poetry):
+ `$ git clone https://gitlab.com/skeledrew/fletil`
+ `$ cd fletil`
+ `$ poetry install`
## Usage
- Ensure script is import-friendly, ie. invoke runner with ([doc](https://docs.python.org/3/library/__main__.html)):
```python
if __name__ == "__main__":
flet.app(target=main)
```
and not:
``` python
flet.app(target=main)
```
- Further help is available via `$ fletil --help`.
## License
MIT.
نیازمندی
| مقدار | نام |
|---|---|
| >=0.1.52,<0.2.0 | flet |
| >=2.1.9,<3.0.0 | watchdog |
| >=0.4.0,<0.5.0 | fire |
| >=0.6.0,<0.7.0 | loguru |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10,<4.0 | Python |
نحوه نصب
نصب پکیج whl fletil-0.3.0:
pip install fletil-0.3.0.whl
نصب پکیج tar.gz fletil-0.3.0:
pip install fletil-0.3.0.tar.gz