$npx skillfedfor your agent

dbt-sl-sdk

A client for dbt's Semantic Layer

Worth itPyPI Front-EndsReleased May 2026116.3K downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — dbt_sl_sdk-0.13.4-py3-none-any.whl
v0.13.4 · released 2026-05-27 · Python <3.14,>=3.9 · 5 runtime deps: adbc-driver-flightsql, adbc-driver-manager, mashumaro, pyarrow, typing-extensions

Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and fills a clear need for Python developers working with dbt's Semantic Layer. The sync/async flexibility and pyarrow integration are well-suited to modern data workflows. The only caveat is that license treatment is unclear, so verify licensing implications for your use case before committing to production.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later.
  • You must provide valid dbt Semantic Layer credentials (environment_id, auth_token, host).
  • Low install friction with a pure-wheel distribution and five runtime dependencies.

License · maintenance · safety

(unclear)

last release 2026-05-27 (79 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 116,274 downloads/mo, #12,213 on PyPI

Verify before relying

pip install "dbt-sl-sdk[sync]"

from dbt_sl_sdk import SemanticLayerClient

client = SemanticLayerClient(
    environment_id=123,
    auth_token="<your-token>",
    host="semantic-layer.cloud.getdbt.com",
)

with client.session():
    metrics = client.metrics()
    table = client.query(metrics=[metrics[0].name], group_by=["metric_time"])
    print(table)
  • Whether the package's telemetry collection (platform information sent to dbt Labs by default) poses privacy concerns for your use case.
  • Performance characteristics when working with large metric definitions under lazy loading mode.
  • Specific license terms and any restrictions on commercial or proprietary use.
Same gist for agents: .md · .json

What it is and what it does

dbt-sl-sdk is a Python client for dbt's Semantic Layer, a centralized metrics platform accessible through a REST API. The package wraps that API in a straightforward Python interface, handling connection pooling via session context managers and supporting both synchronous and asynchronous workflows. All query results come back as pyarrow tables, which you can then convert to other formats if needed.

The library is designed for developers who want to pull metric data into Python applications without writing raw HTTP calls. It includes features like lazy loading to avoid fetching nested object lists for large projects, optional telemetry that can be disabled, and a consistent API between sync and async variants. The package requires Python 3.9 or later and depends on pyarrow, mashumaro, adbc-driver-flightsql, adbc-driver-manager, and typing-extensions.

Use it for

  • Query dbt metrics and dimensions programmatically from a Python application without manual API calls.
  • Build data pipelines that fetch metric data and convert pyarrow results to other formats.
  • Integrate dbt Semantic Layer queries into async applications using async variants for non-blocking I/O.
  • Explore metric definitions and their nested dimensions via lazy-loading mode for large projects.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has low install friction, carries no known vulnerabilities, and fills a clear need for Python developers working with dbt's Semantic Layer. The sync/async flexibility and pyarrow integration are well-suited to modern data workflows. The only caveat is that license treatment is unclear, so verify licensing implications for your use case before committing to production.

Install

dbt-sl-sdk on PyPI

Before you install

Low install friction with a pure-wheel distribution and five runtime dependencies. Actively maintained with a recent release within the last 79 days.

Requires Python 3.9 or later. You must provide valid dbt Semantic Layer credentials (environment_id, auth_token, host).

Quickstart

pip install "dbt-sl-sdk[sync]"

from dbt_sl_sdk import SemanticLayerClient

client = SemanticLayerClient(
    environment_id=123,
    auth_token="<your-token>",
    host="semantic-layer.cloud.getdbt.com",
)

with client.session():
    metrics = client.metrics()
    table = client.query(metrics=[metrics[0].name], group_by=["metric_time"])
    print(table)

Verify before relying

  • Whether the package's telemetry collection (platform information sent to dbt Labs by default) poses privacy concerns for your use case.
  • Performance characteristics when working with large metric definitions under lazy loading mode.
  • Specific license terms and any restrictions on commercial or proprietary use.

Package facts

LicenseNot declared unclear
Python supportSupports the current Python release <3.14,>=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
adbc-driver-flightsqladbc-driver-managermashumaropyarrowtyping-extensions
MaintenanceActively maintained 79 days since the last release
First released
Downloads116,274 / month, #12,213 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: dbt_sl_sdk-0.13.4-py3-none-any.whl

Tags

Capabilities
dbt semantic layer python clientquery dbt metrics programmaticallydbt cloud api python sdksemantic layer rest api clientdbt metric query library
Topics
dbt-integrationsemantic-layer

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “dbt semantic layer python client”

  • dbt-sl-sdkA Python client library for querying dbt's Semantic Layer via REST…
  • cube_dbtIntegrates dbt models with Cube's semantic layer by parsing dbt…
  • dbt-metricflowBundles dbt-core and MetricFlow with compatible versioning, allowing…

Give your agent the search over MCP, or paste the wish link into any chat.

More Front-Ends packages

SQLAlchemy Worth it
PyPI · Front-Ends · released Aug 2026

SQLAlchemy is a Python SQL toolkit and Object Relational Mapper (ORM) that provides both a high-level ORM layer for declarative object persistence and a Core SQL construction system for direct database abstraction and query building.

permissive licensepure Python · 3.7+
422.7Mdownloads / mo
psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
alembic Worth it
PyPI · Front-Ends · released Aug 2026

Alembic generates and manages database schema migrations for SQLAlchemy applications, handling version control of database structure changes with support for upgrades, downgrades, and auto-generation from model changes.

Install it if you use SQLAlchemy and need to version-control schema changes; skip it only if you manage migrations manually or use a different ORM entirely.

MITpure Python · 3.10+
215.2Mdownloads / mo
weaviate-client Worth it
PyPI · Front-Ends · released Aug 2026

A Python client library for connecting to and querying Weaviate, a vector database that enables semantic search and AI-powered data retrieval.

permissive licensepure Python · 3.10+
213.2Mdownloads / mo
databricks-sql-connector Worth it
PyPI · Front-Ends · released Jul 2026

A Python client library that connects to Databricks clusters and SQL warehouses using a Thrift-based protocol, conforming to the Python DB API 2.0 specification and supporting Arrow-based data exchange.

Install it if you need to query Databricks clusters or SQL warehouses from Python.

Apache-2.0pure Python
119.5Mdownloads / mo
psycopg Worth it
PyPI · Software Development · released May 2026

Psycopg 3 is a PostgreSQL database adapter for Python that enables applications to connect to, query, and manage PostgreSQL databases using Python code.

Install it if you need to connect Python to PostgreSQL.

LGPL-3.0-onlypure Python · 3.10+
117.0Mdownloads / mo

See also cube_dbt · dbt-metricflow · dbt-semantic-interfaces · dbt-mcp · metricflow · dbt-fabricspark · dbt-snowflake · dbt · dbt-core · dbt-metabase