pyo3-arrow 0.17.0

Arrow integration for pyo3.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::ffi::from_python::utils::call_arrow_c_stream;
use crate::table::PyTable;
use pyo3::prelude::*;
use pyo3::PyAny;

impl<'a> FromPyObject<'_, 'a> for PyTable {
    type Error = PyErr;

    fn extract(obj: Borrowed<'_, 'a, PyAny>) -> Result<Self, Self::Error> {
        let capsule = call_arrow_c_stream(&obj)?;
        Self::from_arrow_pycapsule(&capsule)
    }
}