Pyscript - Your Thoughts?

Off Topic Post about Python in the browser.

The Youtube Algorithm recently decided that this video might be interesting for me:

From my limited understanding this is somewhat comparable to skulpt?

Anyway - thought this might be of interest for the community.

Cheers Mark

2 Likes

I just checked out some articles about it, it looks like an interesting way to easily get access to pyodide. With the way native libraries in anvil work, they could probably also work together. Through this you could bring lots of access to some of the more common missing (from skulpt) CPython libraries implemented in WASM/WebAssembly instead of JavaScript.

I found this explanatory image:

So it looks promising, It also looks like something easier to use with anvil instead of a replacement for it.
I could see these tools being used in a DAPP with all the power of individual PC’s being utilized using nothing but a browser without having to install extra special software.

2 Likes

I wonder if this might work with HTMX?

2 Likes

Interesting - everything that has the potential to make anvil more powerfull is for sure a good thing.

1 Like

This seems like a great tool! And it also supports a wide variety of libraries like numpy and Pandas in the client!

I will be definitely checking it out and seeing how well it works. Thanks for letting us know about it.

1 Like

I agree this can add to Anvil but definitely not a replacement.
Anvil cannot be simiplified down to “python in the browser” only.
Anvil offers much, much more, with all its services that solve enormous problems with a few clicks and well designed APIs.
Database access, HTTP endpoints, Secrets, User Access Management, Background and scheduled tasks, Mailing service, Stripe integration just to name a few.
Oh, I was forgetting: a web IDE, environments, application hosting, web git interface… ok many more I am leaving out for sure.
So yes, this looks like a promising tool to fill in the (few) gaps Anvil has in the “python in the browser” section (many inherited from the SKULPT engine it’s based upon), nothing more.
IMHO.

3 Likes

Pyscript just replaces Javascript in the browser while Anvil offers much more.

Anvil front-end is actually some kind of SPA framework, similar to Angular, React, Ember… but in Python.

1 Like