Live data from Hacker News

Tauri binding for Python through Pyo3

github.com

51–60 of 61 posts

Re: Tauri binding for Python through Pyo3

#52
post #46

Earlier quoted context omitted.

I worked on a team the switched v2 of our product from Python + QT to Tauri specifically to get away from QT. If you have any kind of specific design requirements, QT is pain. The ability to use the frontend web stack is a huge win especially for a team that already has frontend developers. Rust was a nice bonus.

Doesn't qt also offers a webview solution?

It’s very basic. Good enough for oauth flow but not much beyond that, definitely not to host your entire UI. Also I don’t see what the point of that would be.

Re: Tauri binding for Python through Pyo3

#53
Not to distract from Python or Tauri, but lately I’ve been using Wails[0] which is similar to Tauri but with Go instead of Rust.

There are pros/cons primarily being Tauri seems to allow creation of mobile apps which Wails doesn’t, but overall it’s been fantastic since I find Go to be an easier language for me.

[0] https://wails.io/

Re: Tauri binding for Python through Pyo3

#54
post #52

Earlier quoted context omitted.

Doesn't qt also offers a webview solution?

It’s very basic. Good enough for oauth flow but not much beyond that, definitely not to host your entire UI. Also I don’t see what the point of that would be.

My point it's that you said you changed from QT to Tauri because of being able to use frontend frameworks but QT also allows you to do the same. Anki does something like that, but since you mentioned rust that might be the reason of the change to Tauri.

Re: Tauri binding for Python through Pyo3

#55
post #52

Earlier quoted context omitted.

It’s very basic. Good enough for oauth flow but not much beyond that, definitely not to host your entire UI. Also I don’t see what the point of that would be.

My point it's that you said you changed from QT to Tauri because of being able to use frontend frameworks but QT also allows you to do the same. Anki does something like that, but since you mentioned rust that might be the reason of the change to Tauri.

But why would you pull in an entire UI framework, QT, just to use its webview? If it’s not clear, these are local apps we are talking about. The webview loads local content. This is what tauri does.

Re: Tauri binding for Python through Pyo3

#56
post #46
post #30

Python, along with C++ enjoys the benefits of Qt. You can build great stuff with cross-platform Qt. And it won't be webview(Electron / Tauri) based. What would be the benefits of this? I can't think of any yet.

I worked on a team the switched v2 of our product from Python + QT to Tauri specifically to get away from QT. If you have any kind of specific design requirements, QT is pain. The ability to use the frontend web stack is a huge win especially for a team that already has frontend developers. Rust was a nice bonus.

Did you evaluate QML/Quick?

https://doc.qt.io/qt-6/qtquickcontrols-index.html

Re: Tauri binding for Python through Pyo3

#57
post #53

Not to distract from Python or Tauri, but lately I’ve been using Wails[0] which is similar to Tauri but with Go instead of Rust. There are pros/cons primarily being Tauri seems to allow creation of mobile apps which Wails doesn’t, but overall it’s been fantastic since I find Go to be an easier language for me. [0] https://wails.io/

Yep I've gotten basic Tauri stuff to run on Android.

It runs fine but, speaking as someone with no prior Android experience, once you need to leave the "Everything is in the view" model, it gets confusing. But that's more Android's fault than the framework's

Re: Tauri binding for Python through Pyo3

#58
post #30

Python, along with C++ enjoys the benefits of Qt. You can build great stuff with cross-platform Qt. And it won't be webview(Electron / Tauri) based. What would be the benefits of this? I can't think of any yet.

I've been building a Python+Qt+PyInstaller app for a decade (ActivityWatch) which we are migrating to Tauri for a wide range of reasons. Perhaps the largest one is easy cross-platform packaging/builds (which is a lot of work with PyInstaller)

Re: Tauri binding for Python through Pyo3

#59
post #53

Not to distract from Python or Tauri, but lately I’ve been using Wails[0] which is similar to Tauri but with Go instead of Rust. There are pros/cons primarily being Tauri seems to allow creation of mobile apps which Wails doesn’t, but overall it’s been fantastic since I find Go to be an easier language for me. [0] https://wails.io/

Yep I've gotten basic Tauri stuff to run on Android. It runs fine but, speaking as someone with no prior Android experience, once you need to leave the "Everything is in the view" model, it gets confusing. But that's more Android's fault than the framework's

I was exploring the idea of using it for personal projects, mostly monitoring of sensors with data coming from network connections (some in raw binary format, not text), control of remote relays and actuators, etc, thus the need for self updating graphic primitives for gauges, indicators, leds, switches, displays, etc. Does Tauri allow that? Asking because although I have had a developer experience on other traditional languages/platforms (C, Delphi, lately some Python) I have none in coding for mobile platforms, web development and Tauri itself.

Re: Tauri binding for Python through Pyo3

#60
post #30

Python, along with C++ enjoys the benefits of Qt. You can build great stuff with cross-platform Qt. And it won't be webview(Electron / Tauri) based. What would be the benefits of this? I can't think of any yet.

Web rendering has a rich ecosystem of tooling around a vast level of support for styling, layout, localization and accessibility support. By extension, it's one of the largest baselines in terms of knowledge, support and talent with at least some experience with.

This, of course, comes at a cost of performance as CSS alone is very complicated and has a lot there to support. On the flip side, there are many things that are easy to do with HTML+CSS that are much more difficult with native UI frameworks. Just the reflow support for multiple sizes/scaling in browsers is hard to match.

Post reply on HN