-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage with PyScript #728
Comments
I'm afraid you will not get s3fs working with pyscript, since it relies on aiohttp/asyncio. I assume it was the dependencies that prevented installation, which is correct behaviour. Your best bet is to get the equivalent URLs (public, signed or as a bucket-website) and use HTTP via fsspec/filesystem_spec#1177 . Note that blocking binary downloads can only happen in a webworker, and all requests require CORS to be correctly configured on the bucket. For a pure async approach (in the main thread), fsspec/filesystem_spec#960 might be the better approach, but that code is even more super-alpha-scratch. Yet another thing I've been working on, is rusty backends for fsspec, which insludes s3: rfsspec. This would need to be rebuilt specifically for wasm, and I know that some work has been done on the tokio async runtime for wasm, but I don't really know if it's enough to potentially make it workable. |
Ah right! Forgot about the asyncio issue. Thanks for the thoughtful response! |
Sidelong related: dask-distributed has a websocket protocol, which is what it would need for communication from pyscript. That could also solve the S3 issue, since we can then proxy client calls via workers. I'm pretty sure, though, that the thread and tornado stuff even in the client side is too much for pyscript. I'd be happy to brainstorm on what it might take to get this to work. |
I was playing around with Pandas and S3 Parquet data and attempted to write a PyScript example to build a dashboard . I was blocked by s3fs not having a Python 3 wheel. This seems odd as pypi lists a pure python 3 wheel here:
https://pypi.org/project/s3fs/#files
error:
The text was updated successfully, but these errors were encountered: