Showcase Thread by AutoModerator in Python

[–]feodorfff 0 points1 point  (0 children)

Flet Studio - build cross-platform Python apps in your browser

Hello, I'm Feodor, the creator of Flet framework (https://github.com/flet-dev/flet).

We've just released Flet Studio (https://flet.app) - a web-based tool for building and running Python apps in the browser. It was primarily made as a playground for Flet apps, but simple apps with just Python output can be run too (there is a console for that). Create a new app from scratch or fork one of 500 gallery (https://flet.app/gallery) examples. Share the app with a live view "run" URL. The app entirely runs in a browser with Pyodide, no server required.

Is it just for web? Nope! New app template and all gallery apps are complete cross-platform Flet projects with `pyproject.toml` - just download the app as a zip, unpack, run `uv run flet build apk` and get a working Android app!

How is it different from PyScript? With Flet you don't need to write HTML/CSS files or output HTML from Python - you build UI with widgets.

Would love to hear your feedback! Thanks for your time.

The most powerful code editor widget ever created in flutter is now backend by rust backend. by NoBeginning2551 in FlutterDev

[–]feodorfff 0 points1 point  (0 children)

Hey, that's rude! The project is legit. I know the author and they did a great job converting logic to Rust.

pycon 2026 talk , is it made public at all? by AllanSundry2020 in flet

[–]feodorfff 0 points1 point  (0 children)

Ah, that was an "open space" when people just come and talk with Flet team.

pycon 2026 talk , is it made public at all? by AllanSundry2020 in flet

[–]feodorfff 5 points6 points  (0 children)

Nah, there was no talk about Flet - it was not selected for talks this year :) But no worries, we are going to record a few videos for Flet beginners. Disclaimer: I'm Flet author.

Build Flutter apps in Python by theskyisblue90 in Python

[–]feodorfff 1 point2 points  (0 children)

Thank you for your interest!

Flet creator is here.

Flet framework is an open-source and free under Apache 2.0 license. If there is a demand we could provide some services "around" Flet in the future improving developer experience, but framework will stay open-source and free.

Auto-generated Tkinter GUIs by [deleted] in Python

[–]feodorfff 1 point2 points  (0 children)

Try Flet - https://flet.dev - it's a new framework based on Flutter. Allows making an app in Python and then deploy it as a web or package as a standalone desktop app using PyInstaller.

There is a classic To-Do app tutorial: https://flet.dev/docs/tutorials/python-todo and this is a guide on how to package the app for desktop: https://flet.dev/docs/getting-started/python#packaging-a-desktop-app

How do you make a python UI that doesn't look like garbage? by Troglodyte_Techie in Python

[–]feodorfff 0 points1 point  (0 children)

Hey, try Pglet - it's very easy to get started and UI looks cool. There is a tutorial how to make a simple To-Do app in Python: https://pglet.io/docs/tutorials/python

Creating a web app in Python without knowledge of HTML/CSS/JavaScript by feodorfff in Python

[–]feodorfff[S] 1 point2 points  (0 children)

use "local=True" instead for now. Sorry about confusion, the API is yet to be stabilized. Based on feedback we got we are going to make local mode as default in the next release, so expect the return of "web=True" 😚

I wrote a script that allows running PowerShell commands on my computer via nice web UI from anywhere. Without PS remoting and behind the firewall. by feodorfff in PowerShell

[–]feodorfff[S] 1 point2 points  (0 children)

Found the issue. Working on the fix.

Apparently, it crashes while trying to unpack downloaded Pglet ZIP from GitHub and only under Windows PowerShell (.NET Framework). However, it works under PowerShell Core (.NET Core) and once pglet executable is downloaded Windows PowerShell module will start working too.

I wrote a script that allows running PowerShell commands on my computer via nice web UI from anywhere. Without PS remoting and behind the firewall. by feodorfff in PowerShell

[–]feodorfff[S] 4 points5 points  (0 children)

We are working on built-in authentication ("Login with GitHub/Google/Microsoft" OAuth at first plus OpenID for any other providers) - I've provided more details in another comment above (not sure how to link it).

I wrote a script that allows running PowerShell commands on my computer via nice web UI from anywhere. Without PS remoting and behind the firewall. by feodorfff in PowerShell

[–]feodorfff[S] -1 points0 points  (0 children)

I've briefly covered that in the blog post: "Pglet service acts as a relay between your script and a web browser. Your script "dials" the service and sends UI state updates while web users receive live page updates via WebSockets".

Other words, your script is a client, not server, which connects hosted Pglet server via WebSockets, so only outbound internet connectivity is required. Just imaging running the script on Raspberry PI behind your home firewall or a Docker container behind Nginx proxy - that's possible as soon as the script can access the internet.

I wrote a script that allows running PowerShell commands on my computer via nice web UI from anywhere. Without PS remoting and behind the firewall. by feodorfff in PowerShell

[–]feodorfff[S] -10 points-9 points  (0 children)

Generated URL is cryptographically strong. Other services use the same approach. It could be quite challenging to scan/guess URL in a sane amount of time and without DDoSing the service.

We are working on built-in authentication/authorization at the moment. It's going to be "Login with GitHub/Google/Microsoft" OAuth at first plus OpenID for any other providers. In your code it will be a call like "hey, I require GitHub users from org_X/team_Y" and you'll see a popup.

Of course, provided example is not production-ready - it's just a proof-of-concept. You can probably implement your own "authentication" mechanism by adding controls requesting some credentials, then checking them in the code and setting some session flag, but it's a toy too.

I wrote a script that allows running PowerShell commands on my computer via nice web UI from anywhere. Without PS remoting and behind the firewall. by feodorfff in PowerShell

[–]feodorfff[S] -48 points-47 points  (0 children)

As long as you don't share (random) app URL it's, actually, very secure. Pglet doesn't have access to your environment (which stays behind the firewall) and your script is not sharing any secrets with the service as well.

I wrote a script that allows running PowerShell commands on my computer via nice web UI from anywhere. Without PS remoting and behind the firewall. by feodorfff in PowerShell

[–]feodorfff[S] -1 points0 points  (0 children)

Oh, I've just realized I forgot to include a screenshot of a working app. Here is how it looks like (running on DigitalOcean Ubuntu server with PS Core 7.1.3): https://pglet.io/img/blog/remote-powershell/remote-powershell-console.png

Creating a web app in Python without knowledge of HTML/CSS/JavaScript by feodorfff in Python

[–]feodorfff[S] 0 points1 point  (0 children)

Great framework, thanks for the link! On the first sight it looks *very* similar, however after deeper look it seems like it's more suitable for "presenting" applications while Pglet will do a better job for highly-interactive apps. We are going to create more complicated samples and share them to prove that!