tree: ff2942cb2393fb3631bdfeaad6a61c85fcfb9027
  1. python/
  2. src/
  3. tests/
  4. .gitignore
  5. Cargo.toml
  6. LICENSE
  7. Makefile
  8. NOTICE
  9. project-description.md
  10. pyproject.toml
  11. README.md
bindings/python/README.md

PyPaimon Rust

This project builds the Rust-powered core for PyPaimon while also providing DataFusion integration for querying Paimon tables.

Usage

For DataFusion queries, use the native SessionContext and register a PaimonCatalog:

from datafusion import SessionContext
from pypaimon_rust.datafusion import PaimonCatalog

catalog = PaimonCatalog({"warehouse": "/path/to/warehouse"})
ctx = SessionContext()
ctx.register_catalog_provider("paimon", catalog)

df = ctx.sql("SELECT * FROM paimon.default.my_table")
df.show()

Setup

Install uv:

pip install uv

Set up the development environment:

make install

Build

make build

Test

Python integration tests expect the shared Paimon test warehouse to be prepared first from the repository root:

make docker-up
cd bindings/python
make test