-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace Fletd server for desktop apps with a light-weight Python shim #838
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Poetry files added * Run poetry in CI * Build with poetry * poetry install * New project structure with flet_core * Break everything into 2 packages * simplified init from flet_core * Fix CI * Remove beartype tests * get rid of beartype * All python tasks * Patch version * build wheels * Fix patching * Run all jobs * Add "assetsDir" to a client * support assets_dir in desktop apps * Fix Studio build * Fix Dart imports * Update README.md
"Sorry GO" Sorry GO So Sorry GO |
It's still there with us though, as Fletd is needed for web apps. But we could rewrite that in Python either (FastAPI?). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is the implementation of a new Flet desktop architecture.
It replaces Fletd server written in Go with a light-weight shim written in Python which results to:
flet pack
reduced by ~8 MB.The implementation paves the way to support Pyodide, iOS and Android.
Other notable changes:
assets
directory by providing relative path:Image.src
,Audio.src
,Page.fonts
,Container.image_src
. For desktop apps a path insrc
property could be one of the following:assets
directory, with or without starting slash, for example:/image.png
orimage.png
. The name of artifact dir should not be included.C:\projects\app\assets\image.png
or/Users/john/images/picture.png
.https://mysite.com/images/pic.png
.page.on_error = lambda e: print("Page error:", e.data)
to see failing images.flet
Python package has separated into two packages:flet-core
andflet
.beartype
removed everywhere.💥 Breaking changes:
/#/
at the end of app URL). Useft.app(main, route_url_strategy="hash")
to get original behavior.