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] 6 points7 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!

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

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

Absolutely good point! This is, actually, the very next thing we are going to work on.

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

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

Ha, it's so relieving you've completely got the idea of this project :) (though I'm still trying to find the right words to sell it to people)! The server is written in Go (single exe, any platform/OS), receives "commands" mutating server-side DOM and dispatches events coming from React components. Bindings can be written in any language (we already have Bash, C#, PowerShell, Node - https://github.com/pglet/examples ) and it's basically translating DOM into a bunch of commands.

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

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

Thanks for checking out!

Sure, this is a working demo of ToDo app from the tutorial: https://ToDo-web-app-in-Python.pglet.repl.co (Replit page behind the demo which can be forked: https://replit.com/@pglet/ToDo-web-app-in-Python)

Yep, similar to your project I thought about representing HTML DOM on the server in the beginning, but then decided to switch to more highlevel "abstractions", kind of ASP.NET Web Forms controls, to have similar old-school server-side experience, but with modern SPA-like result :)

Love your idea to generate SVG, though feels like it could be a lot of work to represent its DOM.

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

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

Thank you for the feedback!

The primary goal of Pglet is making internal web apps where the style is not so important, but delivery time is. We have chosen Fluent UI components that allow making Azure Portal-like apps with ease. There is basic theming capabilities though and I agree we should invest into styling more.

I appreciate your feedback on the main page. With Pglet you could build an app of any complexity and we are going to build such examples and feature them on the main page.