Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add python sdk for SL #5801

Merged
merged 27 commits into from
Jul 19, 2024
Merged

add python sdk for SL #5801

merged 27 commits into from
Jul 19, 2024

Conversation

mirnawong1
Copy link
Contributor

this pr adds the new python sdk for the dbt SL. this sdk allows users to query metrics using python.

https://github.com/dbt-labs/semantic-layer-sdk-python

linear: https://linear.app/dbt-labs/issue/SL-2459/write-docs-for-the-sdk#comment-1f9d571c

@mirnawong1 mirnawong1 requested a review from a team as a code owner July 18, 2024 10:49
Copy link

vercel bot commented Jul 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview Jul 19, 2024 5:23pm

@github-actions github-actions bot added content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs size: medium This change will take up to a week to address labels Jul 18, 2024
---
title: "Python SDK"
id: sl-python
description: "Learn how to use the dbt Semantic Layer SDK for Python library to interact with the dbt Semantic Layer."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're calling it the Python SDK everywhere else, but the Semantic Layer SDK here. Might be a little confusing


The SDK returns all query data as [pyarrow](https://arrow.apache.org/docs/python/index.html) tables.

The SDK library doesn't come bundled with [Polars](https://pola.rs/) or [Pandas](https://pandas.pydata.org/). If you use these libraries, add them as dependencies in your project.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The SDK library doesn't come bundled with [Polars](https://pola.rs/) or [Pandas](https://pandas.pydata.org/). If you use these libraries, add them as dependencies in your project.
If you use [Polars](https://pola.rs/) or [Pandas](https://pandas.pydata.org/) libraries, you need to add them as dependencies in your project. This is because the SDK library provides you with the flexibility to choose your data processing tool and doesn't come bundled with them.

Copy link
Contributor

@Jstein77 Jstein77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mirnawong1 mirnawong1 enabled auto-merge (squash) July 19, 2024 17:18
@mirnawong1 mirnawong1 merged commit 19ac30c into current Jul 19, 2024
10 checks passed
@mirnawong1 mirnawong1 deleted the add-python-sdk branch July 19, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs size: medium This change will take up to a week to address
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants