Using the Bruin Python SDK
Skip the boilerplate. Use the Bruin Python SDK to query databases, manage connections, and access pipeline context from your Python assets with a few imports.
What
Goal - Learn how to use the Bruin Python SDK to eliminate boilerplate in your Python assets. Query databases, access typed connections, and read pipeline context with just a few imports.
Audience - Data engineers and analysts writing Python assets in Bruin who want cleaner, more maintainable pipeline code.
Prerequisites
- Bruin CLI installed
- A Bruin project with at least one Python asset
- Python 3.10 or higher
- A configured database connection (BigQuery, Postgres, Snowflake, DuckDB, etc.)
More guides

Chat with an AI Agent
Use Bruin Cloud's chat to ask an AI agent about your data, generate reports, and run Bruin Cloud CLI tasks like pipeline status and history.

Configure AI Agents
Create and configure AI agents in Bruin Cloud - pick a project, add messaging integrations, attach a connection set, and set permissions.

Connect Bruin Cloud MCP to Claude Code
Set up the Bruin Cloud MCP so your AI agent can query pipelines, inspect runs, and trigger actions in Bruin Cloud directly from your terminal.