apache / arrow-rs

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

Provide functions to produce Arrow PyCapsules #5079

Open wjones127 opened 7 months ago

wjones127 commented 7 months 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 7 months 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.