Skip to content

Commit

Permalink
Export at top level
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Jun 25, 2024
1 parent 5e2a363 commit 9c40057
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 19 deletions.
3 changes: 1 addition & 2 deletions arro3-compute/src/concat.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use pyo3::prelude::*;
use pyo3_arrow::array::PyArray;
use pyo3_arrow::chunked::PyChunkedArray;
use pyo3_arrow::error::PyArrowResult;
use pyo3_arrow::{PyArray, PyChunkedArray};

#[pyfunction]
pub fn concat(input: PyChunkedArray) -> PyArrowResult<PyObject> {
Expand Down
2 changes: 1 addition & 1 deletion arro3-compute/src/take.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use pyo3::prelude::*;
use pyo3_arrow::array::PyArray;
use pyo3_arrow::error::PyArrowResult;
use pyo3_arrow::PyArray;

#[pyfunction]
pub fn take(values: PyArray, indices: PyArray) -> PyArrowResult<PyObject> {
Expand Down
14 changes: 7 additions & 7 deletions arro3-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ fn ___version() -> &'static str {
fn _rust(_py: Python, m: &Bound<PyModule>) -> PyResult<()> {
m.add_wrapped(wrap_pyfunction!(___version))?;

m.add_class::<pyo3_arrow::array::PyArray>()?;
m.add_class::<pyo3_arrow::chunked::PyChunkedArray>()?;
m.add_class::<pyo3_arrow::field::PyField>()?;
m.add_class::<pyo3_arrow::record_batch::PyRecordBatch>()?;
m.add_class::<pyo3_arrow::record_batch_reader::PyRecordBatchReader>()?;
m.add_class::<pyo3_arrow::schema::PySchema>()?;
m.add_class::<pyo3_arrow::table::PyTable>()?;
m.add_class::<pyo3_arrow::PyArray>()?;
m.add_class::<pyo3_arrow::PyChunkedArray>()?;
m.add_class::<pyo3_arrow::PyField>()?;
m.add_class::<pyo3_arrow::PyRecordBatch>()?;
m.add_class::<pyo3_arrow::PyRecordBatchReader>()?;
m.add_class::<pyo3_arrow::PySchema>()?;
m.add_class::<pyo3_arrow::PyTable>()?;

Ok(())
}
26 changes: 17 additions & 9 deletions pyo3-arrow/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
#![doc = include_str!("../README.md")]

pub mod array;
pub mod chunked;
mod array;
mod chunked;
pub mod error;
pub mod ffi;
pub mod field;
pub mod interop;
pub mod record_batch;
pub mod record_batch_reader;
pub mod schema;
pub mod table;
mod ffi;
mod field;
mod interop;
mod record_batch;
mod record_batch_reader;
mod schema;
mod table;

pub use array::PyArray;
pub use chunked::PyChunkedArray;
pub use field::PyField;
pub use record_batch::PyRecordBatch;
pub use record_batch_reader::PyRecordBatchReader;
pub use schema::PySchema;
pub use table::PyTable;

0 comments on commit 9c40057

Please sign in to comment.