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.)