Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>>> Would love to hear what you all thing of writing web apps in the browser in Python.

I like the idea. I'm not a commercial dev, but a so called "scientific" programmer, meaning that I use programming mainly as a problem solving tool. But once in a while I create little apps for my colleagues to use, many of whom don't program. But they can manage spreadsheets quite well.

I'm pretty committed to Python at this point, but deployment of an app is a headache, and I've explored a variety of solutions. I've written a couple of web apps using *flet*, and they run on pretty much every platform I've tested. This seems like a nice approach.

The thing I'd like to figure out is how to give a web app access to a user's files, though I appreciate why this should be difficult for security reasons.



Any PySheets sheet runs in the PyScript context and can access the JavaScript window and DOM. Therefore, you can use the browser to access the file system: https://developer.mozilla.org/en-US/docs/Web/API/FileSystem.

Alternatively, you could create a form to "upload" a specific file, but instead of uploading it, read the bytes from the PySheet's cell function.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: