flet-tools 0.23.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: flet-tools
|
|
3
|
+
Version: 0.23.0
|
|
4
|
+
Summary: Utility helpers, reusable components and storage layer for Flet 0.23.0 applications
|
|
5
|
+
Project-URL: Homepage, https://github.com/example/flet-utils
|
|
6
|
+
Project-URL: Bug Tracker, https://github.com/example/flet-utils/issues
|
|
7
|
+
Author: flet-utils contributors
|
|
8
|
+
License: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: components,flet,sqlite,ui,utilities
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
19
|
+
Classifier: Topic :: Software Development :: User Interfaces
|
|
20
|
+
Requires-Python: >=3.8
|
|
21
|
+
Requires-Dist: flet==0.23.0
|
|
22
|
+
Requires-Dist: openpyxl==3.1.5
|
|
23
|
+
Requires-Dist: pandas==3.0.0
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# flet-utils
|
|
27
|
+
|
|
28
|
+
Utility helpers, reusable components and a lightweight storage layer for [Flet](https://flet.dev) `0.23.0` applications.
|
|
29
|
+
|
|
30
|
+
## Features
|
|
31
|
+
|
|
32
|
+
- **AppStorage** — one-line SQLite setup: creates all required tables automatically.
|
|
33
|
+
- **import_data** — load rows from an `.xlsx` file into any table.
|
|
34
|
+
- **build_columns / build_rows** — generate `DataColumn` / `DataRow` lists with optional action buttons based on the current user role.
|
|
35
|
+
- **build_product_cards** — render a list of product `Card` widgets with discount highlighting and role-based controls.
|
|
36
|
+
- **run** — launch the bundled reference application.
|
|
37
|
+
|
|
38
|
+
## Requirements
|
|
39
|
+
|
|
40
|
+
- Python ≥ 3.8
|
|
41
|
+
- `flet == 0.23.0`
|
|
42
|
+
- `pandas`
|
|
43
|
+
- `openpyxl`
|
|
44
|
+
|
|
45
|
+
## Installation
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
pip install flet-utils
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Quick start
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
from flet_utils import AppStorage, import_data
|
|
55
|
+
|
|
56
|
+
store = AppStorage("my_app")
|
|
57
|
+
db = store.db
|
|
58
|
+
|
|
59
|
+
import_data(db, "products.xlsx", "products")
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Run the reference app
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
flet-utils
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
or from Python:
|
|
69
|
+
|
|
70
|
+
```python
|
|
71
|
+
from flet_utils import run
|
|
72
|
+
run()
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Module overview
|
|
76
|
+
|
|
77
|
+
| Module | Purpose |
|
|
78
|
+
|---|---|
|
|
79
|
+
| `flet_utils.storage` | `AppStorage` — initialises the SQLite database |
|
|
80
|
+
| `flet_utils.importer` | `import_data` — Excel → table |
|
|
81
|
+
| `flet_utils.components` | `build_columns`, `build_rows`, `build_product_cards` |
|
|
82
|
+
| `flet_utils.app` | `main`, `run` — complete Flet application |
|
|
83
|
+
|
|
84
|
+
## License
|
|
85
|
+
|
|
86
|
+
MIT
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
flet_tools-0.23.0.dist-info/METADATA,sha256=clOIuM9Ad2RLDktsBqKo6qaHPGefkN-vGF4roP-kDZM,2420
|
|
2
|
+
flet_tools-0.23.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
3
|
+
flet_tools-0.23.0.dist-info/licenses/LICENSE,sha256=lutaVWsejRlunJKfXKi1RhfaujWwdx0TIPIDYJEoytI,1080
|
|
4
|
+
flet_tools-0.23.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 flet-utils contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|