Who it is forAn analyst who wants to work in Python on data already loaded.
The problemSwitching to the warehouse console breaks the workflow.
The outcomeAggregated results computed in the destination, returned to Python.
What you need first
- Python 3.10 through 3.14, with 3.14 support described as experimental
- `pip install dlt` plus the extras for your sources and destinations
- Credentials for your destination in secrets.toml or environment variables
Steps
- Install the library with
pip install dlt - Reconnect with DLT.attach, passing pipeline_name, destination and dataset_name
- List tables with dataset.tables and pull one as a lazy relation, then call .df(), .arrow() or .to_ibis()
- Compose group_by and aggregate on the Ibis expression and call .to_pyarrow(), which compiles to SQL and runs on the destination
Prompt for your agent
Using dlt-hub/dlt, attach to <my pipeline>, aggregate <my table> by one column with Ibis and bring the result back as an Arrow table.
Caveat. Nothing runs until you ask for the result, so time the final call, not the expression.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for dlt-hub/dlt and "Query what you loaded without writing SQL"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer