apache / arrow-rs

Official Rust implementation of Apache Arrow
https://arrow.apache.org/
Apache License 2.0
2.64k stars 809 forks source link

Provide functions to produce Arrow PyCapsules #5079

Open wjones127 opened 1 year ago

wjones127 commented 1 year ago

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Follow up to https://github.com/apache/arrow-rs/pull/5070

Applications and libraries will want to support the Arrow PyCapsule Interface. We should provide some functions or maybe even classes to support that.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

pitrou commented 1 year ago

Helper functions would probably be enough, as it's simply a matter of returning a PyO3 PyObject for a given Rust Schema or RecordBatch.

kylebarron commented 4 months ago

FWIW I published pyo3-arrow, a helper library to consume and create Arrow PyCapsules according to the Arrow PyCapsule interface