Skip to main content

Fletil

A CLI for the Flet framework.

Features

  • Exposes the standard run options for a Flet app.
  • Implements "hot reload": reloads the targeted source file whenever changes are saved, attempting to preserve the running state of controls.
    • State to preserve must be specified by passing a unique ID and list of attribute names as data to the controls, eg. TextField(value="hello world", data={"_cid": "greet_text", "_state_attrs": ["value"]}).
    • If a Syntax error is detected during a reload, it is aborted.
  • Developer buttons (a breakpoint button and code status indicator) can be temporarily injected into the page.

Installing

NOTE: this also installs Flet if it isn't present.

  • From PyPI:
    • $ pip install fletil.
  • From GitLab (NOTE: development is managed by Poetry):
    • $ git clone https://gitlab.com/skeledrew/fletil
    • $ cd fletil
    • $ poetry install

Usage

  • Ensure script is import-friendly, ie. invoke runner with (doc):
if __name__ == "__main__":
    flet.app(target=main)

and not:

flet.app(target=main)
  • Further help is available via $ fletil --help.

License

MIT.

Metadata

Release files for fletil 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fletil 0.3.0
File Size Uploaded
fletil-0.3.0.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fletil 0.3.0
File Interpreter ABI Platform
fletil-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.0 kB

Release files / fletil-0.3.0.tar.gz

Download URL fletil-0.3.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
58cd1f3e6033147935b20db74400618718719bc695b0c82e1e12764745136022
BLAKE2b-256 checksum
How to use checksums
87e429fa49fe14b9d12121ecbe2d48bbcf35af7e606a133b14db1379046639b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.6 Linux/5.15.0-46-generic

Release files / fletil-0.3.0-py3-none-any.whl

Download URL fletil-0.3.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0df2c19c49046ac524494e602663b1bd87b9d2477b1c93cc34a050ddbe81ae16
BLAKE2b-256 checksum
How to use checksums
17f101111293b3d7e66600061ab3bb5addef73c20b9dde0096c82bf2fd69e6aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.6 Linux/5.15.0-46-generic

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page