Utility helpers, reusable components and storage layer for Flet 0.23.0 applications
Project description
flet-utils
Utility helpers, reusable components and a lightweight storage layer for Flet 0.23.0 applications.
Features
- AppStorage — one-line SQLite setup: creates all required tables automatically.
- import_data — load rows from an
.xlsxfile into any table. - build_columns / build_rows — generate
DataColumn/DataRowlists with optional action buttons based on the current user role. - build_product_cards — render a list of product
Cardwidgets with discount highlighting and role-based controls. - run — launch the bundled reference application.
Requirements
- Python ≥ 3.8
flet == 0.23.0pandasopenpyxl
Installation
pip install flet-utils
Quick start
from flet_utils import AppStorage, import_data
store = AppStorage("my_app")
db = store.db
import_data(db, "products.xlsx", "products")
Run the reference app
flet-utils
or from Python:
from flet_utils import run
run()
Module overview
| Module | Purpose |
|---|---|
flet_utils.storage |
AppStorage — initialises the SQLite database |
flet_utils.importer |
import_data — Excel → table |
flet_utils.components |
build_columns, build_rows, build_product_cards |
flet_utils.app |
main, run — complete Flet application |
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flet_tools-0.23.0.tar.gz
(6.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flet_tools-0.23.0.tar.gz.
File metadata
- Download URL: flet_tools-0.23.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1780302146262c37d991d3d4117b91dfda4d641cfa10b79f647520575efc394f
|
|
| MD5 |
e16db745c1e281f025bbabf1da76877c
|
|
| BLAKE2b-256 |
bc1c6adaf504e5333f5315b1a40de6351e950e2f9e378d53aa4438f35d61f358
|
File details
Details for the file flet_tools-0.23.0-py3-none-any.whl.
File metadata
- Download URL: flet_tools-0.23.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bb0e0f8887686fdc1a414607651a8d371aed13717183a02c707cd5bdf7626af
|
|
| MD5 |
906e0a5df05d23d3f8fcda018cede045
|
|
| BLAKE2b-256 |
50f9f4ec0ea8c02d877df4eab473d336d17abf26c58c7877560f2498df4e9a85
|