Live data from Hacker News

Tauri binding for Python through Pyo3

github.com

11–20 of 61 posts

Re: Tauri binding for Python through Pyo3

#12

I don't understand why people like Tauri - the fact it uses the system web browser completely destroys the main advantage of Electron: that you can test it locally and be absolutely sure that it will render like that on any other system since the browser is shipped with it.

because most Electron apps are not that complex. Just few forms with some buttons.

Re: Tauri binding for Python through Pyo3

#14

Interesting how much cross-pollination is happening in the Python ecosystem with Rust. I think the NiceGUI example is good but quite advanced, might be beneficial to contact the teams from Reflex or FastHTML, because if you could use PyTauri to create potential local apps with those popular frameworks, it could be a big win for them and that can help with marketing around the project.

Rust and Python have very compatible ideas on a lot of topics. For example both think that a developer writing normal code should not have to worry about null pointers or be able to cause a use-after-free. It's just that Python achieves that with runtime costs and Rust with compile-time costs and a complex type system. So developers of one liking the other makes a lot of sense to me. And pyo3 is an extremely convinient way to call between the two languages

Re: Tauri binding for Python through Pyo3

#15
post #5

Since Tauri is just a thin wrapper over the system webview, what's the point of having a wrapper over a wrapper? I don't think the Python ecosystem was lacking in browser wrappers up till now.

"a thin wrapper over the system webview"

That is very complicated if you take into account also Linux, Windows, iOS, MacOS, Android support, and related utilities like tray icon, etc. There are other efforts, too, but they are also wrappers. Like this C/C++ implementation https://github.com/webview/webview that targets only desktop operating systems.

Re: Tauri binding for Python through Pyo3

#16
post #5

Since Tauri is just a thin wrapper over the system webview, what's the point of having a wrapper over a wrapper? I don't think the Python ecosystem was lacking in browser wrappers up till now.

I don't think the point is just about Python - this means you can use JS front-end with a Python backend for a local app.

Re: Tauri binding for Python through Pyo3

#17
post #11

So why can't Python call system WebView directly? Is passing through layers of Rust really needed here?

Abstractions are rarely "necessary" in a strict sense but since Tauri already solves the problem of doing cross-platform webviews, why not reuse that work?

Re: Tauri binding for Python through Pyo3

#18

I don't understand why people like Tauri - the fact it uses the system web browser completely destroys the main advantage of Electron: that you can test it locally and be absolutely sure that it will render like that on any other system since the browser is shipped with it.

Do we have an open source Playwright for multiple mobile browsers?
Post reply on HN