flet-lite
flet-lite is tiny version of flet that is compatible with with devices like iPadOS and iOS. Its not using subprocess or multiprocess which are not supported on mobile and iPad as will. Its just magic how everything is work properly 🪄!
|| Why flet-lite 🙃?
When I was trying to use my iPad for programming, I was miss something, which is my favourite UI library flet!. Flet is a python library that allow you to code flutter apps in python without using dart or flutter. Everything is perfectly pythonic. Due to iPadOS limitations I was not able to code flet on python for iPad version. Then I came up with an idea of making a tiny version of the library for iPad, so me (and anyone) can use this powerful package just on iPad!!.
|| What code editor to use 👨💻?
You can use any code editor that support pip on mobile or iPad, these are some recommends:
- Code App: Its a paid app that provide a powerful tools for coding. Also its a vscode like theme. Its include a terminal that support python and
pip. - a-shell: Its a free app that provide a linux-like shell, its include python by default, also supports
pip.
|| Is this for production 🌐?
This package is not prepared to use for production cases so its a development only, use the original flet for production. The only tool here for production is the command python3 -m flet.publish script.py which is a custom command tool the present similer usage for the original flet publish script.py.
installation ⬇️
- uninstall
fletif you did install it before:pip uninstall flet. - uninstall
flet-coreif you did install flet before:pip uninstall flet-core. Usingpip, enter:
pip install flet_lite --upgrade
docs 📖
This flet-lite is a custom clone of flet version v0.7.4
Everything is the same on original flet, read the docs here: flet.dev👈
flet commands
Due iOS, iPadOS and Android limits, you cant use many of flet commands. The supported commands is:
python3 -m flet.publish myapp.py: This is used to create a pyodide site of your flet application so it can work on a normal web host (Any host that support static files, for example php servers).
limitations in code
- This package does not support flet async features.
- The API manager here is a customized http host, thats why its slower than original flet.
- You must use the Literal values insted of Literal classes. For example instead of using
alignment=MainAxisAlignment.CENTER, just usealignment="center".
best usage practice
soon
- Do NOT make the host run on background on mobile, because mobile can NOT keep the app running on background. Try to run the browser and the host together.
Release files for flet-lite 1.7.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flet_lite-1.7.5.tar.gz | 8.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flet_lite-1.7.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.5 MB
Release files / flet_lite-1.7.5.tar.gz
| Download URL | flet_lite-1.7.5.tar.gz |
|---|---|
| Size | 8.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65b7fa36ff0ae12ee4f3b7b2cf8cea05e4243b2f6a13b2c46a1e5a2dcc775778
|
|
BLAKE2b-256 checksum How to use checksums |
b989b292111d5d67049a7ac3c20c62b25c8170ce37a675cc98f4a3df639be4cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / flet_lite-1.7.5-py3-none-any.whl
| Download URL | flet_lite-1.7.5-py3-none-any.whl |
|---|---|
| Size | 8.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be79047cc50d925ad89c7e4395342f9d8a126ea4ae99e5335dcff1f0f5525d11
|
|
BLAKE2b-256 checksum How to use checksums |
95231040f63c19024fbdeffffcdf15d3fcf2b30a30d32c54c473c342f2a4157d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|