Skip to main content

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 .xlsx file into any table.
  • build_columns / build_rows — generate DataColumn / DataRow lists with optional action buttons based on the current user role.
  • build_product_cards — render a list of product Card widgets with discount highlighting and role-based controls.
  • run — launch the bundled reference application.

Requirements

  • Python ≥ 3.8
  • flet == 0.23.0
  • pandas
  • openpyxl

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flet_tools-0.23.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

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

Hashes for flet_tools-0.23.0.tar.gz
Algorithm Hash digest
SHA256 1780302146262c37d991d3d4117b91dfda4d641cfa10b79f647520575efc394f
MD5 e16db745c1e281f025bbabf1da76877c
BLAKE2b-256 bc1c6adaf504e5333f5315b1a40de6351e950e2f9e378d53aa4438f35d61f358

See more details on using hashes here.

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

Hashes for flet_tools-0.23.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3bb0e0f8887686fdc1a414607651a8d371aed13717183a02c707cd5bdf7626af
MD5 906e0a5df05d23d3f8fcda018cede045
BLAKE2b-256 50f9f4ec0ea8c02d877df4eab473d336d17abf26c58c7877560f2498df4e9a85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page