The maintainer has not written a description at the source.
Repo lightdash/python-sdk, read from GitHub 1 min ago. lightdash has not joined Take My Repo.
A feature-packed release for the Python SDK focused on getting data out at scale, richer filtering, and a smoother developer experience.
pip install --upgrade lightdash
Compile a query to SQL without running it
Inspect the exact warehouse SQL Lightdash would generate โ or run it yourself when you need more than the query API returns (BigQuery/bigframes, dbt, a data pipeline, etc.). Nothing executes and no rows are fetched.
sql = ( model.query() .metrics(model.metrics.revenue) .dimensions(model.dimensions.country) .filter(model.dimensions.status == "active") .compile() ) print(sql) # SELECT ... FROM ... WHERE ... GROUP BY ... LIMIT 500
No more 50k-row ceiling
Result sets are now paged automatically, so you can pull as many rows as your instance allows โ the old 50,000-row cap is gone. Use .to_records() / .to_df() as before, or stream lazily with .iter_pages() and .to_df_lazy() for very large pulls.
df = model.query().metrics(model.metrics.revenue).limit(1_000_000).to_df()
between() / not_between() helpers on dimensions for clean range filters.Bearer token header, enabling personal access tokens and service accounts to work seamlessly.Features
between() and not_between() helpers to Dimension (#15)Fixes
Bearer to support service accounts (#18)Docs & internal
Full changelog: v1.0.1...v1.1.0