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_flow-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_flow-0.23.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file flet_flow-0.23.0.tar.gz.

File metadata

  • Download URL: flet_flow-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_flow-0.23.0.tar.gz
Algorithm Hash digest
SHA256 7cff69ebdedfd1c8254027bc680a7f3abdffbe13594d60b293b8883463cdac9e
MD5 97cb97c06d6beea030c00f3df302de14
BLAKE2b-256 2285d987ea157060be8a6175a05be47b6e6be7fc17d29b4b8b5b0dd90d842f22

See more details on using hashes here.

File details

Details for the file flet_flow-0.23.0-py3-none-any.whl.

File metadata

  • Download URL: flet_flow-0.23.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for flet_flow-0.23.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b6558af536097aacdb9b6ec63db56a1ac31a4c3e940f5de5401dd87394f16c2e
MD5 4fa97379b42af7f813d726b7f150509d
BLAKE2b-256 f58cb317e4642a8e95344b7615366599daa50e730b67f58ab6140e2a351a179e

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