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

Python: ideas for multiple modules #499

Open
kylebarron opened this issue Feb 5, 2024 · 0 comments
Open

Python: ideas for multiple modules #499

kylebarron opened this issue Feb 5, 2024 · 0 comments

Comments

@kylebarron
Copy link
Member

  • Move Rust modules into workspace. Make crates/ top level directory?
  • All crates/dirs inside crates/ are published to crates.io
  • Make geoarrow-python crate inside crates/ with the rlib bindings to pyo3
  • Convert existing geoarrow.rust.core code to only import from geoarrow-python and create a #[pymodule]
  • Make a top-level function in geoarrow.rust.core named from_arrow which takes in any Arrow object (via pycapsule) and returns either a geometry array, chunked array, or table.
  • Make tiny structs inside geoarrow-python that are just ArrowArray, ArrowSchema and ArrowStream to hold arbitrary pycapsule objects.
  • Then a new geoarrow.rust.proj module can have functions that operate on any geoarrow input via pycapsule and return the above Arrow* minimal classes.

Ref #454

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

No branches or pull requests

1 participant