Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up Python file readers #913

Merged
merged 8 commits into from
Dec 6, 2024
Merged

Clean up Python file readers #913

merged 8 commits into from
Dec 6, 2024

Conversation

kylebarron
Copy link
Member

@kylebarron kylebarron commented Dec 6, 2024

Progress towards #912

  • Add coord_type parameter to read_flatgeobuf
  • Add Arro3Table wrapper for returning tables as a runtime-available arro3.core.Table
  • Separate pyi type hinting declarations for ease of maintainability
  • Simplify internals of some async readers.

@kylebarron kylebarron changed the title wip: Clean up readers Clean up Python file readers Dec 6, 2024
@kylebarron kylebarron enabled auto-merge (squash) December 6, 2024 17:14
@kylebarron kylebarron merged commit 2696846 into main Dec 6, 2024
22 checks passed
@kylebarron kylebarron deleted the kyle/cleanup-py-reader branch December 6, 2024 17:19
pub(crate) fn table_to_pytable(table: geoarrow::table::Table) -> PyTable {
let (batches, schema) = table.into_inner();
PyTable::try_new(batches, schema).unwrap()
/// A wrapper around a [PyTable] that implements [IntoPyObject] to convert to a runtime-available
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: we should update to the latest pyo3-arrow to get the primary impl of this: kylebarron/arro3#269

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant