Skip to main content

A tiny version of flet to work on mobile development

Project description

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 flet if you did install it before: pip uninstall flet.
  • uninstall flet-core if you did install flet before: pip uninstall flet-core. Using pip, 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 use alignment="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.

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_lite-1.7.tar.gz (8.7 MB view details)

Uploaded Source

Built Distribution

flet_lite-1.7-py3-none-any.whl (8.8 MB view details)

Uploaded Python 3

File details

Details for the file flet_lite-1.7.tar.gz.

File metadata

  • Download URL: flet_lite-1.7.tar.gz
  • Upload date:
  • Size: 8.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for flet_lite-1.7.tar.gz
Algorithm Hash digest
SHA256 461f8fad7aa103971113f47414c9dda35497fae0925f457949c27ac79dc607ca
MD5 7fe5aff73ad38f10513cfb43d323485a
BLAKE2b-256 1c5edf67ccfd31b92ff73f1e769826c2d2fb6e5c9aac8bae4d249cc2d17e3787

See more details on using hashes here.

File details

Details for the file flet_lite-1.7-py3-none-any.whl.

File metadata

  • Download URL: flet_lite-1.7-py3-none-any.whl
  • Upload date:
  • Size: 8.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for flet_lite-1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2262c15fa880c66e1e8f0db7625b60b4444c24c504ff69bfb920ad065a44d917
MD5 793239a23f7c5068b4bfaa5e84cfc547
BLAKE2b-256 32bc707b7b736e3dd644a7219ac5974d9c70e34f7a87234a6a4f3d318e439689

See more details on using hashes here.

Supported by

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