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_toolkit-0.23.0.tar.gz
(5.1 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_toolkit-0.23.0.tar.gz.
File metadata
- Download URL: flet_toolkit-0.23.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ce0ad13e0dddecb305ca02c10acb808438868ad3e3dd2281b8837235fde399a
|
|
| MD5 |
69a61fee425424e9b00302af61dc0aaa
|
|
| BLAKE2b-256 |
6ff0a6b260848e486115658828de5762ac80a9de81e4a2960dda0eea122d8f0e
|
File details
Details for the file flet_toolkit-0.23.0-py3-none-any.whl.
File metadata
- Download URL: flet_toolkit-0.23.0-py3-none-any.whl
- Upload date:
- Size: 6.2 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 |
b1c7d8063794fef9513debf3990398316157a7692947c80d34ae0fd18d8bb82d
|
|
| MD5 |
7467d7e41117a375eab1540b09d7395a
|
|
| BLAKE2b-256 |
47e5a2c93de569ca0eb681a8c4308a334015a55bd3fc3401ed5520772a55b7e9
|