Skip to content

[py] querychat 0.5.0

Choose a tag to compare

@cpsievert cpsievert released this 16 Jan 22:45
· 60 commits to main since this release

New features

  • Added support for Gradio, Dash, and Streamlit web frameworks in addition to Shiny. Import from the new submodules:
    • from querychat.gradio import QueryChat
    • from querychat.dash import QueryChat
    • from querychat.streamlit import QueryChat

Each framework's QueryChat provides .app() for quick standalone apps and .ui() for custom layouts. Install framework dependencies with pip extras: pip install querychat[gradio], pip install querychat[dash], or pip install querychat[streamlit]. (#190)

  • QueryChat() gains support for more data sources:
    • polars.LazyFrame: queries execute lazily via polars.SQLContext. In this case, .df() et al. methods will return a polars.LazyFrame. (#191)
    • ibis.Table: queries execute lazily via the Ibis backend's SQL interface (DuckDB, PostgreSQL, BigQuery, etc.). In this case, .df() et al. methods will return an ibis.Table. (#193)
    • pyarrow.Table: queries execute in-memory via duckdb. In this case, .df() et al. methods will return a pyarrow.Table. (#196)

Improvements

  • Improved typing support for return types on .df() et al. (#196)

Changes

  • DataFrameSource methods now (once again) return the input DataFrame type (e.g., pandas.DataFrame) instead of nw.DataFrame. (#196)