Closed kylebarron closed 3 months ago
This looks interesting! Any chance to get this merged and released? @roeap
Any progress getting this released?
No progress here. The store API has managed to mature a bit so if someone wanted to come and pick this up (@kylebarron or otherwise), now would be a good time.
No progress here. The store API has managed to mature a bit so if someone wanted to come and pick this up (@kylebarron or otherwise), now would be a good time.
I have picked it up.
Maybe it's easier to fork, and then merge all open PRs into that fork and release it
Change list
PyBytes::new(py, &Bytes::to_vec())
had two clones, I believe, where only one was needed.PyBytes
fromCow<[u8]>
instead of converting manually. At least for the async version this was a lot easier; I struggled with manually constructingPyBytes
objects inside the async closure.Another option for the API would be to have a separate class
AsyncObjectStore
that has only the async methods. This might keep the methods cleaner (we wouldn't need to have anasync
suffix on each method). But alternatively, there's no reason why someone couldn't use the same store for both synchronous and async calls.This is implemented on top of https://github.com/roeap/object-store-python/pull/5, so ignore the first several commits. It's expected for #5 to be merged first, and then this PR can be squashed.
Closes #2