NotImplementedImportError: zipfile is not yet implemented in Skulpt.
Edit: I’ll try some of the other standard compression modules.
ImportError: No module named lzma
ImportError: No module named bz2
NotImplementedImportError: gzip is not yet implemented in Skulpt
ImportError: No module named zlib
Yeah… I studied JS years ago… the language itself isn’t scary (mostly). And Anvil provides a nice wrapper for JS code. For a commercial app, the code and its source need to be vetted, though.
For built-in, standardized compression, the proposed standard streaming-compression API is apparently not supported by Firefox. I haven’t found other compression routines built into JavaScript. That leaves add-in JS libraries, as an alternative. It looks like several JS [de]compression libraries have been written. But it takes time to test them and prove compatibility with similar routines, written in/for Python, running server-side. Wish I had the time for that right now.
I appreciate everyone’s efforts. Thankfully, this is not a pressing issue.
I wonder if the anvil can easily provide you with browser information from the user agent, and you could at least make it work for everything that isn’t Firefox?
(Also, JS scares me because I know I would like it if I started using it, and I don’t want to start )
Thanks for opening my eyes. I may be looking for jszip soon.
If I’m going to go third-party JavaScript, I may as well go for one that handles the compressor we’re already using, server-side. (Zip format has the advantage of packaging multiple files, so we can include both finished reports, and their supporting data, in a single, unified package.)
Sorry for reviving an old thread but would this approach also work when returning a dict/json to the client? I’m little stuck trying to get it to work with a dict