Replies: 1 comment 1 reply
-
I think something like this could be supported in
This way you would be in control of creating the store and doing what you want with it on the Python or Rust side. Would you be interested in contributing something like that? Another alternative is enabling a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you for this wonderful library!
I'm trying to figure out if I can use zarrs in a project of mine (https://github.com/pymc-devs/nutpie), but I'm not sure if what I need is currently possible:
nutpie is written in rust, and generates datasets that users interact with as a
xarray.DataSet
from python.To accomplish this, I'm currently using an intermediate arrow datastructure: The rust code can create the dataset using the arrow rust code, which can then be exported through an c-ffi to python, where I convert it to xarray. This involves some copying however, and also doesn't support different storage backends, so that all datasets have to fit into memory.
Since I want to have a xarray dataset in the end anyway, I think it would be great if I could write the dataset using zarrs from rust. The problem I have is that I don't know if I can somehow pass the store to python? If I use a filesystem store, I could just write it using zarrs, close it once it is finished and open in on the python side again, but for an in-memory store that isn't an option.
zarrs-python seems to almost do what I need, but at least the documentation assumes I just want to replace the backend with with rust code globally, which doesn't help me to transfer the storage itself. (And as a library, I also don't want to modify some global behavior).
Beta Was this translation helpful? Give feedback.
All reactions